Skip to content

Commit 10bde06

Browse files
authored
Fix since last release script (nushell#412)
1 parent 18deb3d commit 10bde06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make_release/since_last_release.nu

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def do-work [] {
2929
let query_string = $"($query_prefix)($row.repo)($query_suffix)"
3030
# this is for debugging the rate limit. comment it out if things are working well
3131
# fetch -u $env.GITHUB_USERNAME -p $env.GITHUB_PASSWORD https://api.github.com/rate_limit | get resources | select core.limit core.remaining graphql.limit graphql.remaining integration_manifest.limit integration_manifest.remaining search.limit search.remaining
32-
let site_json = (fetch -u $env.GITHUB_USERNAME -p $env.GITHUB_PASSWORD $query_string | get items | select html_url user.login title)
32+
let site_json = (http get -u $env.GITHUB_USERNAME -p $env.GITHUB_PASSWORD $query_string | get items | select html_url user.login title)
3333

3434
$"## ($row.site)(char nl)(char nl)"
3535
if ($site_json | all {|it| $it | is-empty }) {
@@ -40,7 +40,7 @@ def do-work [] {
4040
let pr_count = ($row.prs | length)
4141

4242
# only print the comma if there's another item
43-
let user_prs = ($row.prs | each -n { |pr|
43+
let user_prs = ($row.prs | enumerate | each { |pr|
4444
if $pr_count == ($pr.index + 1) {
4545
$"[($pr.item.title)](char lparen)($pr.item.html_url)(char rparen)"
4646
} else {

0 commit comments

Comments
 (0)