Skip to content

Commit 0e73cd7

Browse files
Address PR review feedback
- Add dependabot/fetch-metadata to GitHub Actions auto-merge group - Change auto-merge workflow trigger to pull_request_review to run after approval - Ensure auto-merge only runs when review is approved Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 4a04562 commit 0e73cd7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ updates:
5656
- "actions/setup-java"
5757
- "actions/stale"
5858
- "advanced-security/maven-dependency-submission-action"
59+
- "dependabot/fetch-metadata"
5960
- "github/codeql-action"

.github/workflows/dependabot-auto-merge.yml

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

3-
on: pull_request
3+
on: pull_request_review
44

55
permissions:
66
contents: write
@@ -9,7 +9,7 @@ permissions:
99
jobs:
1010
auto-merge:
1111
runs-on: ubuntu-latest
12-
if: github.event.pull_request.user.login == 'dependabot[bot]'
12+
if: github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]'
1313
steps:
1414
- name: Get Dependabot metadata
1515
id: metadata

0 commit comments

Comments
 (0)