Workflow for creating and automatically merging pull requests.
repo
: Repository name with owner. Defaults to current.head
: Head branch to merge. Deafults to current branch.base
: Base branch to merge into. Defaults to the current repo's default branch.labels
: A comma seperated list of labels to add to the pull request.automerge
: True if the pull request should be mergd automatically, default totrue
.token
: GitHub access token.
url
: The URL of the pull request.number
: The number of the pull request.
name: Create Pull Request
on:
push:
branches: ['feat-*']
jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- uses: discoverygarden/create-pr@v1
with:
repo: discoverygarden/create-pr
base: main
automerge: false
token: ${{ secrets.GITHUB_TOKEN}}