Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

Commit c754df5

Browse files
committed
Add auto rebase workflow, disable pr title check for dependabot
1 parent cf97974 commit c754df5

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ updates:
99
directory: '/' # Location of package manifests
1010
schedule:
1111
interval: 'daily'
12+
commit-message:
13+
prefix: 'chore: '
14+
include: 'scope'

.github/workflows/check_pr_title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions: write-all
1111

1212
jobs:
1313
validate_pr_title:
14-
name: Validate PR title
14+
name: 👌 Validate PR title
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: amannn/action-semantic-pull-request@v5

.github/workflows/rebase.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Automatic Rebase
2+
on:
3+
issue_comment:
4+
types: [created]
5+
jobs:
6+
rebase:
7+
name: 🌿 Rebase
8+
runs-on: ubuntu-latest
9+
if: >-
10+
github.event.issue.pull_request != '' &&
11+
(
12+
contains(github.event.comment.body, '/rebase') ||
13+
contains(github.event.comment.body, '/autosquash')
14+
)
15+
steps:
16+
- name: 🛒 Checkout code
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
token: ${{ secrets.ADMIN_TOKEN }}
21+
22+
- name: 🤖 Automatic Rebase
23+
uses: cirrus-actions/rebase@1.8
24+
with:
25+
autosquash: ${{ contains(github.event.comment.body, '/autosquash') || contains(github.event.comment.body, '/rebase-autosquash') }}
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}

0 commit comments

Comments
 (0)