Action to create a pull request automatically with an option to set auto-merge.
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