Repository navigation
Commit acdfcd1
committed
fix(webhooks): resolve a pull request's live test merge before creating runs
GitHub computes a pull request's test merge asynchronously, so a webhook
payload's merge_commit_sha is the previous head's merge (or null) on
synchronize; a run created from it tested a tree the pull request no
longer had. Pull-request deliveries now resolve GitHub's live merge and
only accept a commit whose second parent is the payload's head. A
conflicted pull request creates no pull_request runs, matching GitHub.1 parent 9e9876c commit acdfcd1
3 files changed
Lines changed: 1464 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
0 commit comments