-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efcf7ca
commit 7c4be65
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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. | ||
# | ||
# Contributors must first rebase onto the latest commit before PR to make fast-forward possible. | ||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
jobs: | ||
fast-forward: | ||
if: ${{ contains(github.event.comment.body, '/fast-forward') | ||
&& github.event.issue.pull_request }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Check User Permission | ||
id: check-perm | ||
uses: actions-cool/[email protected] | ||
with: | ||
require: write | ||
|
||
- name: Fast forwarding | ||
if: steps.check-perm.outputs.require-result | ||
uses: sequoia-pgp/fast-forward@v1 | ||
with: | ||
merge: true | ||
comment: on-error |