Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port before_v0.60/make_release folder #830

Merged
merged 11 commits into from
May 13, 2024

Conversation

39555
Copy link
Contributor

@39555 39555 commented May 5, 2024

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

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/

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

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
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

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

39555 added 7 commits May 5, 2024 22:30
This has already been ported to ./make_release/this_week_in_nu_weekly.nu and has received new updates in:
7bff42f
this has already been ported to `make_release/nu_release.nu` and has received new updates in:
- fcde8dc
- a2929c0
This module has already been ported to `./make_release/get-js-ext.nu` and has received many new small updates for example in:
6947014
move `gen-ts-ext.nu` to `./make_release/` before making changes
- replace `build-string` with `+` and `[...] | str join`
- replace `str collect` with `str join`
- replace `help commands` with `scope commands`
- add `else` in `for {...} {...}`
- port `fetch` to `http get`
- `else` in `for {...} {...}`
- explicit `$it`
- explicit `print`
- port `each -n` to `enumerate | each`
- port `str collect` to `str join`
@39555 39555 changed the title Port before_v0.60/make_release folder #221 Port before_v0.60/make_release folder May 5, 2024
@39555 39555 marked this pull request as draft May 5, 2024 21:10
It has already been moved but not ported from the old version

- replace pipeline `for` with `each`
- explicit print
- port `$nu.scope` to `scope commands`
@39555 39555 marked this pull request as ready for review May 5, 2024 21:32
@39555
Copy link
Contributor Author

39555 commented May 5, 2024

Seems that our CI runs nu -c 'use <file>' but some scripts contain top level statements so I wrap them in def main []

@39555 39555 force-pushed the port-before_v0.60/make-release branch from f3a7fb5 to 3e9e3c3 Compare May 5, 2024 22:16
print 'Please set GITHUB_USERNAME and GITHUB_PASSWORD in $env to use this script'
} else {
query-week-span
def main [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it's important that these all be modules, it should work if you just do source script.nu

@fdncred fdncred merged commit 13f2c47 into nushell:main May 13, 2024
1 check failed
@fdncred
Copy link
Collaborator

fdncred commented May 13, 2024

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants