Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

thomaseizinger/create-pull-request

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
Open more actions menu

Repository files navigation

Create pull request

Does what it says on the tin - creates a pull request, nothing else.

Usage

name: "Create PR"
on: push

jobs:
  create-pr-on-push:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@1.0.0
    
    - name: Create pull request
      uses: thomaseizinger/create-pull-request@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        head: ${{ github.ref }}
        base: master
        title: "An automatically created PR!"

Advanced usage

To get an idea of all inputs that are supported, have a look at this file or the tests.

For self-hosted runners behind a corporate proxy, set the https_proxy environment variable.

- name: Create pull request
      uses: thomaseizinger/create-pull-request@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        head: ${{ github.ref }}
        base: master
        title: "An automatically created PR!"
      env:
        https_proxy: http://<proxy_address>:<port>

Action outputs

The following outputs can be set by action

  • number - Number of the created pull request.
  • html_url - URL of the created pull request.
  • created - 'true' if pull request was successfully created, 'false' if pull request existed already.

About

Does what it says on the tin, create a pull request, easy and simple.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 10

Morty Proxy This is a proxified and sanitized view of the page, visit original site.