diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 81170bd..b0c4503 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -15,6 +15,10 @@ updates: labels: - dependencies - dependabot + ignore: + - dependency-name: eslint + update-types: + - version-update:semver-major groups: npm-production: dependency-type: production diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index d76ffa1..ca8ce61 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -25,16 +25,18 @@ jobs: - name: Approve patch and minor updates if: | steps.metadata.outputs.update-type == 'version-update:semver-patch' || - steps.metadata.outputs.update-type == 'version-update:semver-minor' + steps.metadata.outputs.update-type == 'version-update:semver-minor' || + steps.metadata.outputs.update-type == 'version-update:semver-major' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_URL: ${{ github.event.pull_request.html_url }} - run: gh pr review "$PR_URL" --approve --body "Auto-approved for safe Dependabot patch/minor update." + run: gh pr review "$PR_URL" --approve --body "Auto-approved for Dependabot update after policy and CI checks." - name: Enable auto-merge after checks pass if: | steps.metadata.outputs.update-type == 'version-update:semver-patch' || - steps.metadata.outputs.update-type == 'version-update:semver-minor' + steps.metadata.outputs.update-type == 'version-update:semver-minor' || + steps.metadata.outputs.update-type == 'version-update:semver-major' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_URL: ${{ github.event.pull_request.html_url }}