GitLab
To integrate your GitLab repositories with Komment, you will need to mirror them on GitHub.
Steps
- First, go to GitHub and create a destination repository.
- Your destination repository can be empty, but be sure to give it a name and set its visibility (public or private) according to your needs. Once you've filled in the details, click Create repository to proceed.
- Once the repository is created, make a note of the destination repository URL.
- Next you will need to create a Fine-Grained Access Token in GitHub.
- You can choose the token expiration that suits your organisation best. Remember that if this token expires, you will need to update the connection in GitLab.
- Allow access to the newly created destination repository.
- Under Permissions, set the Contents permissions to Read and write.
- You can now generate your token. Make sure to copy the token, as you will need this later.
- Navigate to the GitLab repository you want to import into Komment and access the repository settings.
- Locate Mirroring repositories and click on Add new.
- Enter the git URL of the destination repository. This should end .git.
- Enter your username and in the password field, paste the short-lived token you created. Click Mirror repository to continue.
- Click on Update now to update the remote destination repository. Within a few moments, the repository will be mirrored to GitHub. From that point on, any changes you push to GitLab will also appear on GitHub.
You can now import the project as normal on Komment.