Skip to content

Commit

Permalink
chore: set major version bumps as breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-cuppari committed Nov 8, 2023
1 parent d4aa20f commit 94cc934
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ jobs:
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: contains(steps.metadata.outputs.dependency-names, '@commitlint/cli') || contains(steps.metadata.outputs.dependency-names, '@commitlint/travis-cli')
- name: Auto merge major versions
if: (contains(steps.metadata.outputs.dependency-names, '@commitlint/cli') || contains(steps.metadata.outputs.dependency-names, '@commitlint/travis-cli')) && step.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --body "BREAKING CHANGE" --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Auto-merge non major versions
if: (contains(steps.metadata.outputs.dependency-names, '@commitlint/cli') || contains(steps.metadata.outputs.dependency-names, '@commitlint/travis-cli')) && step.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 94cc934

Please sign in to comment.