-
Notifications
You must be signed in to change notification settings - Fork 91
33 lines (31 loc) · 906 Bytes
/
fast-forward.yml
File metadata and controls
33 lines (31 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
name: Fast Forward
on:
issue_comment:
types: [created, edited]
pull_request_review:
types: [submitted]
jobs:
fast-forward:
# Only run if the comment or approval contains the /fast-forward command,
# or if it was a dependabot PR.
if: >-
${{
( github.event.issue.pull_request && contains(github.event.comment.body, '/fast-forward')) ||
(
github.event.review && github.event.review.state == 'approved' && (
github.event.pull_request.user.url == 'https://api.github.com/users/dependabot%5Bbot%5D' ||
contains(github.event.review.body, '/fast-forward')
))
}}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- name: Fast forwarding
uses: sequoia-pgp/fast-forward@v1
with:
merge: true
comment: on-error