Skip to content

Latest commit

 

History

History
130 lines (85 loc) · 5.11 KB

File metadata and controls

130 lines (85 loc) · 5.11 KB

Icon GitHub Action: Create and merge Pull Request

Create and merge Pull Request

Marketplace Release License Stars PRs Welcome

Overview

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.

Usage

- 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: ""

Inputs

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 -

Contributing

Contributions are welcome! Please see the contributing guidelines for more details.

License

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.