[Matplotlib-devel] protected branches on GH

Nathaniel Smith njs at pobox.com
Sat Nov 7 00:07:17 EST 2015


On Fri, Nov 6, 2015 at 8:45 PM, Thomas Caswell <tcaswell at gmail.com> wrote:
> Hey all,
>
> GH now lets you protect branches which prevents people from force-pushing or
> deleting those branches;
> https://github.com/matplotlib/matplotlib/settings/branches.
>
> I have protected our 'production' branches.
>
> There is also an option to require status checks to pass before merging to a
> given branch, but that would break our current cherry-pick workflow and mean
> that we could not use our judgement to over-rule travis.ci ;)

It looks like you can set it so that the status checks are enforced on
normal users, but administrators are allowed to ignore it:
  https://help.github.com/articles/enabling-required-status-checks/

What I really want to know is whether it prevents simply pushing
directly to the branch. That would be really awesome because it would
mean you could hand out commit bits like candy without worrying that
unreviewed code could creep into the repo... but there's no indication
of this anywhere. (OTOH if direct pushes *are* still allowed, then
that also provides a method for circumventing the status checks when
desired -- just do a manual merge and push from the command line.)

-n

-- 
Nathaniel J. Smith -- http://vorpus.org


More information about the Matplotlib-devel mailing list