-
Notifications
You must be signed in to change notification settings - Fork 949
github_branch_protection requires branch to exist #164
Copy link
Copy link
Closed
Labels
Description
Terraform Version
0.11.10
Affected Resource(s)
- github_branch_protection
Expected Behavior
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 []
Important Factoids
I wonder if this is a limitation of the github API, the request being sent matches what you'd expect from https://developer.github.com/v3/repos/branches/#update-branch-protection
It is possible to do this from the UI though.
Reactions are currently unavailable