Skip to content

Commit

Permalink
Merge pull request #11761 from brave/6595-trigger-rebase-on-pr-ready
Browse files Browse the repository at this point in the history
Add rebase when PRs move from draft to ready for review
  • Loading branch information
Chris Hudson authored Jan 6, 2022
2 parents afecf21 + 90dc7ad commit 3117676
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pr_ready_for_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Ready for Review Rebase

on:
pull_request:
types: [ready_for_review]

jobs:
add_label:
if: contains(github.event.pull_request.labels.*.name, 'CI/run-draft') != true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: add rebase label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: rebase

- name: git checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0

- name: automatic rebase
uses: cirrus-actions/rebase@1.5
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: remove label
if: always()
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: rebase

0 comments on commit 3117676

Please sign in to comment.