Skip to content

Introduce REST API fallback - #281

Merged
jserv merged 1 commit into
sysprog21:masterfrom
EricccTaiwan:rest-api
Mar 24, 2025
Merged

jserv merged 1 commit into
sysprog21:masterfrom
EricccTaiwan:rest-api

Conversation

@EricccTaiwan

Copy link
Copy Markdown
Contributor

Switch to using the GitHub REST API as a fallback when HTML parsing fails to retrieve the commit hash from the GitHub commits page. This ensures that the script continues to work even under rate limit conditions and improves reliability. Optionally, authentication can be used to further mitigate rate limits.

Closed: #243

Change-Id: If204a6c78bb4062bc010c3370db0ea126f99e6f5

Comment thread scripts/check-repo.sh Outdated
Comment thread scripts/check-repo.sh Outdated
Switch to using the GitHub REST API as a fallback when HTML parsing
fails to retrieve the commit hash from the GitHub commits page. This
ensures that the script continues to work even under rate limit
conditions and improves reliability. Optionally, authentication can
be used to further mitigate rate limits.

Co-authored-by: Po-Ying Chiu <charlie910417@gmail.com>
Change-Id: I8688fdb093e88ed95326b911f198c974cd615ad4
@jserv
jserv merged commit 9563d40 into sysprog21:master Mar 24, 2025
@jserv

ghost commented Mar 24, 2025

Copy link
Copy Markdown
Contributor

Thank @EricccTaiwan for contributing!

@EricccTaiwan
EricccTaiwan deleted the rest-api branch March 24, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potentially encountering a rate limit while retrieving the upstream hash in scripts/check_repo.sh.

2 participants