chore: broaden dependabot auto-merge policy
This commit is contained in:
1 parent
183265fd9e
commit
c3e8eece2c
2 files changed
+9
-3
No files matched your search
@@ -15,6 +15,10 @@ updates:
|
|||||||
labels:
|
labels:
|
||||||
- dependencies
|
- dependencies
|
||||||
- dependabot
|
- dependabot
|
||||||
|
ignore:
|
||||||
|
- dependency-name: eslint
|
||||||
|
update-types:
|
||||||
|
- version-update:semver-major
|
||||||
groups:
|
groups:
|
||||||
npm-production:
|
npm-production:
|
||||||
dependency-type: production
|
dependency-type: production
|
||||||
|
|||||||
@@ -25,16 +25,18 @@ jobs:
|
|||||||
- name: Approve patch and minor updates
|
- name: Approve patch and minor updates
|
||||||
if: |
|
if: |
|
||||||
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
|
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:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
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
|
- name: Enable auto-merge after checks pass
|
||||||
if: |
|
if: |
|
||||||
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
|
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:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||||
|
|||||||
Reference in new issue
Block a user