capabilities.work

Verify a Branch and Merge It

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

Recipe · 2 steps

Verify a Branch and Merge It

with GitHub · Software Construction Management

Verify a head branch exists then merge it into a base branch.

  1. Read the head branch to confirm it exists before attempting the merge.
  2. Merge the verified head branch into the base branch with the supplied commit message.
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.
  • headBranch: The branch to merge in (the head of the merge).
  • baseBranch: The branch to receive the merge (the base of the merge).
  • commitMessage: The commit message to use for the merge commit.
For your developer

Arazzo workflow github:verify-and-merge-branch, 2 operations: repos/get-branch → repos/merge. Specs on APIs.io.