Tailflow
Skip to article
Browse documentation

GitHub · Action

Create pull request

Opens a pull request that would merge one branch into another, with a title and a description.

When to use it

Asking for review of a change some other tool already pushed to a branch, when the event that needs it happens.

At a glance

IntegrationGitHub
Credits1
ConnectionGitHub, by signing in

Settings

repositoryRequired
Repository. Only repositories the Tailflow app is installed on are listed. You can also type owner/name. Picked from your account's own list, or typed.
titleRequiredAccepts event fields
Title.
headRequiredAccepts event fields
From branch. The branch with the changes. For a fork, write owner:branch.
baseRequiredAccepts event fields
Into branch. The branch the changes would be merged into.
bodyOptionalAccepts event fields
Description. Written in Markdown. Mentions and issue numbers that come from the event do not notify anyone.
draft
Draft. Opens it as a draft that cannot be merged yet. On or off.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.github_create_pull_request_1.number }} — the action’s key, then which one it is if you use more than one of the same kind.

number
The pull request's number. Create comment and Add labels take it.
url
The link to the pull request on GitHub.
id
GitHub's own id for the pull request.
state
open or closed.
title
The pull request's title.

Good to know

  • This step does not change any code. Both branches must already exist and differ.
  • A pull request that is already open between the same branches fails the step with GitHub's reason.
  • Mentions, issue numbers and words such as fixes that come from the event are written so they do not notify anyone or close anything. What you type yourself works as usual.