Skip to content

Commit

Permalink
Fix since last release script (nushell#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubouch committed Mar 14, 2023
1 parent 18deb3d commit 10bde06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make_release/since_last_release.nu
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def do-work [] {
let query_string = $"($query_prefix)($row.repo)($query_suffix)"
# this is for debugging the rate limit. comment it out if things are working well
# 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
let site_json = (fetch -u $env.GITHUB_USERNAME -p $env.GITHUB_PASSWORD $query_string | get items | select html_url user.login title)
let site_json = (http get -u $env.GITHUB_USERNAME -p $env.GITHUB_PASSWORD $query_string | get items | select html_url user.login title)

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

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

0 comments on commit 10bde06

Please sign in to comment.