Skip to content

Commit bf66a2b

Browse files
committed
chore(ci): enable auto-merge label for dependabot and workflows
1 parent e144c7c commit bf66a2b

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ updates:
1111
labels:
1212
- "dependencies"
1313
- "github-actions"
14+
- "auto-merge"
1415
commit-message:
1516
prefix: "chore"
1617
include: "scope"
@@ -26,6 +27,7 @@ updates:
2627
labels:
2728
- "dependencies"
2829
- "go"
30+
- "auto-merge"
2931
commit-message:
3032
prefix: "chore"
3133
include: "scope"

.github/workflows/merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Auto Merge
22

33
on:
44
pull_request:
5-
types: [opened, reopened]
5+
types: [opened, reopened, labeled]
66

77
jobs:
88
merge:
9-
if: github.actor == 'dependabot[bot]'
9+
if: contains(github.event.pull_request.labels.*.name, 'auto-merge')
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write

.github/workflows/update.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ jobs:
2929
uses: DeterminateSystems/update-flake-lock@v28
3030
with:
3131
pr-title: "chore(flake): update flake.lock"
32-
pr-labels: dependencies
32+
pr-labels: |
33+
dependencies
34+
auto-merge
3335
commit-msg: "chore(flake): update flake.lock"
34-
git-author-name: dependabot[bot]
35-
git-author-email: dependabot[bot]@users.noreply.github.com
36-
git-committer-name: dependabot[bot]
37-
git-committer-email: dependabot[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)