Commit 3395343
Introduce REST API fallback
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: I248793f475525af192944f892641169ee33205171 parent 5223a1d commit 3395343
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
88 | 112 | | |
89 | 113 | | |
90 | 114 | | |
| |||
0 commit comments