This will create a new pull request on GitHub

Supported platforms ios, android, mac
Author @seei, @tommeier
Returns The parsed JSON when successful

1 Example

  api_token: ENV["GITHUB_TOKEN"],
  repo: "fastlane/fastlane",
  title: "Amazing new feature",
  head: "my-feature",       # optional, defaults to current branch name
  base: "master", # optional, defaults to "master"
  body: "Please pull this in!",       # optional
  api_url: "http://yourdomain/api/v3" # optional, for GitHub Enterprise, defaults to ""


Key Description Default
api_token Personal API Token for GitHub - generate one at *
repo The name of the repository you want to submit the pull request to
title The title of the pull request
body The contents of the pull request
head The name of the branch where your changes are implemented (defaults to the current branch name) *
base The name of the branch you want your changes pulled into (defaults to master) master
api_url The URL of GitHub API - used when the Enterprise (default to

* = default value is dependent on the user's system

To show the documentation in your terminal, run

fastlane action create_pull_request

View source code

Back to actions