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
Add support for configuring checks to branch protection #985
The GitHub API supports setting up checks as well as contexts for branch protection. checks provide a few more configuration options (like enforcing that a check is set by a specific app)
Could you add support to the github_branch_protection and github_branch_protection_v3 resources to configure checks? Currently they only support contexts
Thanks
Reacted by Grahame Murray, Kevin Zhao, zacharymelancon, Alec Kloss, sam-netlogix, bombelme, a296Cg and Sam Tarplee
I took a look at this and I believe go-github doesn't support this field yet either. So we'd have to wait for them to implement it first before we can add this to terraform provider. Created an issue in the go-github repo for this here: google/go-github#2274
I have tried to kick a PR off to support this in #1415, though it looks like Github does some interesting things in the back-end (Returning a list of contexts when only checks were provided). If anyone with more experience developing plugins would like to chime in / extend this work I'd be more than happy for the help 🙏
Just want to be able to define protections again 🥲
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
Activity
k24dizzle commentedon Jan 27, 2022
I took a look at this and I believe
go-githubdoesn't support this field yet either. So we'd have to wait for them to implement it first before we can add this to terraform provider. Created an issue in thego-githubrepo for this here:google/go-github#2274
zacharymelancon commentedon Mar 30, 2022
google/go-github#2276 @k24dizzle It looks like checks was added to go-github since your last comment.
k24dizzle commentedon Mar 30, 2022
Yeah so this is where I left off with this: #1051
Now that it is in go-github, we could pick this work up again
bombelme commentedon Nov 10, 2022
@k24dizzle are you planning to continue working on this?
TheQueenIsDead commentedon Dec 7, 2022
I have tried to kick a PR off to support this in #1415, though it looks like Github does some interesting things in the back-end (Returning a list of contexts when only checks were provided). If anyone with more experience developing plugins would like to chime in / extend this work I'd be more than happy for the help 🙏
Just want to be able to define protections again 🥲
github-actions commentedon Apr 21, 2024
👋 Hey Friends, this issue has been automatically marked as
stalebecause it has no recent activity. It will be closed if no further activity occurs. Please add theStatus: Pinnedlabel if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!