heitorpolidoro / autocreate-pr

Automatically create a Pull Request and can set to auto-merge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autocreate Pull Request

GitHub last commit Latest GitHub Release Date

CI/CD Quality Gate Status

GitHub

Action to create a pull request automatically with an option to set auto-merge.

Usage

name: Create Pull Request

on:
  create

jobs:
  create-PR:
    name: Create Pull Request
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Creating Pull Request
        uses: heitorpolidoro/autocreate-pr@vmaster
        with:
            draft: true|false # default: false
            auto_merge: true|false # default: false
        env:
          <user>: ${{ secrets.<USER_PERSONAL_ACCESS_TOKEN> }}
           # or          
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

To allow a user to automatically create a pull request, define an env with the GitHub username passing in the user's personal access token, or pass the GITHUB_TOKEN env to allow to any user. To enable auto-merge: Automatically merging a pull request

About

Automatically create a Pull Request and can set to auto-merge

License:MIT License


Languages

Language:Python 100.0%