Skip to content

Commit bf33352

Browse files
author
Cursor
committed
docs(skill): require merge strategy with gh pr merge --auto
Made-with: Cursor
1 parent daa5132 commit bf33352

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.cursor/skills/release/SKILL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ git config user.name "Cursor"
7070
--body "Bumps the package version to ${NEW_VERSION} for release."
7171
```
7272

73-
7. **Enable auto-merge** after the PR exists (merge method: repository default—omit `--merge` / `--squash` / `--rebase` unless the user specified one).
73+
7. **Enable auto-merge** after the PR exists. In non-interactive mode, `gh` requires an explicit merge strategy with `--auto` (use the repository default: usually **`--merge`** for a merge commit, or **`--squash`** / **`--rebase`** if that is what the repo uses).
7474

7575
```bash
76-
gh pr merge <PR_NUMBER_OR_URL> --auto
76+
gh pr merge <PR_NUMBER_OR_URL> --auto --merge
7777
```
7878

79-
If `--auto` fails (permissions, auto-merge disabled, or pending checks), leave the PR open and report the error; the user can merge manually after CI passes. You can poll with `gh pr checks <PR_NUMBER_OR_URL> --watch` then retry `gh pr merge ... --auto`, or merge manually.
79+
If `--auto` fails (permissions, auto-merge disabled, or pending checks), leave the PR open and report the error; the user can merge manually after CI passes. You can poll with `gh pr checks <PR_NUMBER_OR_URL> --watch` then retry `gh pr merge ... --auto --merge`, or merge manually.
8080

8181
## After merge
8282

0 commit comments

Comments
 (0)