[4.0.7] — 2026-03-06
Added
- Git provider integration:
cipi git— automatic deploy key and webhook configuration for GitHub and GitLab repositories cipi git github-token <token>— save GitHub Personal Access Token for auto-setupcipi git gitlab-token <token>— save GitLab Personal Access Token for auto-setupcipi git gitlab-url <url>— configure self-hosted GitLab instance URLcipi git remove-github— remove stored GitHub tokencipi git remove-gitlab— remove stored GitLab token and URLcipi git status— show configured providers, tokens (masked) and per-app integration status- Auto-setup on
cipi app create: when a GitHub/GitLab token is configured, Cipi automatically adds the deploy key and creates the webhook on the repository — zero manual configuration needed - Auto-migrate on
cipi app edit --repository=...: when changing repository, Cipi removes deploy key + webhook from the old repo and creates them on the new one - Auto-cleanup on
cipi app delete: Cipi removes deploy key + webhook from the repository before deleting the app - New
lib/git.shmodule with GitHub REST API v3 and GitLab REST API v4 integration (deploy keys + webhooks CRUD) apps.jsonextended with optionalgit_provider,git_deploy_key_id,git_webhook_idfields per appserver.jsonextended on-demand withgithub_token,gitlab_token,gitlab_urlfields
Changed
cipi app shownow displays git provider integration status (provider, deploy key ID, webhook ID)cipi deploy <app> --keyshows "auto-configured" status when deploy key was added via APIcipi deploy <app> --webhookshows "auto-configured" status when webhook was added via APIcipi app createsummary adapts: shows "auto-configured" badge when git integration succeeded, or manual instructions with a setup tip when no token is configured- Graceful fallback: if no token is configured or the API call fails, Cipi falls back to manual setup (existing behavior) without interrupting the flow