Set a pre-receive hook's enforcement for a repo
One step with GitHub. We can help you get access.
Get something done
Set a pre-receive hook's enforcement for a repo
with GitHub
Use GitHub: its GitHub v3 REST Enterprise Admin API lets you set a pre-receive hook's enforcement for a repo in a single step (PATCH /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}). capabilities.work can help you get signed up and connected.
- How do I disable a pre-receive hook on just one repository?
- Can I enable a hook on my repo when the org allows it?
Say it to your AI assistant
- Set enforcement of hook {pre_receive_hook_id} on {owner}/{repo} to {enforcement}.
- Turn pre-receive hook {pre_receive_hook_id} to {enforcement} for repository {owner}/{repo} only.
For your developer
PATCH /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id} in GitHub v3 REST Enterprise Admin API. Full spec on APIs.io.