Skip to content

Commit

Permalink
disable auto-merge for dependency bumps with major version 0 (#204)
Browse files Browse the repository at this point in the history
Done to adhere to semantic versioning guidelines, which state that patch and minor bumps in
dependencies with major version 0 can potentially contain breaking changes.

https://semver.org/#spec-item-4
  • Loading branch information
arblitroshani committed Nov 20, 2023
1 parent 2e6585c commit fe66996
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/template_automerge_dependabot.yml
Expand Up @@ -37,7 +37,10 @@ jobs:
github-token: ${{ steps.get_token.outputs.token }}

- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
if: >-
(steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
steps.metadata.outputs.update-type == 'version-update:semver-minor') &&
!startsWith(steps.metadata.outputs.previous-version, '0.')
run: |
gh pr review --approve "$PR_URL"
Expand Down

0 comments on commit fe66996

Please sign in to comment.