[Python-Dev] Can CPython on GitHub use the "Merge" button on pull requests (now that they support "squash and merge")?

Ben Hoyt benhoyt at gmail.com
Tue Sep 13 20:17:30 EDT 2016


Great, and thanks for the info! -Ben

On Sep 13, 2016 5:31 PM, "Brett Cannon" <brett at python.org> wrote:

>
>
> On Tue, 13 Sep 2016 at 13:56 Ben Hoyt <benhoyt at gmail.com> wrote:
>
>> I noticed in [PEP 512 - Document steps to commit a pull request](
>> https://www.python.org/dev/peps/pep-0512/#document-steps-to-commit-a-
>> pull-request) it says that CPython on GitHub won't be able to use
>> GitHub's "Merge" button on pull requests, because we want a linear history
>> with one commit per change/issue.
>>
>> However, GitHub recently (actually on April 1, 2016 -- but it's not a
>> joke :-) added support for "commit squashing". See
>> https://github.com/blog/2141-squash-your-commits and
>> https://help.github.com/articles/about-pull-request-merges/ ...
>> basically you can do "old-GitHub-style merge" commits or "squash and merge"
>> commits, and you can even set a repo to only allow "squash and merge"
>> commits on that repo.
>>
>> Will CPython be able to use this?
>>
>
> Yes. That part of the PEP is outdated because I've been focusing on moving
> the other repos first (which are now done).
>
>
>> I think that using GitHub's integrated pull request and merge features
>> will make it much easier for contributors (and core developers for that
>> matter). And from personal experience, pressing that big green button is
>> very satisfying. :-)
>>
>> P.S. While I'm here: is there a timeline for the various stages of PEP
>> 512?
>>
>
> The hope is by the end of the year, but no sooner than the release of
> Python 3.6.0.
>
> And FYI the core-workflow mailing list is the best place to ask about the
> GitHub migration.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160913/f5f9e0f9/attachment.html>


More information about the Python-Dev mailing list