Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-45603][INFRA] merge_spark_pr shall notify us about GITHUB_OAUT…
…H_KEY expiry ### What changes were proposed in this pull request? This PR handles unauthorized errors when calling github rest API to notify us about the GITHUB_OAUTH_KEY expiry as the current hint does not help ``` git rev-parse --abbrev-ref HEAD Unable to fetch URL, exiting: https://api.github.com/repos/apache/spark/branches Restoring head pointer to master ``` ### Why are the changes needed? improve infra scripts ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? ```shell ./dev/merge_spark_pr.py git rev-parse --abbrev-ref HEAD GITHUB_OAUTH_KEY is invalid or expired. Please regenerate a new one with at least the 'public_repo' scope on https://github.com/settings/tokens and update your local settings before you try again. Restoring head pointer to master ``` ### Was this patch authored or co-authored using generative AI tooling? no Closes apache#43447 from yaooqinn/SPARK-45603. Authored-by: Kent Yao <[email protected]> Signed-off-by: Ruifeng Zheng <[email protected]>
- Loading branch information