Pausing a webhook
A repository admin pauses and resumes a webhook from the terminal (#8082), from Settings › Webhooks (#10103), the API and MCP (#10104).
- Where. The palette's Webhooks (
:→webhooks) lists the repository's hooks.ppauses the selected hook, or resumes it when it is paused. Anyone who does not administer the repository is not offered the screen. On the web, each row of/:owner/:name/settings/hookshas Pause, or Resume when paused: a same-origin POST to…/settings/hooks/:id/pauseor…/resume. Anyone who does not administer the repository gets 404, from the page and from the post. - What paused means. The row reads
pausedin place of its last delivery. A paused hook gets no deliveries: new events are not queued for it, and deliveries already queued (including ones waiting to retry) staypendinguntil it is resumed, then go out. Events that came while it was paused are not backfilled. - Trail. Each change is a
webhook.paused/webhook.resumedevent. - Code.
pauseWebhookinsrc/actions/repos.ts, called by the terminal and bywebhookPause/webhookResumeinsrc/web/pages/hooks.ts;setWebhookActiveand thew.active = 1filters insrc/core/webhooks.ts. - API and MCP.
POST /api/v1/repos/:owner/:name/hooks/:id/pauseand…/resume(admin scope; 404 for anyone who does not administer the repository or a missing hook) answer{ id, active }; MCPhookstakesaction: "pause"or"resume"withid, the same checks. Resuming queues one delivery of its own: thewebhook.resumedevent is recorded once the hook is active again, so a hook watching*receives it; a pause is not delivered, the hook being already inactive. (#10104)