Commit 408be8a
committed
[CI] Fix rounding when determining number of API batches to query
When querying the GitHub API, we get a runtime error if the batch
size is a multiple of the total number of commits. One extra batch
is queried for 0 commits, which then raises an exception when
trying to access the results. This change corrects the number of
batches to query for in those cases.1 parent c5806e4 commit 408be8a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
147 | | - | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments