Onboarding
Set your team up on Tusk in 2 minutes
Before you begin, make sure that you have either:
- GitHub user permissions to manage external apps in your GitHub organization
- Maintainer or Owner role in your GitLab group while on the GitLab Premium or Ultimate plan (plans not required for GitLab Self-Managed)
Creating an account
- Log in to Tusk (https://usetusk.ai/app) with Google or with email/password. Team members who sign up via Google with your company’s email domain will automatically be added to the organization.
Connect your GitHub organization
- After clicking out of the onboarding modal, you should be in the Integrations page. Click Connect to authorize GitHub.
- Click on your GitHub organization.
- Choose whether to authorize all repositories or only select repositories in your organization. Click Install.
Connect your GitLab group/project
Setting up GitLab for Tusk takes a few minutes of manual work due to limitations with the GitLab API. Please reach out to Support if you have any questions.
Go to Settings > Integrations
You should see the GitLab integration in the list of code hosting platforms supported. Click Connect.
Navigate to GitLab Group
You will see a page with instructions on how to connect your GitLab group or project to Tusk.
If you have a self-hosted GitLab instance, fill in the GitLab host URL as per the instructions. Otherwise, you can leave this field blank.
Create Access Token
Go to GitLab. In the left sidebar of your group or project, select Settings > Access tokens. Click Add new token.
Create a Group Access Token or Project Access Token with the details below.
- Name: Tusk
- Expiry date: Set as far in the future as possible (max 1 year)
- Role: Developer
- Scopes: api, read_repository, write_repository
Add access token to Tusk
After creating the access token, copy the access token immediately.
Go back into the Tusk web app and paste the access token into the Access Token field.
Create a webhook
Return to the GitLab group or project and go to Settings > Webhooks in the left sidebar. Click Add new webhook.
Create a webhook in GitLab with the details below.
- URL:
https://use-tusk.uc.r.appspot.com/api/webhook/gitlab
- Secret token: Copy the auto-generated secret token from Tusk’s GitLab flow and paste it in this field
- Trigger:
Push events
(all branches),Comments
,Issues events
,Merge request events
,Emoji events
Confirm webhook creation in Tusk
Return to the Tusk web app and check the checkbox that says “I have created a webhook with the above configuration”.
Click Connect GitLab after to complete the integration.
Sync your repos
- Upon successful authorization, you’ll be redirected to the Settings page in Tusk. Check the boxes belonging to the repositories that you want to make pull requests in.
- Click Save on the Settings page. You’ll see a notification telling you that your repo(s) are being synced.
- Wait 5 minutes for the repo(s) to be synced. During this time, Tusk will also set up a config for the agent to self-lint and run the tests it generates for your repo(s).
If additional set-up is required, our team will reach out to you directly with next steps. Contact support@usetusk.ai if you have any questions.
Connect your project management platform
Tusk can use information and business logic from tickets linked to your pull requests to generate more relevant and accurate tests.
Connecting to Linear
-
Under the Integrations tab, find the Linear integration card under “Project management platform.” Click Connect.
-
You’ll be redirected to the Linear app to grant Tusk access to your Linear workspace. Make sure to choose the correct workspace on the top left corner.
-
Click Authorize Tusk once you have confirmed that you’re in the correct workspace.
-
You’ll then be redirected back to the Tusk app, where you should now see a status badge displaying “Connected” on the Linear integration card.
Connecting to Jira
-
Under the Integrations tab, find the Jira integration card under “Project management platform.” Click Connect.
-
You’ll be redirected to the Atlassian platform to grant Tusk access to your Jira site.
- Choose the correct Jira site under “Authorize for site” and click Accept.
- You’ll then be redirected back to the Tusk app, where you should now see a status badge displaying “Connected” on the Jira integration card.
FAQs
Was this page helpful?