capabilities.work

Open and Auto-Merge a Pull Request

A 2-step recipe with GitHub. We can help you get access.

Recipe · 2 steps

Open and Auto-Merge a Pull Request

with GitHub · Software Construction Management

Open a pull request then merge it using the returned number.

  1. Open a pull request from the head branch to the base branch.
  2. Merge the freshly opened pull request using the number returned by the create step.
What you'll need to have ready
  • githubToken: A GitHub token with repo scope, passed as a Bearer credential.
  • owner: The account owner of the repository.
  • repo: The name of the repository.
  • head: The name of the branch where the changes are implemented.
  • base: The name of the branch to merge the changes into.
  • title: The title of the pull request.
  • body: The body of the pull request.
  • mergeMethod: The merge method to use (merge, squash, or rebase).
For your developer

Arazzo workflow github:open-and-merge-pull-request, 2 operations: pulls/create → pulls/merge. Specs on APIs.io.