Connect Spryker Code Upgrader to a GitLab managed project
Edit on GitHubThere are two options for connecting Spryker Code Upgrader to your repository: using the native integration or using an access token.
Connect Spryker Code Upgrader using the native integration
- In the Upgrader UI, go to Projects.
- On the Projects page, select the Spryker Upgrade Service project.
- Go to Code.
-
In the Connect Git repository pane, for GIT HOSTING PROVIDER, select GitLab.
-
For ADD GITLAB INTEGRATION select +. This opens GitLab in a new window.
- To authorize Buddy CI to access your account, click Authorize. Your account should have administrator rights in the repository you want to connect.
-
For GROUP, select the GitLab group that has access to the repository you want to connect.
-
For REPOSITORY, select the repository you want to connect. This displays a success message. The Upgrader is now connected to your repository.
Connect Spryker Code Upgrader using the GitLab access token
To connect the Upgrader manually using the GitLab access token, take the following steps.
Prerequisites
GitLab access token should have the following repository permissions:
-
api for Spryker CI: grants complete read and write access to the scoped project API, including the Package Registry.
-
write_repository for Spryker Upgrader Service: grants read and write access to the repository to enable the Upgrader to analyze the project and create PRs.
Configure the integration with GitLab
- In the Upgrader UI, go to Projects.
- On the Projects page, select the Spryker Upgrade Service project.
- Go to Integrations.
- On the Integrations page, click New integration.
- On the New integration page, click the Git tab.
- Select GitLab.
- On the Add new GitLab integration page, enter a NAME.
- Select SHARING and AVAILABILITY per your requirements.
- For AUTHORIZATION METHOD, select Access Token.
- For ACCESS TOKEN, enter the GitLab access token.
-
Click New integration. This connects the Upgrader to your GitLab organization.
-
To select the needed repository, go to Code.
-
On the Switch repository or Git hosting provider page, click the GitLab tab.
-
Select a REPOSITORY to connect the Upgrader to. This displays the message about a successful update. Now the Upgrader is connected to the repository.
Next steps
Thank you!
For submitting the form