File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : fast-forward
2
+ on :
3
+ issue_comment :
4
+ types : [created, edited]
5
+ jobs :
6
+ fast-forward :
7
+ # Only run if the comment contains the /fast-forward command.
8
+ if : ${{ contains(github.event.comment.body, '/fast-forward')
9
+ && github.event.issue.pull_request }}
10
+ runs-on : ubuntu-latest
11
+
12
+ permissions :
13
+ contents : write
14
+ pull-requests : write
15
+ issues : write
16
+
17
+ steps :
18
+ - name : Fast forwarding
19
+ uses : sequoia-pgp/fast-forward@main
20
+ with :
21
+ merge : true
22
+ # To reduce the workflow's verbosity, use 'on-error'
23
+ # to only post a comment when an error occurs, or 'never' to
24
+ # never post a comment. (In all cases the information is
25
+ # still available in the step's summary.)
26
+ comment : always
27
+
Original file line number Diff line number Diff line change
1
+ name : pull-request
2
+ on :
3
+ pull_request :
4
+ types : [opened, reopened, synchronize]
5
+ jobs :
6
+ check-fast-forward :
7
+ runs-on : ubuntu-latest
8
+
9
+ permissions :
10
+ contents : read
11
+ # We appear to need write permission for both pull-requests and
12
+ # issues in order to post a comment to a pull request.
13
+ pull-requests : write
14
+ issues : write
15
+
16
+ steps :
17
+ - name : Checking if fast forwarding is possible
18
+ uses : sequoia-pgp/fast-forward@main
19
+ with :
20
+ merge : false
21
+ # To reduce the workflow's verbosity, use 'on-error'
22
+ # to only post a comment when an error occurs, or 'never' to
23
+ # never post a comment. (In all cases the information is
24
+ # still available in the step's summary.)
25
+ comment : always
You can’t perform that action at this time.
0 commit comments