Action to create and merge Pull Request. Opinionated, set GitHub Actions bot as author, then rebase and merge.
For this action to work you must explicitly allow GitHub Actions to create pull requests. See Allow GitHub Actions to create and approve pull requests
- uses: hoverkraft-tech/[email protected]
with:
# Description: GitHub token for creating and merging pull request (permissions
# contents: write and pull-requests: write). See
# https://github.com/peter-evans/create-pull-request#action-inputs.
#
# Default: ${{ github.token }}
github-token: ""
# Description: The pull request branch name
#
branch: ""
# Description: The pull request title
#
title: ""
# Description: The pull request body
#
body: ""
# Description: The commit message for the pull request
#
commit-message: ""
Input | Description | Default | Required |
---|---|---|---|
github-token |
GitHub token for creating and merging pull request (permissions contents: write and pull-requests: write). See https://github.com/peter-evans/create-pull-request#action-inputs. | ${{ github.token }} |
false |
branch |
The pull request branch name | true | |
title |
The pull request title | true | |
body |
The pull request body | true | |
commit-message |
The commit message for the pull request | true |