From 1c7a79f719361b91fe6f716a587bee6d5ec6e382 Mon Sep 17 00:00:00 2001 From: LY <51789698+Young-Lord@users.noreply.github.com> Date: Wed, 7 Feb 2024 11:33:14 +0800 Subject: [PATCH] ci: support `/fast-forward` in PR review comment --- .github/workflows/fast-forward.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fast-forward.yml b/.github/workflows/fast-forward.yml index ec7f833..947cfde 100644 --- a/.github/workflows/fast-forward.yml +++ b/.github/workflows/fast-forward.yml @@ -2,12 +2,16 @@ name: fast-forward for PR # GitHub doesn't support fast-forward merge of PR, # which causes GPG signatures overriden by GitHub's key. # This workflow allows maintainers to do a fast-forward merge -# by replying `/fast-forward` to the PR. +# by replying anything containing `/fast-forward` to the PR. # # Contributors must first rebase onto the latest commit before PR to make fast-forward possible. on: + # issue / PR comment issue_comment: types: [created, edited] + # PR comment in review + pull_request_review_comment: + types: [created, edited] jobs: fast-forward: if: ${{ contains(github.event.comment.body, '/fast-forward')