corgi agent watch hooks
corgi agent watch hooks
Webhooks for instant events: the plan per workspace, and --install for GitHub and GitLab
Synopsis
A webhook makes a comment arrive in seconds instead of on the next poll. Polling stays on beside it whatever you set up: it catches what came while the laptop was off or the tunnel was down, and the kinds a webhook here does not send (review requests, red builds, a ticket assigned to you). The same comment from both is one event - they share its key - so a mix never runs twice.
Each source of a workspace can be webhook + poll or poll alone, independently: GitLab on webhooks while Jira polls, or GitHub on webhooks while Linear polls. A webhook for a repo or project no watched workspace lists is dropped.
corgi agent watch hooks # this workspace's plan corgi agent watch hooks --install # create or update the GitHub / GitLab webhooks on its repos corgi agent watch hooks --rotate --install # new secret, pushed to every repo
corgi agent watch hooks [flags]
Options
-h, --help help for hooks
--install Create or update the webhook on every GitHub and GitLab repo the workspace watches
--rotate Make a new secret
--workspace string The workspace to plan for (default: the one this folder is in)
Options inherited from parent commands
--describe Describe contents of corgi-compose file
--dockerContext string Specify docker context to use, can be default,orbctl,colima (default "default")
-l, --exampleList List examples to choose from. Click on any example to download it
-f, --filename string Custom filepath for for corgi-compose
--fromScratch Clean the .corgi/corgi_services folder before running
-t, --fromTemplate string Create corgi service from template url
--fromTemplateName string Create corgi service from template name and url
-g, --global Use global path to one of the services
--interactive Force interactive prompts even when no TTY/agent detected
--isolate string Run this workspace under a named lease: own port block, own database names, own containers
--json Emit machine-readable JSON output
--privateToken string Private token for private repositories to download files
-o, --runOnce Run corgi once and exit
--silent Hide all welcome messages
SEE ALSO
- corgi agent watch - Watch the tracker and your pull requests: new issues, new comments, reviews - notify, or fix