Commit 2c45e97
Fix: don't swap review labels on "Update branch" (Domain-Connect#1227)
## Fix: don't swap review labels on "Update branch"
### Problem
Clicking "Update branch" on a PR creates a merge commit from `master`
into the PR branch. This triggered the `synchronize` event, causing the
workflow to incorrectly swap `review issues` → `new review needed` even
though the PR author had not pushed any new work.
Example: commit `27072ddd` on PR Domain-Connect#1218.
### Fix
In the trigger workflow, before treating a `synchronize` event as new
author work, check whether the head commit is a two-parent merge commit
whose second parent matches the current `master` tip. If it is, skip the
artifact upload entirely — no label changes are made.
All other pushes (regular commits, force-pushes, author-initiated
merges) continue to trigger the label swap as before.1 parent 1e6be16 commit 2c45e97
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
33 | 51 | | |
34 | 52 | | |
35 | 53 | | |
| |||
0 commit comments