Skip to content

Commit 956e49a

Browse files
committed
add .github/workflows/autorebase.yml
1 parent d7d65e5 commit 956e49a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/autorebase.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# File managed by web3-bot. DO NOT EDIT.
2+
# See https://github.com/protocol/.github/ for details.
3+
4+
# Allow PRs opened by web3-bot to be rebased by commenting "@web3-bot rebase" on the PR.
5+
6+
on:
7+
issue_comment:
8+
types: [ created ]
9+
10+
name: Automatic Rebase
11+
jobs:
12+
rebase:
13+
name: Rebase
14+
if: github.event.issue.pull_request != '' && github.event.issue.user.login == 'web3-bot' && contains(github.event.comment.body, '@web3-bot rebase')
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout the latest code
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
token: ${{ secrets.WEB3BOT_GITHUB_TOKEN }}
22+
- name: Automatic Rebase
23+
uses: cirrus-actions/rebase@7cea12ac34ab078fa37e87798d8986185afa7bf2 # v1.4
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.WEB3BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)