Sync with GitLab
How to Set Up Bi-Directional Sync with GitLab
Prerequisites
- You will need a GitLab account.
- When syncing to a repository in an organization, you will need permission to create an empty repository.
Set Up
- Navigate to Settings > Git Connection page.
- Select GitLab.
- If you haven’t already, create an empty repository in GitLab—make sure to uncheck the option to create a README.
- Sync with your provider and authenticate.
- Create a personal access token with the
apiscope. You can delete this token after completing setup. ReadMe uses this token once during setup to create the webhook on your repository and it is not stored.- For project access tokens, you will need the Maintainer role. However, this is not recommended as there’s a cap on the number of project access tokens created, depending on GitLab pricing.
- Add the access token to ReadMe and click on the webhook icon to create the webhooks we need to keep your content in sync with GitLab.
Changing Repositories
If you need to connect your ReadMe project to a different repository, you must disconnect the original repository using the trash icon.
- Within ReadMe, disconnect the project via the trash icon.
- Within GitLab, create a new empty project.
- Return to ReadMe and select the project you'd like to sync to.
Protected Branches
All branch rules should allow the user (who is syncing to GitLab from ReadMe) to push.
FAQ
What permissions are required when syncing with GitLab?
ReadMe requests access to:
read_apifor listing projectsread_userandread_profileto display user informationread_repositoryto sync content in GitLab to ReadMewrite_repositoryto sync content in ReadMe to GitLab
Updated about 14 hours ago