add rebase bot

This commit is contained in:
Amin Yahyaabadi 2020-09-16 17:04:55 -05:00
parent 5f35bd0bd9
commit 3984ff82e5

18
.github/rebase.yml vendored Normal file
View File

@ -0,0 +1,18 @@
on:
issue_comment:
types: [created]
name: Automatic Rebase
jobs:
rebase:
name: Rebase
if: github.event.issue.pull_request != '' && github.event.comment.author_association == 'OWNER' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/rebase@1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}