chore(scripts): auto authenticate gh CLI in scripts on dogfood (#13107)

* chore: auto authenticate gh CLI in scripts

* fix shellcheck issues
This commit is contained in:
Muhammad Atif Ali
2024-04-30 19:36:12 +03:00
committed by GitHub
parent 53f7e9e0a1
commit 3ff9cef498
6 changed files with 34 additions and 1 deletions
+3 -1
View File
@@ -31,6 +31,9 @@ range="${from_ref}..${to_ref}"
# Check dependencies.
dependencies gh
# Authenticate gh CLI
gh_auth
COMMIT_METADATA_BREAKING=0
declare -a COMMIT_METADATA_COMMITS
declare -A COMMIT_METADATA_TITLE COMMIT_METADATA_HUMAN_TITLE COMMIT_METADATA_CATEGORY COMMIT_METADATA_AUTHORS
@@ -145,7 +148,6 @@ main() {
done
} | sort -t- -n | head -n 1
)
# Get the labels for all PRs merged since the last release, this is
# inexact based on date, so a few PRs part of the previous release may
# be included.