Pygithub: required_linear_history not supported in branch protection

Created on 4 Jun 2020  ·  4Comments  ·  Source: PyGithub/PyGithub

I don't see required_linear_history as an available option in edit_protection or elsewhere. Is there a specific reason for its absence or any timeline on when it might make it in?

The update protection GH docs for reference

improvement stale

Most helpful comment

Huh. I will note that parameter was not available when I wrote the branch protection code, which is why it's missing. I'll investigate adding it.

All 4 comments

Huh. I will note that parameter was not available when I wrote the branch protection code, which is why it's missing. I'll investigate adding it.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This parameter was introduced in GitHub 2.20 (release notes) along with two other options as well, allow_force_pushes and allow_deletions. Support for all three would be great.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings