Commit 6d918a6
fix(ng-dev): handle the 409 GitHub returns when a validated PR head moved (#3911)
Pinning the API merge to the validated head SHA means GitHub now rejects
the merge with a 409 if the head moved after validation, but that error
was falling through to the generic `throw e` and surfacing as a raw
Octokit exception instead of a clear, actionable message.
Adds a branch alongside the existing 403/404 handling that catches the
409 and raises a FatalMergeToolError explaining what happened (the head
changed after validation) and what to do (re-run the merge).
PR Close #39111 parent 2c79341 commit 6d918a6
2 files changed
Lines changed: 20 additions & 1 deletion
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
147 | 157 | | |
148 | 158 | | |
149 | 159 | | |
| |||
0 commit comments