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
{{ message }}
Repository navigation
Feature Request > New branch protection features support #305
Reacted by Kevin P. Fleming, Golo Roden, Hirotake Kobayashi, Sebastian Opel, Stefan Wessels Beljaars, Arri Rucker, David Scott, Shun Kakinoki, Pranas Kiziela, Gus Narea and 12 more
@arri-cc I think you will also encounter issues when upgrading the Terraform version as there is a Go 1.12 SDK feature used in TF v0.12.14 onwards causing issues as we are on Go 1.11.
I have raised #370 to hopefully remediate this issue
@arri-cc I think you will also encounter issues when upgrading the Terraform version as there is a Go 1.12 SDK feature used in TF v0.12.14 onwards causing issues as we are on Go 1.11.
I have raised #370 to hopefully remediate this issue
Interesting, we're currently using Terraform v0.12.15, so thanks for the heads up.
I've been waiting in the wings while @benj-fletch and @martinssipenko sort out a number of issues that were discovered after upgrading to go-github v29.0.2. #370 and #372 are now completed. Now what's left is the upgrade to go-github v29.0.3, which is the release that adds the branch protection features we're interested in. The remaining open issue (afaik) is here #369, which appears to be near completion.
Reacted by Yordis Prieto, Jeremy Udit, Shun Kakinoki and David Scott
I'm now seeing requiresLinearHistory, allowsDeletions and allowsForcePushes available via the GraphQL API for BranchProtectionRule. Seems like we can proceed with making these configurable for the github_branch_protection resource.
I had hoped the github_branch_protection_v3 resource was transitional and did not plan on updating it with new features. Curious to hear if just enabling these features for just the github_branch_protection resource would satisfy everyone or if there are a lot of users still stuck on github_branch_protection_v3.
I had hoped the github_branch_protection_v3 resource was transitional and did not plan on updating it with new features. Curious to hear if just enabling these features for just the github_branch_protection resource would satisfy everyone or if there are a lot of users still stuck on github_branch_protection_v3
We are not using github_branch_protection_v3 at all. Eagerly awaiting the additional of requiresLinearHistory support to github_branch_protection!
Reacted by Jeremy Udit, Nate Dobbs and Alexei Dudko
I'm now seeing requiresLinearHistory, allowsDeletions and allowsForcePushes available via the GraphQL API for BranchProtectionRule. Seems like we can proceed with making these configurable for the github_branch_protection resource.
I had hoped the github_branch_protection_v3 resource was transitional and did not plan on updating it with new features. Curious to hear if just enabling these features for just the github_branch_protection resource would satisfy everyone or if there are a lot of users still stuck on github_branch_protection_v3.
I think there are probably some orgs stuck on v3 for various reasons, my org is not using it anymore. I think we should support both APIs while github keeps pushing features to it. It does not mean that we have to have 1:1 feature parity though that would be ideal as it makes it easier for folks to migrate when they are ready.
Activity
arri-cc commentedon Feb 27, 2020
Now that #342 is merged, this update is now possible. Working on it now.
arri-cc commentedon Feb 28, 2020
actually, we need the latest version v29.0.3 https://github.com/google/go-github/tree/v29.0.3
I'll submit a separate PR to hopefully get that done first.
martinssipenko commentedon Feb 28, 2020
@arri-cc you are correct. I tried doing a simple upgrade, but turned out it's not that simple, I've opened issue #368 where I outlined the issue.
benj-fletch commentedon Feb 28, 2020
@arri-cc I think you will also encounter issues when upgrading the Terraform version as there is a Go 1.12 SDK feature used in TF v0.12.14 onwards causing issues as we are on Go 1.11.
I have raised #370 to hopefully remediate this issue
arri-cc commentedon Feb 28, 2020
Interesting, we're currently using Terraform v0.12.15, so thanks for the heads up.
yordis commentedon Mar 5, 2020
@arri-cc are you still working on this? Can I help somehow?
arri-cc commentedon Mar 5, 2020
@yordis Hi!
I've been waiting in the wings while @benj-fletch and @martinssipenko sort out a number of issues that were discovered after upgrading to go-github v29.0.2.
#370 and #372 are now completed. Now what's left is the upgrade to go-github v29.0.3, which is the release that adds the branch protection features we're interested in. The remaining open issue (afaik) is here #369, which appears to be near completion.
arri-cc commentedon Apr 1, 2020
looks like we have go-github v29.0.3 now, i'll revisit this
kuwas commentedon Jun 24, 2020
@jcudit Will #473 be merged soon? Thanks
TigerC10 commentedon Oct 23, 2020
Looking forward to #473 😄
jimsmith-fd commentedon Feb 1, 2021
+1 for
required_linear_historyorrequire_linear_historywhatever the argument will be settled on.I posted a comment here (as there seems to be a few splits for this argument) #473 (comment)
jcudit commentedon Apr 6, 2021
I'm now seeing
requiresLinearHistory,allowsDeletionsandallowsForcePushesavailable via the GraphQL API forBranchProtectionRule. Seems like we can proceed with making these configurable for thegithub_branch_protectionresource.I had hoped the
github_branch_protection_v3resource was transitional and did not plan on updating it with new features. Curious to hear if just enabling these features for just thegithub_branch_protectionresource would satisfy everyone or if there are a lot of users still stuck ongithub_branch_protection_v3.anelson commentedon Apr 23, 2021
We are not using
github_branch_protection_v3at all. Eagerly awaiting the additional ofrequiresLinearHistorysupport togithub_branch_protection!majormoses commentedon Apr 24, 2021
I think there are probably some orgs stuck on v3 for various reasons, my org is not using it anymore. I think we should support both APIs while github keeps pushing features to it. It does not mean that we have to have 1:1 feature parity though that would be ideal as it makes it easier for folks to migrate when they are ready.
dududko commentedon Aug 3, 2021
Any update on this issue ?
charlie-collard commentedon Aug 19, 2021
I've just submitted a PR to add this, tested to work locally