terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

Introduce a working github_repository_prereceive_hook resource

Open joestump opened this issue 5 years ago • 1 comments

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

joestump avatar Jul 02 '19 21:07 joestump

@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. 👍

joestump avatar Jul 18 '19 21:07 joestump

👋 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!

nickfloyd avatar Nov 30 '22 16:11 nickfloyd

👋 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!

github-actions[bot] avatar Sep 08 '23 01:09 github-actions[bot]