Repository navigation
Commit e2cafbe
ci: a failing drift run reports to the issue tracker, not the Actions tab
The job as first written had the flaw it was built to fix, one level up: it
would detect upstream breakage and then tell nobody. A scheduled run has no
pull request to turn red and no author to notify, and this repository has
already paid for exactly that -- `pages.yml` failed on two consecutive
pushes and sat unnoticed for the better part of two months, while the
published site served a version six releases behind. A weekly job in a
repository that goes quiet for weeks is the same shape.
So a failure now opens an issue, or comments on the open one if there is
already one. Reused rather than re-opened: an unattended weekly job that
files a fresh issue every Monday is a second way of being ignored. Matched
on title rather than a label, so it needs no label to exist first.
The body says what a reader needs and not more: that this is not any
branch's fault, that every other job resolves against `uv.lock` while this
one does not, that the remedy is an upstream fix or a narrower range in
pyproject.toml (#103), and that the run log's lockfile diff names what
moved.
`issues: write` is added at the job level, which replaces rather than
extends the workflow's permissions, so `contents: read` is repeated there.
Verified by extracting the step's script from the parsed YAML and running it
against a stubbed `gh`: the heredoc dedents correctly out of the block
scalar, the escaped backticks survive as literals, `$RUN_URL` expands, and
the two paths do what they claim -- create when no issue is open, comment
when one is, with no duplicate.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 39a9083 commit e2cafbe
1 file changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
193 | 199 | | |
194 | 200 | | |
195 | 201 | | |
| |||
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
210 | 255 | | |
211 | 256 | | |
212 | 257 | | |
| |||
0 commit comments