-
Notifications
You must be signed in to change notification settings - Fork 31
Update auto-merge workflow for Dependabot PRs #328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Based on: https://github.com/stackrox/junit2jira/blob/c46b65b90ebdf07abe782e1ac42f41c594c5a8ad/.github/workflows/auto-merge.yml Dependabot no longer supports `squash and merge` command https://github.blog/changelog/2025-10-07-upcoming-changes-to-github-dependabot-pull-request-comment-commands/ - stackrox/jenkins-plugin#470
| - name: Enable auto-merge for Dependabot PRs | ||
| run: gh pr merge --auto --squash "$PR_URL" && gh pr review --approve "$PR_URL" | ||
| env: | ||
| PR_URL: ${{github.event.pull_request.html_url}} | ||
| GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this would still respect the github checks (even if they are not required). Wouldn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vikin91 Nope, checks must be required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vikin91 Here we have 1 required check so I think it's fine
| - name: Enable auto-merge for Dependabot PRs | ||
| run: gh pr merge --auto --squash "$PR_URL" && gh pr review --approve "$PR_URL" | ||
| env: | ||
| PR_URL: ${{github.event.pull_request.html_url}} | ||
| GH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on: https://github.com/stackrox/junit2jira/blob/c46b65b90ebdf07abe782e1ac42f41c594c5a8ad/.github/workflows/auto-merge.yml
Dependabot no longer supports
squash and mergecommand https://github.blog/changelog/2025-10-07-upcoming-changes-to-github-dependabot-pull-request-comment-commands/