File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Automatic Rebase
2+ on :
3+ issue_comment :
4+ types : [created]
5+ jobs :
6+ rebase :
7+ name : Rebase
8+ if : >-
9+ github.event.issue.pull_request != '' &&
10+ (
11+ contains(github.event.comment.body, '/rebase') ||
12+ contains(github.event.comment.body, '/autosquash')
13+ )
14+ steps :
15+ - name : Checkout the latest code
16+ uses : actions/checkout@v2
17+ with :
18+ token : ${{ secrets.GITHUB_TOKEN }}
19+ fetch-depth : 0 # otherwise, you will fail to push refs to dest repo
20+ - name : Automatic Rebase
21+ uses : cirrus-actions/rebase@1.7
22+ with :
23+ autosquash : ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments