Skip to content

Commit 09c30da

Browse files
committed
Add another option for fast-forward merge comment
1 parent 6655ef1 commit 09c30da

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/fast_forward.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ jobs:
1414
pull-requests: write # Writing comments on PRs.
1515
issues: write # Also required for posting comments on PRs.
1616

17-
# Only run if the comment contains the '/fast-forward' command.
18-
if: ${{ contains(github.event.comment.body, '/fast-forward') && github.event.issue.pull_request }}
17+
# Only run if the comment is one of the defined keywords.
18+
if: >-
19+
${{
20+
github.event.issue.pull_request
21+
&& contains(fromJSON('["/fast-forward", "/ff"]'), github.event.comment.body)
22+
}}
1923
2024
steps:
2125
- name: "Fast forwarding"

0 commit comments

Comments
 (0)