Skip to content

Commit

Permalink
Dependabot auto-merge non-major PRs on current repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus authored Dec 3, 2024
1 parent b2ca395 commit 1e63d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'typisttech/wordfence'
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'typisttech/wordfence-api'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-minor'
if: steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down

0 comments on commit 1e63d04

Please sign in to comment.