impreza_git_webhook_connect
Connect a push webhook to your deployment so every push to the tracked branch triggers a redeploy. Supports GitHub one-click with PAT or manual setup for any provider.
Instructions
Wire up auto-deploy: connect a push webhook so every push to the deployment's tracked branch triggers a redeploy. Works with ANY provider against one per-deployment secret. Two modes: (1) GitHub one-click — pass github_pat (a Fine-grained PAT with Repository → Webhooks: read and write, generate at https://github.com/settings/personal-access-tokens/new) and Impreza installs the hook for you, then discards the token (never stored). (2) Manual/generic — OMIT github_pat (GitLab, Bitbucket, Gitea, self-hosted, CI): the response returns payload_url + webhook_token (shown once) to add in your provider, sending the token as the GitLab "Secret token" or the X-Impreza-Token header / ?token= query param. Only works on custom deployments created with mode=dockerfile and a git_url source. Refuses if already connected (call disconnect first to re-wire).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"deployment_id": "<deployment_id>"
},
"name": "impreza_git_webhook_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| github_pat | No | Optional. GitHub Fine-grained PAT (Repository → Webhooks read+write) for the one-click GitHub flow. Omit for the manual/generic flow (GitLab, Bitbucket, Gitea, self-hosted, CI) — the response then returns a payload_url + webhook_token to add yourself. | |
| deployment_id | Yes | The dpl_... id of a custom deployment with mode=dockerfile + git_url. |