Update a pre-receive hook's global settings
One step with GitHub. We can help you get access.
Get something done
Update a pre-receive hook's global settings
with GitHub
Use GitHub: its GitHub v3 REST Enterprise Admin API lets you update a pre-receive hook's global settings in a single step (PATCH /admin/pre-receive-hooks/{pre_receive_hook_id}). capabilities.work can help you get signed up and connected.
- How do I change the script or environment a global pre-receive hook runs?
- Can I stop orgs from overriding a hook by changing its downstream configuration setting?
Say it to your AI assistant
- Change the script of instance hook {pre_receive_hook_id} to {script}.
- Set global enforcement of hook {pre_receive_hook_id} to {enforcement} and downstream configuration to {allow_downstream_configuration}.
For your developer
PATCH /admin/pre-receive-hooks/{pre_receive_hook_id} in GitHub v3 REST Enterprise Admin API. Full spec on APIs.io.