fix(auto-updater): increase gh issue list limit to 10000 (#18788)

To prevent making duplicated issues over and over
This commit is contained in:
Jia Yuan Lo 2023-12-22 16:34:34 +08:00 committed by GitHub
parent 56cf06c812
commit 1db46f2b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -246,10 +246,11 @@ _gh_check_issue_exists() {
_CACHED_ISSUE_TITLES+=("'${title}'") # An extra quote ('') is added to avoid false positive matches.
done <<<"$(
gh issue list \
--limit 10000 \
--label "auto update failing" --label "bot" \
--state open \
--search "Auto update failing for in:title type:issue" \
--json title | jq -r '.[] | .title'
--json title | jq -r '.[] | .title' | sort | uniq
)"
fi
# shellcheck disable=SC2076 # We want literal match here, not regex based.