1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-31 06:07:44 +00:00
Commit graph

117 commits

Author SHA1 Message Date
Piepmatz
84c25bbc6d
Update cargo hack command for making a release (#1132) 2025-06-10 21:13:44 +02:00
Douglas
a8919f9c01
Update TWiN script (#1047)
* Retrieves previous 7 days of contributions by default
* Checks all repos under the `nushell` user - Reports against the most
recent (up to 30, and we currently only have 26) with updates.
* Uses the GitHub client to authenticate if available, with fallback to
a token, then username/password
* Cleans up a lot of the URL building using more recent Nushell
commands.
2025-02-17 12:59:52 -05:00
Douglas
135450607c
Update release-notes template to point to plugins page (#1038)
As mentioned in https://github.com/nushell/nushell.github.io/issues/1788
(fix going forward).
2025-02-07 11:15:22 -05:00
Darren Schroeder
cfcd816335
update 20k club script to use polars (#1037)
I've been using these updates for a while but never committed them.
2025-02-07 08:43:40 -06:00
Jakub Žádník
d6b202ce83
Replace Twitter with Nushell blog in release note template (#1036) 2025-02-06 07:20:35 -05:00
Ian Manske
56b07b176e
Edit release note template (again) (#1035) 2025-02-05 05:48:59 +00:00
Ian Manske
7c6204dba5
Edit release note PR template (#1034)
Reorders and simplifies the TODO steps in the release note PR template.
2025-02-05 05:32:47 +00:00
Stefan Holderbach
fd686c0b0c
Rename range to slice (#1014)
Followup for https://github.com/nushell/nushell/pull/14825
2025-01-17 06:26:29 -06:00
Stefan Holderbach
14e3ecb139
Update release excerpt script (#1015)
We moved to a 6 weeks cycle

Also some unnecessary stuff in the API call
2025-01-16 14:51:14 +01:00
Auca Coyan
4fa48b3e60
🐛 fix some parser issues with type signatures (#1001)
When I updated nu to 101, the completions of poetry failed because of a
missing `:`
this
```nu
def "nu-complete poetry python-versions" [] nothing -> list<string> {
```
for this

```nu
def "nu-complete poetry python-versions" []: nothing -> list<string> {
```

Fixed a couple of places and some other parser issues
2024-12-26 09:28:18 -06:00
Stefan Holderbach
89c3d6d92b
Fix table of contents generation for release notes (#1000)
- [x] fixed typo: `table-of-content` in the backreference
- [x] missing sanitization of `_`,`+`,`.`,`?` etc.
- [x] handling the confusion of h1 `#` and comment `#`
2024-12-22 22:48:55 +01:00
Douglas
ba447f942c
Add and update new config files (#995)
`bump-version.nu`:

* Adds the new file location for config files
* Adds the new config files
2024-12-17 16:08:53 -06:00
ff2400t
b5385a2af0
in commands table rename usage to description (#990)
`usage` column under the `scope commands` table has been renamed to
description since nushell version 0.98.0
2024-12-08 07:27:33 -06:00
Ian Manske
dee0e7efcd
Fix typos (#982) 2024-11-21 23:51:05 -05:00
Ian Manske
fc1d1989b6
Edit release notes template and edit scripts (#981)
Making the release scripts easier to use as well as automating more of
the process.
2024-11-22 03:12:26 +00:00
Ian Manske
71d2eaf516
Edit release notes template (#957)
Renames the `Changes to commands` section to just `Changes`. As such,
the breaking changes section is redundant since `Changes to commands`
already has a breaking changes subsection.
2024-09-17 04:23:45 +00:00
Reilly Wood
614b073310
Fix TWiN script (#944)
At some point this broke, just committing a fix I've had on my personal
computer for a while.

```
# This week in Nushell #261


## Nushell

Error: nu:🐚:name_not_found

  × Name not found
    ╭─[/home/reilly/github/nu_scripts/make_release/this_week_in_nu_weekly.nu:36:48]
 35 │
 36 │             for user in ($site_json | group-by user_login | transpose user prs) {
    ·                                                ─────┬────
    ·                                                     ╰── did you mean 'user.login'?
 37 │                 let user_name = $user.user
    ╰────
```
2024-08-30 05:47:45 -05:00
Devyn Cairns
5eb484f986
Add warning to release checklist for nu-ansi-term (#912)
@fdncred said that it's quite tricky to release `nu-ansi-term`, so we
probably shouldn't generally do it during a nushell release
2024-08-06 14:16:48 +02:00
Jack Wright
6b962c8f46
Fixing ordering / added nu-drive-value for nu_release.nu (#915) 2024-07-24 10:07:58 -05:00
Devyn Cairns
3b39ef75c9
Add more notes about transferring ownership during release (#914)
Try to avoid delayed releases by mentioning it several times, haha
2024-07-24 02:49:39 +00:00
Devyn Cairns
6eb1398f4e
Move notes for plugin developers to top level in release notes (#913)
The changes noted here aren't always breaking changes, so it makes sense
to just have them at top level. I also fixed the missing TOC link.
2024-07-24 02:26:12 +00:00
Jack Wright
cde54b2876
Prevent branch from merging against main (#886)
Having the the main branch listed in the checkout command:
```nushell
git -C $repo checkout -b $branch nushell/main
```

Made my git to track against the main branch, causing it to push to main
instead of a branch. Removing the branch fixed the problem:
```nushell
 git -C $repo checkout -b $branch
```
2024-06-26 06:34:03 -05:00
Ian Manske
e5388d1992
Edit release notes template (#887) 2024-06-26 02:12:36 +00:00
Jakub Žádník
b1cd222c2a
Fix error when listing PRs by milestone (#885) 2024-06-25 21:25:42 +03:00
Ian Manske
85205b0e66
Edit release notes template (#853)
- Removes the note about installing the dataframes feature.
- Moves the command changes section to the top level, renames some sub
sections, and adds some more sub sections.
- Moves and simplifies the hall of fame.
2024-05-28 19:32:39 +00:00
Ian Manske
c133ab2419
Remove nu-cmd-dataframe from release script (#857) 2024-05-28 13:07:59 +00:00
Igor
13f2c47135
Port before_v0.60/make_release folder (#830)
This PR is part of porting all old scripts #221 and ports `make_release`
folder
## Summary

### make_release/this_week_in_nu_weekly.nu
This script has already been ported and has received some updates: #433.
So I just removed it
```yaml
from: before_v0.60/make_release/this_week_in_nu_weekly.nu
to: make_release/this_week_in_nu_weekly.nu
functions:
    do-work: make_release/this_week_in_nu_weekly.nu:1:query-week-span
```

### make_release/this_week_in_nu_release.nu

I have ported this, but I'm not sure if we need it because it has
strange name and we have `prs.nu` and `make_release/release-note/`

```yaml
from: before_v0.60/make_release/this_week_in_nu_release.nu
to: make_release/this_week_in_nu_release.nu
functions:
    do-work: make_release/this_week_in_nu_release.nu:1:do-work
```

### make_release/nu_release.nu

This has already been ported to `make_release/nu_release.nu` and has
received new updates #828 so I just removed it

```yaml
from: before_v0.60/make_release/nu_release.nu
to: make_release/nu_release.nu
```

### make_release/gen-js-ext.nu
This has already been moved to `make_release/gen-js-ext.nu` and has
received new updates #621 but not completely ported so I have ported it
- pipeline `for` to `each`
- `$nu.scope.commands` to `scope commands`
- explicit `print`
```yaml
from: before_v0.60/make_release/gen-js-ext.nu
to: make_release/gen-js-ext.nu
functions:
  gen_keywords: make_release/gen-js-ext.nu:1:gen_keywords
  gen_sub_keywords: make_release/gen-js-ext.nu:20:gen_sub_keywords
```

### make_release/gen-ts-ext.nu
I have ported this script
```yaml
from: before_v0.60/make_release/gen-ts-ext.nu
to: make_release/gen-ts-ext.nu
functions:
  gen-ts-cmds-begin: make_release/gen-ts-ext.nu:1:gen-ts-cmds-begin
  gen-ts-cmds: make_release/gen-ts-ext.nu:18:gen-ts-cmds
  gen-ts-subs: make_release/gen-ts-ext.nu:40:gen-ts-subs
```
2024-05-13 09:53:13 -04:00
Maxim Uvarov
afde2592a6
use typos for corrections (#833)
I used [typos](https://github.com/crate-ci/typos/).
I manually checked all the corrections and they seem safe to me.
There are still some left, but those in this PR are good
2024-05-08 06:47:54 -05:00
Jakub Žádník
4eab7ea772
Fix link for creating release note PR (#728)
@amtoine I couldn't get it to work with the old link, but with this fix,
opening the PR worked like charm!
2024-04-30 16:54:12 -07:00
Ian Manske
fcde8dc870
Update release script (#828)
Add new crates to the release script and updates the order of existing
crates according to the `nu_deps.nu` script.
2024-04-30 21:43:36 +00:00
Stefan Holderbach
660b55c2f0
Add nu_plugin_polars as a crate to release (#814)
For the upcoming `0.93.0` release we want to ship this plugin.

Merge ahead of the release process (not when we have a patch release
inbetween)
2024-04-27 14:38:38 +02:00
Devyn Cairns
dfdd5692d7
Add nu_plugin_nu_example to bump-version.nu (#822)
What it says on the tin. This just updates the `bump-version.nu` script
to also edit the version in
the new nu_plugin_nu_example plugin, the same way it does for python
2024-04-19 15:43:09 -05:00
Stefan Holderbach
f1c247aca6
Bump version in the python plugin example as well (#809)
This is a requirement of the new plugin protocol
2024-04-02 20:27:22 +02:00
Jakub Žádník
368785e3ec
Add nu-plugin-test-support to release script (#810)
Discovered during 0.92.0 release
2024-04-02 20:27:11 +02:00
Ian Manske
a2929c0bf8
Use cargo hack in release process (#804)
This PR adds two [`cargo hack`](https://github.com/taiki-e/cargo-hack)
commands to the release process to check for errors due to combination
of features. The first one will run `cargo check` on each crate multiple
times over, toggling different combinations of features each time. This
is to check for compilation errors regarding missing imports, etc. The
second command will run `cargo build` for each crate separately (with
default features) to check for build errors (from `build.rs` or
whatever).

Using the [error](https://github.com/nushell/nushell/pull/11786) from
the 0.90.0 publishing as a test, the first command does indeed find the
compilation error.

In the future, we should probably put these commands into a manually
triggered CI job so that they will be run on multiple platforms.

Also, this PR cleans up `nu_release.nu` a little bit.
2024-03-30 22:36:20 +00:00
Stefan Holderbach
8a2dcf6cf8
Add option list-merged-pr --table (#774)
Paint a table like one of ~~our French Guys~~ those Amtoine created for
the overview of the hall of fame
2024-03-07 06:19:29 -06:00
Jakub Žádník
351691f118
Allow listing merged PRs by milestone (#773)
Also changes `date?` parameter to `--date` and slight code refactoring
2024-03-05 21:27:30 +01:00
Jakub Žádník
bccdab661a
Reorder release dependencies (#754)
These are the changes after running nu_deps
2024-03-05 21:27:04 +01:00
Jakub Žádník
a17186f25f
Add script to generate lists of PRs (#753)
This wraps existing code from @amtoine to auto-generate the PRs for Full
Changelog and Breaking Changes sections.
2024-02-06 22:59:46 +02:00
Antoine Stevan
725b92b254
add missing tasks to the release note PR (#665)
see https://github.com/nushell/nushell.github.io/pull/1114 for an
example.
2023-12-06 18:52:06 +01:00
Stefan Holderbach
99fe279311
Change nu-deps script to not care about waves (#667)
The script was running endlessly for me and the notion of crate waves
may be out of date, after removing them and manually aligning the output
with the relevant crate waves things went smooth.
2023-11-14 18:19:19 +01:00
Stefan Holderbach
1fd3a3fa6a
Update nu_release.nu for 0.87 release (#668)
New crate `nu-lsp`

Only treat `nu-cmd-lang` with the `build.rs` for `version` with the
`--no-verify` treatment in the separate wave

Reorder `nu-command` crates as there are dev-dependencies that may be a
problem
2023-11-14 17:33:24 +01:00
Antoine Stevan
77f7b40828
fix the TOC of the release note template (#664)
should be the last one... 😇 

this PR adds `-toc` to the links in the TOC of the release note
template, they need that for the back reference to the TOC itself in the
section titles
2023-11-11 16:30:04 +01:00
Antoine Stevan
4d165fa510
fix the indentation of the comments in the release note template... (#663)
was writing https://github.com/nushell/nushell.github.io/pull/1114 and
noticed a very nice bug...

yeah HTML comments in `.md` documents can't be indented otherwise `npm
install` + `npm run dev` can't render the page 👀
2023-11-11 16:17:55 +01:00
Antoine Stevan
63fa27f702
add a command to get last release date in the release note template (#662)
this PR adds
```nushell
let last_release_date = ^gh api /repos/nushell/nushell/releases
    | from json
    | into datetime published_at
    | get published_at
    | sort
    | last
```
to the relaease note template to get the date of the last release and
list the PRs from there to now.
2023-11-11 16:00:03 +01:00
Antoine Stevan
e5e0ef6f7b
complete the release note template (#637)
i've started writting the [release note for
0.86.0](https://github.com/nushell/nushell.github.io/pull/1071) and
thought we could enhance the template for the note even further:

- add some TODOs to make sure we don't forget anything
- make the `NOTE` a real note in the first section, it's just for
prettier rendering
- add some template tables in the "hall of fame"
-  add a table of content to allow jumping back and forth
more easily when the note starts to get big
2023-11-11 15:43:59 +01:00
Antoine Stevan
d233262a35
add a few enhancements to the create-pr script for releases (#642)
related to
- https://github.com/nushell/nushell.github.io/pull/1114

i had to use `create-pr` to open
https://github.com/nushell/nushell.github.io/pull/1114 and i thought the
script could be improved in a few ways
- the template had a hardcoded `.0` path version in the semver, this PR
removes is so that the CLI argument can be a full semver, e.g. `0.87.0`
- switch from `explore` to `$env.EDITOR` to preview the completed
template: because it's valid markdown, it looks better in an editor
- fetch the website repo with HTTP and push with SSH: this allows to not
enter the password of an SSH key in the clone step
2023-11-11 15:38:57 +01:00
Antoine Stevan
7d843e5c7b
make list-merged-prs a module and add template example (#636)
to help writing the release notes, i think being able to list all the
PRs between the last two releases and format them directly to a raw
table is really nice.
this PR
- `export`s the `main` command from `list-merged-prs`
- adds an example to the `template.md` file of the release notes

the example:
```nushell
use ./make_release/release-note/list-merged-prs

list-merged-prs nushell/nushell <last-release-date>
    | where author != "app/dependabot"
    | sort-by mergedAt
    | update url {|it| $"[#($it.number)]\(($it.url)\)" }
    | update author { $"[@($in)]\(https://github.com/($in)\)" }
    | select author title url
    | rename -c {url: pr}
    | to md --pretty
```
will dump all the PRs in a `table<author: string, title: string, pr:
string>` in `md` format:
- `author` is a mardown link to the GitHub page of each author
- `title` is the title of the PRs
- `pr` is a markdown link to the GitHub page of each PR

this pipeline will omit the contributions from @app/dependabot.
2023-11-11 15:36:38 +01:00
Antoine Stevan
bc89655422
make_release: do not annotate boolean switches in public API (#635)
related to
- https://github.com/nushell/nushell/pull/10456
- https://github.com/nushell/nushell.github.io/pull/1071

## description
after the changes on boolean switches from
https://github.com/nushell/nushell/pull/10456, we need to not annotate
then with `: bool` when part of a public API.

this PR is required for
https://github.com/nushell/nushell.github.io/pull/1071 to move forward.
2023-10-14 16:19:04 +02:00
Antoine Stevan
4fe113714a
add a section about *after the release* in the release README (#560)
i thought some words about what happens *after the release* could be
worth adding to the release guide 😋
2023-10-14 09:40:05 +02:00