Skip to content

Commit c385d52

Browse files
authored
CI: Add /rebase command (#1698)
(stolen from v3 repo)
1 parent 53df31f commit c385d52

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/rebase.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Rebase command
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
rebase:
9+
name: Rebase
10+
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Automatic Rebase
19+
uses: cirrus-actions/rebase@b91cdc98c0c0d3c4673647a74a68731bf3c29276 # 1.3.1
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)