This commit is contained in:
Ryan Winkler 2026-08-15 18:28:49 -04:00 committed by GitHub
commit 9d9f0c99ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 2 deletions

View File

@ -1501,7 +1501,8 @@ If the user chooses A or C: Tell the user "Merging now." Continue to Step 4.
Record the start timestamp for timing data. Also record which merge path is taken
(auto-merge vs direct) for the deploy report.
Try auto-merge first (respects repo merge settings and merge queues):
Try auto-merge first (respects repo merge settings and merge queues). Specify the
merge method explicitly because `gh` requires one in non-interactive sessions:
```bash
gh pr merge --squash --auto --delete-branch

View File

@ -597,7 +597,8 @@ If the user chooses A or C: Tell the user "Merging now." Continue to Step 4.
Record the start timestamp for timing data. Also record which merge path is taken
(auto-merge vs direct) for the deploy report.
Try auto-merge first (respects repo merge settings and merge queues):
Try auto-merge first (respects repo merge settings and merge queues). Specify the
merge method explicitly because `gh` requires one in non-interactive sessions:
```bash
gh pr merge --squash --auto --delete-branch

View File

@ -36,6 +36,13 @@ function readMd(): string {
}
describe("PR #1620 §4a-postfail in land-and-deploy template", () => {
test("auto-merge specifies a method in template and generated skill", () => {
for (const body of [readTmpl(), readMd()]) {
expect(body).toContain("gh pr merge --squash --auto --delete-branch");
expect(body).not.toContain("gh pr merge --auto --delete-branch");
}
});
test("§4a-postfail header present in template", () => {
expect(readTmpl()).toMatch(/### 4a-postfail: Post-failure PR-state check/);
});