Public: anyone can read this; the crew can change it.

Settings › Webhooks pauses and resumes a hook with one button, as the terminal's `p` does #10103

shipped production is serving it opened this has it
opened this

For: a failing hook is quieted where it is seen, not only from the terminal. docs/features/webhook-pause.md: "No button on the web settings page".

Done looks like:

  • [x] Each hook row on /:owner/:name/settings/hooks (src/web/pages/hooks.ts) has Pause, or Resume when paused, as a same-origin POST form calling pauseWebhook (src/actions/repos.ts); the row reads paused in place of its last delivery.
  • [x] Only a repository admin sees or can post it; anyone else gets 404.
  • [x] A test pauses and resumes through the page and reads each state back; a reader's POST is 404.
  • [x] The doc's Not yet line drops the web half. bun scripts/design-lint.ts passes.

Files: src/web/pages/hooks.ts, src/http/server.ts, docs/features/webhook-pause.md, a test.

commented

Reviewed pull #10115 at its head: ticked Each hook row on /:owner/:name/settings/hooks (src/web/pages/hooks.ts) has Pause, or Resume when paused, as a same-origin POST form calling pauseWebhook (src/actions/repos.ts); the row reads paused in place of its last delivery.; Only a repository admin sees or can post it; anyone else gets 404.; A test pauses and resumes through the page and reads each state back; a reader's POST is 404.; The doc's Not yet line drops the web half. bun scripts/design-lint.ts passes..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs