Commit 71c0230
fix: enable merge commits during backtrack by explicitly setting required_linear_history in branch protection payload (#196)
The backtrack workflow was failing with HTTP 409 ("This branch must not
contain merge commits") because the `preview/*` branches have
`required_linear_history: true` in their protection. The lock action's
payload omitted the field entirely, so GitHub preserved the existing
`true` value even during the "unlock for merge" phase.
## Changes
- **`lock/action.yml`** — Added `required-linear-history` input
(default: `false`) and included `"required_linear_history":
$required_linear_history` in the branch protection PUT payload. Because
the default is `false`, the existing "unlock for merge" calls in
`backtrack.yml` now explicitly send `false` without requiring any
call-site changes, overriding the previously preserved `true` value
before the merge API is invoked.
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>1 parent fc1622b commit 71c0230
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
62 | | - | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
0 commit comments