Skip to content

Mergifyio/gha-mergify-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action Mergify Stack rebase

This action rebase your pull request stack created by mergify-cli

Usage

uses: Mergifyio/mergify-cli@v1
with:
  # Personal access token (PAT) used to rebase pull requests.
  #
  # We recommend using a service account with the least permissions necessary. Also
  # when generating a new PAT, select the least scopes necessary (repo: write).
  #
  # [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
  GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

Scenarios

Rebase pull request with a command

The GitHub action will be trigger when the comment @mergify-cli stack rebase is posted.

name: Mergify Stack Autorebase
on:
  issue_comment:
    types: [created, edited, deleted]

jobs:
  mergify-stack-auto-rebase:
    if: github.event.issue.pull_request && startsWith(github.event.comment.body, '@mergify-cli stack rebase')
    runs-on: ubuntu-24.04
    steps:
      - name: Run mergify stack github-action-auto-rebase
        uses: Mergifyio/mergify-cli@v1
        with:
          GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published