mirror of https://github.com/garrytan/gstack.git
Merge 397c05f6e9 into 2be6c06ba8
This commit is contained in:
commit
9d9f0c99ef
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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/);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue