How to connect GitLab
Anyone with a Crewhir account can connect GitLab. It takes about a minute, and you can connect more than one GitLab account.
- Sign in to Crewhir at app.crewhir.com and open Integrations in the sidebar.
- Find GitLab and open it, then click Connect GitLab (or Add account if one is already connected).
- Optionally give the account a nickname, then click Continue to GitLab.
- GitLab opens and asks you to sign in and choose the workspace or account to connect. Review the permissions it lists (they are explained below) and click Allow.
- You come back to Crewhir and the account shows Connected.
Permissions Crewhir requests
Crewhir requests four OAuth permissions from GitLab. GitLab shows them on its consent screen before you allow access.
| Permission |
|---|
| Read your profile |
| Read projects, issues and merge requests |
| Read repository code |
| Read and update projects, issues and merge requests |
A permission lets Crewhir ask; it doesn’t mean Crewhir acts on its own. Changes stay off until you turn them on, and each one waits for your approval.
What Crewhir can read and modify in GitLab
This is the complete list. Crewhir can’t call anything in GitLab that isn’t here. Reading happens only when someone asks Crewhir for something that needs it.
Read
Always on. Runs when you ask.
- Check which account is connected
- List projects
- List issues
- List merge requests
- List pipelines
Modify
Off until you turn it on. Approved one at a time.
- Create issue
- Add a comment
- Create merge request
To let Crewhir make a change, open GitLab in Integrations and turn it on under What Crewhir can change. Even then, Crewhir stops and asks before each change, and drops it if nobody answers within 15 minutes. Everything it changes is listed under Recent changes.
Test the integration
1. Check the connection
On the GitLab page in Crewhir, click Check next to the account. Crewhir calls GitLab with the stored credentials and confirms which account answered. You’ll see “account is working”.
2. Run a read action
Start a new chat. In the message box, open the tools menu and make sure GitLab is ticked, then send:
Using GitLab, list projects.
3. Test a change (with approval)
Turn on Create issue for the account, then ask Crewhir to do it. Crewhir stops and shows what it’s about to send to GitLab. Click Approve to run it, or Decline to drop it. Nothing changes in GitLab until you approve.
How to disconnect GitLab
- In Crewhir, open Integrations, then GitLab.
- Click ⋯ next to the account and choose Disconnect. (With several accounts, the menu at the top also offers Disconnect all accounts.)
- Confirm with Disconnect.
Crewhir deletes the connection and its stored access and refresh tokens straight away. From then on it can’t read or change anything in GitLab.
To revoke the grant on GitLab’s side as well, remove Crewhir from the connected apps in your GitLab settings.
Data and security
- Credentials are encrypted at rest and never shown back to anyone, including your workspace admins.
- Crewhir only calls the 8 actions listed above, and only when someone in your workspace asks for something that needs GitLab.
- Changes are off by default, need your approval each time, and are logged under Recent changes.
- Disconnecting deletes the stored credentials immediately.
Read more on our security page and in the privacy policy. Questions about this integration: [email protected].