mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00
Fix since_last_release.nu
script (#385)
Missed update of fetch to `http get`
This commit is contained in:
parent
00b0039653
commit
6ec94a84b5
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
# fetch https://api.github.com/repos/nushell/nushell/pulls?q=is%3Apr+merged%3A%3E%3D2021-04-20+ | select html_url user.login title body
|
||||
# fetch https://api.github.com/search/issues?q=repo:nushell/nushell+is:pr+is:merged+merged:%3E2021-05-08 | get items | select html_url user.login title body
|
||||
# http get https://api.github.com/repos/nushell/nushell/pulls?q=is%3Apr+merged%3A%3E%3D2021-04-20+ | select html_url user.login title body
|
||||
# http get https://api.github.com/search/issues?q=repo:nushell/nushell+is:pr+is:merged+merged:%3E2021-05-08 | get items | select html_url user.login title body
|
||||
# Repos to monitor
|
||||
|
||||
def do-work [] {
|
||||
|
@ -28,7 +28,7 @@ def do-work [] {
|
|||
let entries = ($site_table | each { |row|
|
||||
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
|
||||
# http get -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 = (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)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue