zuul/zuul/driver/github
Tristan Cacqueray ce94af3b3f github: do not use protected=0 to get all project's branches
It seems like github.com api now skips protected branch when using the
protected=0 branches query parameter. This results in protected branch
being skipped when a tenant doesn't set the exclude-unprotected-branches
option. This change fixes this issue by setting protected=1 only
when we need to exclude_unprotected branches.

The protected parameter behavior can be observed with these URLs:

https://api.github.com/repos/ansible/zuul-config/branches
-> returns all the branches

https://api.github.com/repos/ansible/zuul-config/branches?protected=1
-> returns only the protected branch

https://api.github.com/repos/ansible/zuul-config/branches?protected=0
-> returns only the unprotected branch

Change-Id: I7e749eb723b02ec9a6f4b6193e727c35165a6b76
2019-01-26 03:49:36 +00:00
..
__init__.py Status branch protection checking for github 2018-06-04 15:47:01 +02:00
githubconnection.py github: do not use protected=0 to get all project's branches 2019-01-26 03:49:36 +00:00
githubmodel.py Improve logging of GithubTriggerEvents 2018-06-25 07:39:46 +02:00
githubreporter.py Require tenant in Pipeline constructor 2018-07-09 13:58:23 -07:00
githubsource.py Merge "Limit search scope of getChangesDependingOn to tenant" 2018-06-02 06:54:22 +00:00
githubtrigger.py Use util functions to make lists of things 2017-05-30 14:53:46 -07:00