Commit caf93c9
committed
Better webhook handling, new URL generation.
1. Usually we have enough information in the webhook payload, so we can
avoid a lot of API calls (which are counted and limited). In some cases
we can't or they seem to arrive out of order (by a primitive status
ordering rule), so we fall back to polling in that case. Time will tell
how well this works in practice... The code for both cases is unified.
2. There are now also URL properties for builds and tasks, which will
be pushed to the CF app so that it can create clickable links.
They aren't directly taken from the Github API's html_url fields,
because I wanted to include the run_attempt explicitly in the build URL.
The links it makes for builds always take you to the latest run attempt,
which might be confusing in some rare cases...1 parent 26637e7 commit caf93c9
3 files changed
Lines changed: 178 additions & 211 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
189 | 197 | | |
190 | 198 | | |
191 | 199 | | |
192 | 200 | | |
193 | 201 | | |
194 | 202 | | |
195 | 203 | | |
| 204 | + | |
| 205 | + | |
196 | 206 | | |
197 | 207 | | |
198 | 208 | | |
| |||
0 commit comments