File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,21 @@ name: Fast Forward
33on :
44 issue_comment :
55 types : [created, edited]
6+ pull_request_review :
7+ types : [submitted]
68jobs :
79 fast-forward :
8- # Only run if the comment contains the /fast-forward command.
9- if : ${{ contains(github.event.comment.body, '/fast-forward')
10- && github.event.issue.pull_request }}
10+ # Only run if the comment or approval contains the /fast-forward command,
11+ # or if it was a dependabot PR.
12+ if : >-
13+ ${{
14+ ( github.event.issue.pull_request && contains(github.event.comment.body, '/fast-forward')) ||
15+ (
16+ github.event.review && github.event.review.state == 'approved' && (
17+ github.event.pull_request.user.url == 'https://api.github.com/users/dependabot%5Bbot%5D' ||
18+ contains(github.event.review.body, '/fast-forward')
19+ ))
20+ }}
1121 runs-on : ubuntu-latest
1222
1323 permissions :
You can’t perform that action at this time.
0 commit comments