-
Notifications
You must be signed in to change notification settings - Fork 7
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
Merge Dependabot PRs instead of closing #82
Conversation
ee26890
to
c9cc35d
Compare
c9cc35d
to
4691d0b
Compare
I installed this on |
Okay – PR will appear as merged instead of closed with a comment. What is the advantage of this outcome? I am reluctant to go forward with this. Since basic |
I admit that closed PRs look bad in my notifications and a repository Insights. Not sure if there are other advantages. Are these |
PR complicates the existing code, we need stronger arguments than these, IMHO.
Yes, let me give concrete examples:
I have no idea what the comment tries to mean and why the magical 32.
I don't know of a single PMC member who would understand this without reading a couple of git manpages and SO posts. If you think there are, please tell them to join us in this conversation. Can I suggest a different route: Can't you |
I can test if it works. |
ab1bc78
to
5b793b3
Compare
@vy, I have completely rewritten the PR. Now it only pushes the same commit to When dealing with a lot of Dependabot PRs the difference between "closed" and "merged" is very useful. E.g. sometimes Dependabot also closes PRs, when a new version of the dependency is released. This change should help differentiating the two cases. |
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.
Thanks for chasing this. I am really happy with the state we reached:
- It is less LoC
- It is still simple (i.e., easy to understand)
My only nitpick regret is you replaced wget
with curl
– I always find the latter to be a CVE-generator and not included in Debian-based distros by default. But if that is your preference, I am fine with it.
In overall, LGTM. You can merge it.
This PR changes the way Dependabot PR's appear in a repository history.
Currently their changes are applied only to the base branch and the PR itself is closed.
Instead of closing the PR we can reset its branch to the updated base branch. Github will detect this change and mark the PR as "merged" instead of "closed".
This technique has been tested on my personal repo:
https://github.com/copernik-eu/log4j-plugins/actions/runs/7219181183