Click your avatar in the bottom left and select Integrations from the menu.
Find GitLab in Development Tools and click to enter the GitHub integration page.
Both integrating GitHub permissions in Leiga and GitHub organization repository owner permissions are required.
You can integrate Leiga with GitHub in the following two ways:
Authorize by Login to GitHub
Select Login GitHub to authorize Leiga
Click the Connect to GitHub button at the bottom and log in to GitHub.
Click Grant to allow Leiga access to your organization's repository, and then click Authorize Leiga.
If the button on the Authorization page for your organization's repository information displays as "Request", that indicates that you do not have administrator permissions.
FAQ
1. What if I clicked the Authorize button directly instead of the Grant button behind the organization's repository?
Solution: Log in to your GitHub account, enter organization settings, find "Third-party access" - "Leiga Deny authorization", and grant Leiga access permission in the details.
2. How do I modify the organization repository's role permissions?
Solution: Log in to your GitHub account, and find the user in your organization. Set the user as owner. Then let the user with the owner's permission re-integrate Leiga and GitHub.
Integrate with Personal Access Token
It is recommended to use a public account instead of a personal account to generate a personal access token for integration, in case the original user is moved out of the repository or organization.
Select Access via personal access tokens.
Log in to your GitHub account.
Click your avatar in the upper right, then select Settings in the menu.
Click Personal Access Token in Developer Settings
Following the guide below to generate a new token.
Go back to the Leiga integration page. Copy and paste the token generated into the corresponding input box.
Click the Connect to GitHub button at the bottom.
FAQ
1. What should I do if the generated personal access token does not have enough permissions?
Solution: Please follow the above steps to update the token.