Skip to content

Commit

Permalink
Add another option for fast-forward merge comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Jul 31, 2024
1 parent 6655ef1 commit 09c30da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/fast_forward.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ jobs:
pull-requests: write # Writing comments on PRs.
issues: write # Also required for posting comments on PRs.

# Only run if the comment contains the '/fast-forward' command.
if: ${{ contains(github.event.comment.body, '/fast-forward') && github.event.issue.pull_request }}
# Only run if the comment is one of the defined keywords.
if: >-
${{
github.event.issue.pull_request
&& contains(fromJSON('["/fast-forward", "/ff"]'), github.event.comment.body)
}}
steps:
- name: "Fast forwarding"
Expand Down

0 comments on commit 09c30da

Please sign in to comment.