Skip to content

Commit 53a799c

Browse files
authored
chore: Update Dependabot related settings (#10597)
chore: update dependabot settings
1 parent 8b1ca1b commit 53a799c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/dependabot.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ updates:
1818
patterns:
1919
- "xunit"
2020
- "xunit.*"
21+
- "xunit.v3"
22+
- "xunit.v3.*"
2123
- "Verify.Xunit"
24+
- "Verify.XunitV3"
2225

2326
- package-ecosystem: npm
2427
target-branch: main

.github/workflows/dependabot.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: ${{ github.actor == 'dependabot[bot]' }}
1212
steps:
13-
- run: gh pr review --approve "$PR_URL"
13+
- name: Retrieve Dependabot metadata
14+
id: metadata
15+
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7 # v2.3.0
16+
17+
- name: Auto Approve PR
18+
run: gh pr review --approve "$PR_URL"
1419
env:
1520
PR_URL: ${{github.event.pull_request.html_url}}
1621
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
17-
- run: gh pr merge --auto --squash "$PR_URL"
22+
23+
- name: Auto Merge PR
24+
run: gh pr merge --auto --squash "$PR_URL"
25+
if: ${{ steps.metadata.outputs.package-ecosystem != 'github_actions' }}
1826
env:
1927
PR_URL: ${{github.event.pull_request.html_url}}
2028
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)