You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Octokit.net v6.0.0 does not currently support the lock_branch option when protecting branches. This is supported by the GitHub REST API.
I've forked Octokit.net repo and tweaked these files by adding LockBranch properties and will be submitting a pull request in a few minutes. This was a fairly simple change that should be backwards compatible for most people. The only compatibility issue is the BranchProtectionSettings constructor with the parameters. I added a lockBranch parameter which will break old code, but this seems desirable and was required by the unit tests:
Describe the need
Octokit.net v6.0.0 does not currently support the lock_branch option when protecting branches. This is supported by the GitHub REST API.
I've forked Octokit.net repo and tweaked these files by adding LockBranch properties and will be submitting a pull request in a few minutes. This was a fairly simple change that should be backwards compatible for most people. The only compatibility issue is the BranchProtectionSettings constructor with the parameters. I added a lockBranch parameter which will break old code, but this seems desirable and was required by the unit tests:
I've built a temporary nuget including this functionality: https://www.nuget.org/packages/Neon.Octokit/6.0.1
SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: