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
Allow configuring by file so that dependabot creates draft pull requests #9169
base: main
Are you sure you want to change the base?
Allow configuring by file so that dependabot creates draft pull requests #9169
Conversation
Hey there, I think that your "Why" is not strong enough Dependabot supports open-pull-requests-limit for this I believe that this is very limited use case and you can probably accomplish this using a custom Gh action workflow in the meantime. Ie : if user == dependabot -> set the pr as draft |
Yeah, sure, I could accomplish it in other ways, and that's what makes development beautiful. But why not give that opportunity and ease? Dependabot has a lot of ways to do a lot of things, including what you suggested with the pull request limit, and that's a strangle in my opinion. I think that the possibility to open draft pull requests should be available. But I'm not the one that makes decisions here. |
The problem is that, as I mentioned, the "why" is not strong enough. Just because a pull request is created, it doesn't make it compulsory to be reviewed and merged. It is perfectly fine and valid to leave pull requests open and not review them immediately when they are created by bots More configuration options are not necessarily better as it can lead to feature creep, so let's wait and see what the community thinks |
You're correct. I should've raised this discussion as an issue before going into coding. |
Description
What?
This PR adds the possibility that, on dependabot.yml file, the user can choose if dependabot creates draft pull requests by default instead of review for review ones
Why?
Depending on the repository, dependabot creates a lot of pull requests that, not necessarily, gets reviewed immediately. So they stay there ready for review until someone goes, analyse the changelog of the dependency and then decides to approve it or merge it.
How?
draft: true
,draft: false
by default;draft: true
if that's the case;Tests
Observations
I don't know to test this manually and would appreciate if someone could help me with it.
This is my first PR in this repo so I hope it's OK the way that I described it and the changes I made in code.
Resolves #1291