Skip to content

Commit

Permalink
ci: add /rebase comment listener in PR's
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Aug 12, 2020
1 parent 3aca0f1 commit e08cfbf
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Automatic Rebase

on:
issue_comment:
types: [created]

jobs:
rebase:
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: run rebase action
uses: cirrus-actions/rebase@1.3.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e08cfbf

Please sign in to comment.