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).
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. |