File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments