ce94af3b3f
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 |
||
---|---|---|
.. | ||
__init__.py | ||
githubconnection.py | ||
githubmodel.py | ||
githubreporter.py | ||
githubsource.py | ||
githubtrigger.py |