Skip to content

Commit 7cf8b33

Browse files
authored
Merge pull request #30 from nomisRev/jetbrains-junie/issue-26-run-837bcd33-89e4-4289-80a6-4db63fba07cd
[Junie]: Configure Dependabot to automatically merge PRs if they're green - Junie
2 parents 6421fe8 + 873e909 commit 7cf8b33

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ updates:
55
schedule:
66
interval: "weekly"
77
rebase-strategy: "disabled"
8-
auto-merge: true
98

109
- package-ecosystem: "github-actions"
1110
directory: "/"
1211
schedule:
1312
interval: "weekly"
1413
rebase-strategy: "disabled"
15-
auto-merge: true
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Dependabot Auto-Merge
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
dependabot-auto-merge:
13+
runs-on: ubuntu-latest
14+
if: ${{ github.actor == 'dependabot[bot]' }}
15+
steps:
16+
- name: Dependabot metadata
17+
id: metadata
18+
uses: dependabot/fetch-metadata@v1
19+
with:
20+
github-token: "${{ secrets.GITHUB_TOKEN }}"
21+
22+
- name: Enable auto-merge for Dependabot PRs
23+
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }}
24+
run: gh pr merge --auto --merge "$PR_URL"
25+
env:
26+
PR_URL: ${{ github.event.pull_request.html_url }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)