Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:building_construction: Adds action for easy PR rebasing

Alicia Sykes6c421e0b0754
diff --git a/.github/workflows/auto-rebase-pr.yml b/.github/workflows/auto-rebase-pr.yml
new file mode 100644
index 00000000..1ea7aa2b
--- /dev/null
+++ b/.github/workflows/auto-rebase-pr.yml
@@ -0,0 +1,23 @@
+# When a '/rebase' comment is added to a PR, it will be rebased from the main branch
+name: πŸ—οΈ Automatic PR Rebase
+on:
+ issue_comment:
+ types: [created]
+jobs:
+ rebase:
+ name: Rebase
+ if: >
+ github.event.issue.pull_request != ''
+ && contains(github.event.comment.body, '/rebase')
+ && github.event.comment.author_association == 'MEMBER'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ token: ${{ secrets.BOT_GITHUB_TOKEN }}
+ fetch-depth: 0
+ - name: Rebase
+ uses: cirrus-actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
\ No newline at end of file