Non existent merge conflicts on Github Pul Requests

174 views
Skip to first unread message

Jason Moore

unread,
Dec 28, 2015, 11:19:03 AM12/28/15
to sy...@googlegroups.com
Howdy,

Github has this new "Update Branch" button which will automatically merge in changes from master to your Pull Request. This is pretty convenient (although you have to remember to pull your branch locally after you hit the button), but it seems like the "Merge pull request" button goes gray on non-related changes on master, forcing you to update with master when it isn't necessary. I have some pull requests on the PyDy repo that affect files that are not related to the files that were changed on the master branch (i.e. no merge conflicts) and Github will not let me merge. I'm pretty sure that wasn't the case before. It seems github is forcing an update from master regardless of if there are merge conflicts are not. Am I doing something wrong?

Aaron Meurer

unread,
Dec 28, 2015, 1:57:54 PM12/28/15
to sy...@googlegroups.com
Where does this button appear? I don't see it on any of my pull requests.

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAP7f1AieYy2tTBAv3y-qXGQnz1zHSd7Z65hdOT79Ve84GOj-pA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Jason Moore

unread,
Dec 28, 2015, 2:54:12 PM12/28/15
to sy...@googlegroups.com
It seems to show up only on PRs that you create. You can't update other people's PRs. See an image here:

https://github.com/blog/2051-protected-branches-and-required-status-checks

Jason Moore

unread,
Dec 28, 2015, 2:56:02 PM12/28/15
to sy...@googlegroups.com
Here is PyDy PR 315 (https://github.com/pydy/pydy/pull/315) for me:

Inline image 1
Note that the button is greyed out now, but if something gets merged to master (even if it doesn't conflict) the "merge pull request" will be disabled and the "update branch" button will be enabled.

Aaron Meurer

unread,
Dec 28, 2015, 3:47:53 PM12/28/15
to sy...@googlegroups.com
I just played with it and apparently it only does that if you enable required status checks in the branch protection settings (like requiring travis-ci). I guess the idea is that you don't know if the tests are valid with a new merge base or not.  

I guess this makes sense for repos where the tests run quickly and merging results in a deployment somewhere. I think it makes less sense for SymPy or PyDy since releases are done separately and occasional test failures in master are not the end of the world, especially since this would mean running the tests way more often and backing up the Travis queue even more (at least for SymPy, that would be pretty bad).

Aaron Meurer

Jason Moore

unread,
Dec 28, 2015, 5:34:04 PM12/28/15
to sy...@googlegroups.com
Cool, I'll remove that setting then so it will be back to normal. Thanks.
Reply all
Reply to author
Forward
0 new messages