terraform-provider-github
terraform-provider-github copied to clipboard
Introduce a working github_repository_prereceive_hook resource
What does this PR do?
This adds a new resource for managing pre-receive hooks in GitHub Enterprise.
Example HCL
resource "github_repository_prereceive_hook" "code_reviews" {
name = "require-code-review"
repository = "hello-world"
enforcement = "enabled"
}
TODO
- [x] Write integration tests
- [x] Update docs
@tracypholmes this is a feature that's only available in GitHub Enterprise. I don't believe the main GitHub website supports this API endpoint. I ran the tests against our GHE install and they passed. I'll get the other comments addressed shortly. 👍
👋 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!
👋 Hey Friends, this pull request 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!