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 https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository.
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
with:
# 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: ${{ github.token }}
# The pull request branch name
# This input is required.
branch: ""
# The pull request title
# This input is required.
title: ""
# The pull request body
# This input is required.
body: ""
# The commit message for the pull request
# This input is required.
commit-message: ""| Input | Description | Required | Default |
|---|---|---|---|
github-token |
GitHub token for creating and merging pull request (permissions contents: write and pull-requests: write). | false | ${{ github.token }} |
| See https://github.com/peter-evans/create-pull-request#action-inputs. | |||
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 | - |
Contributions are welcome! Please see the contributing guidelines for more details.
This project is licensed under the MIT License.
SPDX-License-Identifier: MIT
Copyright © 2026 hoverkraft
For more details, see the license.
This documentation was automatically generated by CI Dokumentor.