Settings reference
Connect GitLab
Register cyantula on your GitLab, set the bot token and group, and let colleagues publish their own projects.
What GitLab is for
In the portal: Admin, Settings, Code and repositories (GitLab sits next to GitHub), and Profile, GitLab
It is optional and independent of GitHub. Once an administrator has set it up, every colleague can connect their own GitLab account, pick one of their GitLab projects and publish it, the same way they would publish a GitHub repository. When both are set up, colleagues can use either one.
One cyantula works with one GitLab: gitlab.com or your own GitLab server, not both at once. For the other places an app's code can live, see Where the code lives.
What the administrator does
- On your GitLab, register an application for cyantula (Preferences, Applications, or the group's Applications page). See GitLab's guide. Redirect URI:
https://<your portal>/auth/gitlab/callback. Scopes:read_user,read_api,read_repositoryandwrite_repository. Copy the application ID and the secret. - In the portal, open Admin, Settings, Code and repositories. GitLab is a row in the provider list, next to GitHub: click Configure to open its panel. Fill in GitLab address (for example
https://gitlab.comor the address of your own GitLab), GitLab OAuth client ID and GitLab OAuth client secret, then save. Until all three are set, colleagues are not offered GitLab. - Optional, but you want it: the GitLab bot token and GitLab group. The bot token lets cyantula create projects, add the owner to them, install the push webhook and push uploads and its own changes. On GitLab Premium or Ultimate, make it a group access token on the group, role Maintainer, scopes
apiandwrite_repository. On the Free tier group access tokens do not exist: use a personal access token of a dedicated GitLab user who is Owner or Maintainer of the group, with the same scopes. The group is where a brand-new project is created: its id or its full path, for exampleschool/apps. - Only if your GitLab uses a private certificate authority: paste it in GitLab CA certificate (PEM), BEGIN and END lines included. A change to this field applies after the next restart.
With both GitHub and GitLab set up, choose the Default provider for new repositories on the same page. Colleagues can still pick the provider themselves when they publish.
Without the bot token and the group, colleagues can still publish projects that already exist. They just cannot ask cyantula to create a new one, and cyantula cannot install the webhook for you.
What each colleague does
In the portal: Profile, GitLab
Click Connect GitLab and approve cyantula on GitLab. It is one account, connected once. The page then shows connected as your GitLab login and the GitLab it belongs to, with a Disconnect button. If GitLab is not set up, the page says so: ask an administrator.
When an administrator publishes an app for you, it is the GitLab account you connected that is used, so you keep your own rights on the project.
Publish a GitLab project
In the portal: Publish an app, first step
When both GitHub and GitLab are set up, the first step offers a choice between GitHub and GitLab. With GitLab chosen you have two options.
- I already have a project: connect your GitLab account if you have not yet, search the list of projects you can open and pick one. You can publish a project only when you are at least a Developer on it; the others are listed as view only. The branch to deploy defaults to the project's own default branch and can be changed.
- Create a new one for me: cyantula creates a private project in the GitLab group the administrator set, with no README, and adds you as a Developer. This needs the bot token and the group above; otherwise the portal says an administrator has to set them first.
A zip upload creates a repository on GitHub or on the cyantula server; it is not part of the GitLab choice in the form. The first deploy starts as soon as the project is published. The rest is as for any other app, see Publish an app.
Push webhooks and new versions
When a published app follows its repository, cyantula installs a push webhook on the GitLab project itself, using the bot token. A new commit on the branch the app follows then shows up within seconds, and the owner clicks Deploy as for any other app. The app page shows whether the webhook is connected, and has a Try again button.
If cyantula cannot install it, for example because the bot token has no access to that project, nothing is lost: cyantula checks the project every few minutes instead, so the notice only arrives later. The same card shows the webhook address and secret, to add by hand under the project's Settings, Webhooks with Push events ticked.
Changes
When cyantula's coding agent or a fix proposes a change to a GitLab project, it appears as a merge request, shown as !1, !2 and so on, on the app's Changes tab. You approve or reject it there like any other change.