Add a connection
In Settings → Git, an owner clicks Add connection and connects the account the same way as the first one (OAuth, a token, or the GitHub App). Turn off Review all repositories first: it is offered for a workspace’s only connection. Once the workspace has two or more connections, each one gets a card where an owner can:- rename it,
- turn its reviews on or off (in addition to the workspace’s automated review setting),
- choose its repositories,
- update its token (GitLab and Forgejo),
- choose which members can read it,
- reset it. Reset removes that connection only: its repositories, hooks and rules go, the others stay.
Who can read a connection
Owners read every connection. A workspace’s first connection is read by every member of the workspace. A connection added beside others starts with owners only; give members access from its card. A member granted only some connections sees just their repositories in pull requests, settings, Kody Rules, issues, CLI reviews and notifications. Cockpit opens for them one repository at a time. Token usage, which covers the whole workspace, stays with members who read every connection and with billing managers. An owner who becomes another role keeps reading every connection until an owner narrows it. Team CLI keys belong to the workspace and are created by owners, so a key reads every connection of its workspace.PR author filters
In Settings → Git → PR author filters, each connection has its own include and exclude lists: git ids differ per provider and host. Bots found when a connection is added go to that connection’s lists.Centralized config
Each connection can have its own centralized config repository, covering that connection’s repositories only. The config of the workspace’s first connection keeps working as before, including its rootkodus-config.yml for workspace defaults. Another connection’s config repository holds per-repository and per-directory files and Kody Rules; its root kodus-config.yml is ignored, so it never changes the defaults the other connections share. Kody Rules record the config repository they were synced from, so one sync never removes another’s rules.
From the CLI, name the connection when the workspace has several:
status without --connection lists every connection’s config. init picks the connection that lists the chosen repository.
Billing
- Cloud
- Self-hosted
Each connection has its own plan and seats. The workspace keeps its trial and its credits, which every connection uses. A new connection starts on the free plan and is never subscribed automatically; choose its plan in Settings → Subscription with the connection picker.