Skip to content

Conversation

@baywet
Copy link
Member

@baywet baywet commented Oct 21, 2025

This adds a workflow that will set auto-merge for dependabot PRs that are semver patch or minors.
It will still require a review from a human being before it can merge, but save one click to that human being.
We'll need to enable auto-merge for this workflow to work properly.

I've used this workflow across dozens of repositories over the years, we could imaging hoisting it to the .github repo so it's available on all repositories for the org

@baywet baywet requested review from a team as code owners October 21, 2025 13:20
@baywet baywet self-assigned this Oct 21, 2025
@ralfhandl
Copy link
Contributor

Looks convincing: how did you test it, given the two "if" conditions?

@ralfhandl ralfhandl requested review from a team, lornajane and mikekistler October 24, 2025 07:47
@baywet
Copy link
Member Author

baywet commented Oct 24, 2025

I've been using this workflow on dozens of repositories over the last 5 years or so to merge thousands of pull requests.
See all kiota repositories, Microsoft/openAPI.net, a lot of the Microsoft SDKs repositories etc...

@baywet baywet merged commit 7ada991 into main Oct 24, 2025
3 checks passed
@baywet baywet deleted the ci/auto-merge-dependabot branch October 24, 2025 09:48
@baywet
Copy link
Member Author

baywet commented Oct 24, 2025

Here is a recent example of the result microsoft/kiota-java#2045

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants