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?
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.
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.