-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit 427c9b3
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: I8688fdb093e88ed95326b911f198c974cd615ad41 parent 5223a1d commit 427c9b3
1 file changed
+22
-0
lines changedLines changed: 22 additions & 0 deletions
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 | + | ||
88 | 110 |
| |
89 | 111 |
| |
90 | 112 |
| |
|
0 commit comments