mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 02:48:19 +00:00
ci: query for max number of possible labels
To fix a failure in our docs-cherrypick automation. This started to fail today, I suspect because github silently changed the order the labels were being returned, and by default it only returns 30 labels. We currently have 68 labels, so using per_page=100 (the maximum allowed) we should be able to fix this failure.
This commit is contained in:
parent
051f420855
commit
eb6505b526
@ -22,7 +22,7 @@ function get_latest_backport_label {
|
|||||||
local ret
|
local ret
|
||||||
local latest_backport_label
|
local latest_backport_label
|
||||||
|
|
||||||
resp=$(curl -f -s -H "Authorization: token ${GITHUB_TOKEN}" "https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/labels")
|
resp=$(curl -f -s -H "Authorization: token ${GITHUB_TOKEN}" "https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/labels?per_page=100")
|
||||||
ret="$?"
|
ret="$?"
|
||||||
if [[ "$ret" -ne 0 ]]; then
|
if [[ "$ret" -ne 0 ]]; then
|
||||||
status "The GitHub API returned $ret which means it was probably rate limited."
|
status "The GitHub API returned $ret which means it was probably rate limited."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user