ci-github-common

branding<icon:git-pull-request color:gray-dark> GitHub Action: Create and merge Pull Request

Release%20by%20tagRelease%20by%20dateCommitOpen%20IssuesDownloads

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

Usage

- uses: hoverkraft-tech/ci-github-common@0.22.0
  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: ""

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

Inputs

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.
$ 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