-
Notifications
You must be signed in to change notification settings - Fork 9
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
CHANGELOG.md conflicts #233
Comments
Hey @SubJunk Thanks for opening this issue. I have the same conflicts for PRs in this repo itself. I've been able to just use the I have two general ideas here
I personally think Option 2 is a good path to explore - and I might prototype for myself in this repo if I have time this week. |
Thanks for your reply. Those are good ideas. I tried to automate it fully here UniversalMediaServer/UniversalMediaServer@881cc65 which is an action that runs every time a PR is merged. It looks through all PRs that are still open, and adds a comment and label if they are conflicted. I make it leave the comment You can see at UniversalMediaServer/UniversalMediaServer#4364 (comment) that the comment and label worked, but Dependabot replied with:
It's possible that we could give that bot the access that Dependabot needs and it would work. There is another limitation which is that it would do it for all PRs, not just Dependabot ones. It's not a practical problem because Dependabot will ignore PRs that it did not create, but it is comment spam. It still feels like a good approach to me if we can give the bot push access though. Edit: I will try again with this approach because it feels like it is almost working |
@SubJunk that is a neat approach! I do think Dependabot does rebasing automatically, it just might take time for it to propagate without a manual comment. I am also in the process of extending this action to require a list of labels by which to execute (new input as |
@dangoslen you're right that Dependabot usually does it automatically, but it doesn't do it if anyone else has committed to the branch, so it doesn't happen here I have this workflow working now though! I had to create a custom access token, so now it leaves a comment as me. Actually a bit weird since it is indistinguishable from my real comments, but cool. e.g. UniversalMediaServer/UniversalMediaServer#4426 (comment) I think I will request a feature from that other Action to allow filtering for PR authors/bots. If I can make it only comment on Dependabot PRs it will be perfect |
Very cool! One of the ideas I was trying to mention earlier was that by utilizing an auto-merge tool, this action could trigger at the "end" of the PR lifecycle, allowing Dependabot to rebase for you. Take a look at the PR in #244 as it will allow activating/running this action based on the presence of multiple labels vs. just one. |
@dangoslen thanks for your reply, so instead of clicking the merge button, I apply the label, which triggers this changelog action followed by the automerge action? I like that, I think it could save time by creating fewer conflicts. I will try it |
Exactly right. I've set up that same workflow for this repo. I'll see how it all works tomorrow when my weekly dependabot PRs come through. |
Here is an example of this idea in action: #246 On that PR, this action is configured to run when both the |
I've just released version 3.8.0 to add the multiple labels. At this point, I think a good idea to resolve/close this issue is to write up some example documentation for how to solve this. I don't think this action has the capability of totally solving the merge conflict problem, but I do think there are strategies (like the ones we've discussed) that can aid in conflict avoidance/prevention to help users have a better experience. Does that sound like a reasonable compromise @SubJunk ? |
I added a new However, I tried using this in this MR: wcampbell0x2a/backhand#464, and I couldn't the Action to trigger. Help would be appreciated. |
@dangoslen it seems like this is related to #231? |
Hi @wcampbell0x2a. Thanks for letting me know Looking at the second PR you linked and the actions that ran, I noticed that in the entire workflow was skipped rather than this action not running itself. I noticed you have a Let me know how else I can help! |
@stevehipwell I do agree this could be remedied by running the updates on main vs. the PR itself. I haven't had a chance to dig into it further though. |
Thanks for the help, that makes sense! Another issue: https://github.com/wcampbell0x2a/backhand/actions/runs/7823808152/job/21345338507?pr=469
But I use |
@wcampbell0x2a I'll look into this. I have a theory that I incorrectly am handling the deprecated input. If so, I'll try to get a |
@wcampbell0x2a I have a PR with the fix ready. Would you be willing to verify it in your workflow to make sure it resolves your issue? #250 |
Sure. How do I do this? |
You should be able to adjust the workflow to point to that PR |
Pretty sure I tested it here: https://github.com/wcampbell0x2a/backhand/actions/runs/7839631475/job/21392960353?pr=469, same issue. wcampbell0x2a/backhand@ea335b7 |
Ah. So while you committed that change to the workflow, since its a I am pretty confident it will fix your issue. I'll go ahead and cut a |
Fine by me. I'll make sure to let you know if it works once I update to that version. |
I cut |
I have run into a situation where there is almost always a conflict in CHANGELOG.md after I merge a PR that uses this action. Dependabot is unable to recreate the branch automatically, because Dependabot stops doing that when another actor pushes a commit.
Is there a recommendation for how to resolve this automatically? For now I have to leave a comment like
@dependabot recreate
in each PR it happens.An example is at UniversalMediaServer/UniversalMediaServer#4364
The text was updated successfully, but these errors were encountered: