This is an automated email from the ASF dual-hosted git repository.
hello-stephen pushed a commit to branch fix/pipeline-trigger-rate-limit
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to
refs/heads/fix/pipeline-trigger-rate-limit by this push:
new 91fd8e94111 fix: add GitHub token auth to avoid rate limit in
_get_pr_changed_files
91fd8e94111 is described below
commit 91fd8e941118217d4323edf2e3230cafd47ecbff
Author: Dongyang Li <[email protected]>
AuthorDate: Fri May 15 19:50:45 2026 +0800
fix: add GitHub token auth to avoid rate limit in _get_pr_changed_files
---
regression-test/pipeline/common/github-utils.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/regression-test/pipeline/common/github-utils.sh
b/regression-test/pipeline/common/github-utils.sh
index ca3977bfc4c..048b282701e 100644
--- a/regression-test/pipeline/common/github-utils.sh
+++ b/regression-test/pipeline/common/github-utils.sh
@@ -131,7 +131,9 @@ _get_pr_changed_files_count() {
while [[ ${try_times} -gt 0 ]]; do
set -x
if ret=$(
- curl -s -H "Accept: application/vnd.github+json" \
+ curl -s \
+ -H "Accept: application/vnd.github+json" \
+ ${GITHUB_TOKEN:+-H "Authorization: Bearer ${GITHUB_TOKEN}"} \
https://api.github.com/repos/"${OWNER}"/"${REPO}"/pulls/"${PULL_NUMBER}" | jq
-e '.changed_files'
); then
set +x
@@ -169,6 +171,7 @@ _get_pr_changed_files() {
set -x
if curl -s \
-H "Accept: application/vnd.github+json" \
+ ${GITHUB_TOKEN:+-H "Authorization: Bearer ${GITHUB_TOKEN}"} \
https://api.github.com/repos/"${OWNER}"/"${REPO}"/pulls/"${PULL_NUMBER}"/files?page="${page}"\&per_page="${per_page}"
\
>>"${file_name}"; then
set +x
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]