Seen while attempting to release version 0.2.2.
Workaround: follow the manual procedure
Run benjefferies/[email protected]
with:
access_token: ***
enforce_admins: true
branch: main
retries: 5
Getting branch protection settings for process-analytics/bpmn-visualization-R
Traceback (most recent call last):
File "/bin/run.py", line 83, in <module>
toggle_enforce_admin(p.parse_args())
File "/bin/run.py", line 22, in toggle_enforce_admin
protection = get_protection(access_token, branch_name, owner, repo_name)
File "/bin/run.py", line 61, in get_protection
protection = branch.protection()
File "/pyroot/lib/python3.7/site-packages/github3/decorators.py", line 31, in auth_wrapper
return func(self, *args, **kwargs)
File "/pyroot/lib/python3.7/site-packages/github3/repos/branch.py", line 73, in protection
json = self._json(resp, 200)
File "/pyroot/lib/python3.7/site-packages/github3/models.py", line 157, in _json
raise exceptions.error_for(response)
github3.exceptions.NotFoundError: 404 Not Found