-
Notifications
You must be signed in to change notification settings - Fork 130
Notify when merge conflict arises #224
Comments
This comment has been minimized.
This comment has been minimized.
Is it different from #203 and how? (Do you mean such situations where the merge conflict arises not because of the pull request itself, but once the target branch moves on?) |
@Mithgol Yes, that's what I mean. When the target branch (the branch I'm requesting a merge for) moves on and a conflict arises. |
The difficulty with this feature is of course performance: if you have 100 PRs, all have to be checked on each push to master. It might also generate a huge number of notifications if an user has multiple PRs (I have ~50 on GitLab =( ). But true, a single conflict digest email could be sent per time chunk. GitLab and likely GitHub cache the mergeability, and only update it when someone visits the PR show page. Related discussion on GitLab for another feature that suffers from the same limitation: showing mergeability on the PR index: http://feedback.gitlab.com/forums/176466-general/suggestions/6472237-show-on-index-view-merge-requests-can-be-automatic Of course, the email could be triggered only when the cache is updated by some visitor. |
This comment has been minimized.
This comment has been minimized.
4 similar comments
+1 |
+1 |
+1 |
+1 |
+1 (make it +20 for all developers here :D) |
@cirosantilli Of course it is performace issue and of course you can get spammed. But not all developers have so many pending MR's. For example, we have 1-2 in team, because we are constantly doing code reviews and merging them. But even if it was more, I would not consider it spamming. Either way it would be nice to have this option in settings so anyone could either turn it on or turn it off (perhaps both options - spamming one and periodically). |
Need this too. And even better than a notification would be an automatically added label / icon / whatever on the PR list page. |
Heavy annoyance: too many times wondering why my reviewer-approved PR hasn't been merged in and come to find out that the target moved on and those very busy people with write access have been skipping it because it suddenly developed conflicts. The same people are too busy to spend the time either merging it themselves or taking the time to send an email - such is the system's job. |
@OliverJAsh GitResolve does this. It determines if there is a merge conflict and notifies the users who can fix the them whenever conflicts arise. A shareable link with a preview of the merge conflict is also provided. Here's how it works: https://gitresolve.com/how-it-works Check it out. |
@OliverJAsh And I though it is a plugin to GitLab. Such a commercial :D |
@OliverJAsh Can you explain how is this thread solved? |
Oops, meant to unsubscribe, not close. |
RE: And I though it is a plugin to GitLab. Such a commercial :D RE: Need this too. And even better than a notification would be an automatically added label / icon / whatever on the PR list page. |
@gitresolve You are talking about label. That would mean to start using the service instead of/with gitlab, right? Why to use two services when you can use just one? Only these notifications make sense but I doubt that any Ops team would like to install it just for notifications about conflicts. :) |
@arenaq RE: GitLab. Oh ic. Sorry, yup, this only works with GitHub :( It is completely fair that an ops team will not be ok with installing it just for notifications. It is starting with merge conflicts and will hopefully automate more mundane tasks later. Thanks for the feedback. |
@gitresolve It's really great that you're tackling this problem. I think this could be really helpful. I'm looking for a solution that goes further, and will notify about PRs that would conflict with each each other once the other was merged. You can cut down the apparent n x n complexity significantly in the average case by maintaining a dictionary of file path to list of {time last changed, PR that changed it}, then only check those particular file/PR combos for conflicts when they change again. Bonus points: Do it for branches that don't have PRs yet. If anyone knows of someone who's already solved this, on GitHub or as a local application, let me know. |
+1 |
This comment has been minimized.
This comment has been minimized.
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1, if you are worried about performance, make it configurable, disabled by default, per user, whatever |
This comment has been minimized.
This comment has been minimized.
4 similar comments
+1 |
+1 |
+1 |
+1 |
This is now exposed via the API using the |
This comment has been minimized.
This comment has been minimized.
2 similar comments
+1 |
+1 |
I'm the developer of Pull Reminders, a Slack bot for GitHub that provides real-time DM notifications. I've tried adding merge conflict notifications but found that it was basically unfeasible given that mergeability status is only calculated by GitHub when a pull request is loaded. This means that it generally requires a minimum of two API requests to get the mergeability status of a pull request. I did a longer write-up here. |
Update: Pull Reminders now offers merge conflict notifications for Slack 🕺 |
I don't see this listed as a feature on pullreminders. Is it available? |
@Kallin Where are you looking? It is available under personal notification settings: |
What about just auto-closing the request when conflict arises? And notifications for closed PR's already work |
Is it possible/feasible that a conflict state detected by Github for a given PR being checked also trigger a new tag named “Conflict” formatted in say orange as opposed to red automatically against the PR number so when the Github search list filter is used with PR having such conflicts shows up easily so @cirosantilli concern about 100 could be listed better by authors after finding which ones got conflicts. Chances are in the description/comments of a particular PR indicates which issues number a particular fixed/intending to close is being applied by selected master. Development culture could be encouraged to adopt such practices that helps managing these conflicts. |
So... Pull Reminders has been acquired by GitHub and is shutting down soon, but I don't see the merge conflict notification feature in GitHub. Am I missing something? |
@dpashkevich dealing with this same thing now, my devs really need the ability to be notified in some fashion. I'd be happy with it being available in the API and I can build the rest via a slack notification. Sadly since microsoft now owns github it'll take 30 years for anything to change (i.e the internet explorer era of developer hell) |
Mergify can also be used to automate some workflow when pull request conflict: https://docs.mergify.io/actions/comment/#request-for-action |
My colleagues always have to ping me when there's a merge conflict.
This could be automated if GitHub notified the PR author whenever a merge conflict arises, saving my colleagues precious finger energy.
The text was updated successfully, but these errors were encountered: