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
github_branch_protection requires branch to exist #164
A branch protection rule should be created for the branch (or fnmatch wildcard) in question
Actual Behavior
github_branch_protection.release-branch-protection: PUT https://api.github.com/repos/foo/bar/branches/release/protection: 404 Branch not found []
@abridgett We have the same issue and I guess you would need to use auto_init. But we can't use auto_init because that would destroy our existing repos (#155).
Reacted by Dustin Row, Kevin Behrens, dlilg, Hendrik M Halkow, Danny Grove, Github Owner, Tamas Szasz, HenryNguyen5, Pascal Hofmann, Gregory Kman and 1 more
👋 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
estahn commentedon Dec 11, 2018
@abridgett We have the same issue and I guess you would need to use
auto_init. But we can't useauto_initbecause that would destroy our existing repos (#155).Update github_repository docs
jonathanan commentedon Feb 14, 2019
This is a limitation of the GitHub API: https://github.community/t5/GitHub-API-Development-and/REST-API-v3-wildcard-branch-protection/m-p/14547#M260
patrickmarabeas commentedon Feb 10, 2020
Github v4 API provides the ability to specify a pattern rather than a branch.
I have uplifted the resource to use the v4 API: https://github.com/terraform-providers/terraform-provider-github/pull/337
Update github_repository docs
github-actions commentedon Dec 11, 2022
👋 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!kfcampbell commentedon Dec 12, 2022
Closing as #337 has been merged/released. Please create a new issue for further problems with this!