Add auto-merge and reviewer-request support to github/create-pull-request#387
Open
robinaugh wants to merge 1 commit into
Open
Conversation
380b429 to
339187a
Compare
dan-manges
reviewed
May 13, 2026
339187a to
25017a2
Compare
TAGraves
reviewed
May 13, 2026
…uest - New `enable-auto-merge` boolean param (default false): runs `gh pr merge --auto --squash` after the PR is created/updated - New `reviewers` string param (default ""): runs `gh pr edit --add-reviewer` after the PR is created/updated - Both failures are logged but don't fail the task; if a team reviewer fails and the teams API also returns 403, the warning calls out the missing Members: read org permission specifically - Bumps github/create-pull-request 1.0.6 → 1.0.7 - Adds auto-merge and reviewer tests to github/create-pull-request/rwx-test.yml - Updates README with both params and the Members: read permission note - Adds octocat to cspell wordlist
25017a2 to
ad3c3af
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
RWX-832
rwx/update-packages-githubalready supportedenable-auto-merge, but the lower-levelgithub/create-pull-requestpackage did not — meaning direct consumers couldn't opt into the same streamlined merge flow, andrwx/update-packages-githubduplicated the logic in a follow-on task.Problem
github/create-pull-requesthad no way to enable auto-merge or request reviewers after creating a PR.Solution
enable-auto-merge(boolean, defaultfalse): after create/update, runsgh pr merge "$pr_number" --auto --squash. Failures are logged but don't fail the task.reviewers(string, default""): comma-separated usernames and/ororg/teamslugs ingh's native format. After create/update, runsgh pr edit "$pr_number" --add-reviewer. Failures (self-review, missing permission, invalid user) are logged but don't fail the task. If a team slug is present and the teams API returns 403, the warning specifically calls out the missingMembers: readorg permission.github/create-pull-request1.0.6 → 1.0.7.create-pr-auto-merge+assert--auto-mergetests (verifiesautoMergeRequest.mergeMethod == SQUASHviagh pr view --json autoMergeRequest).create-pr-reviewers+assert--reviewerstests (verifiesrobinaughappears ingh pr view --json reviewRequests).Members: readpermission note.octocatto the cspell wordlist.Updating
rwx/update-packages-githubto delegate auto-merge to the inner package is tracked in RWX-840 and will follow once 1.0.7 is published.Further confirmation needed
robinaughas the requested reviewer — confirm this is an acceptable test account (it will receive a review request notification on each CI run, though the PR is closed immediately after).--squash(not exposed as a parameter), consistent with howrwx/update-packages-githubhandled it previously. Confirm this is the right call for the lower-level package.