Connect Spryker Code Upgrader to a GitHub managed project
Edit on GitHubThere are two options for connecting the Upgrader to your repository: using the native integration or 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 GitHub.
- For ADD GIHUB INTEGRATION select +.
- For ORGANIZATION, click on the field and select +. This opens GitHub.
- Select the organization you want to connect. You should have administrator rights in the repository.
- In the Authorize & Request pane, select Only select repositories.
- For Select repositories, select the repository you want to connect.
- Click Authorize & Request.
- To authorize the action, enter your GitHub account password and click Confirm. This closes the window, and the connected organization is displayed in the ORGANIZATION field.
- For REPOSITORY, select the repository you’ve connected. Now the Upgrader is connected to your project.
Connect Spryker Code Upgrader using the GitHub access token
To connect the Upgrader manually using the GitHub access token, take the following steps.
Prerequisites
To enable the Upgrader to analyze the project and create PRs, the GitHub personal access token (Fine-grained token) should have the following permissions:
-
Metadata: Access: Read-only
-
Webhooks: Access: Read-only
-
Contents: Access: Read and write
-
Pull requests: Access: Read and write
Configure the integration with GitHub
- 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 GitHub.
- On the Add new GitHub integration page, enter a NAME.
- Select SHARING and AVAILABILITY per your requirements.
- For AUTHORIZATION METHOD, select Personal Access Token.
- For TOKEN, enter the GitHub access token.
-
Click New integration. This connects the Upgrader to your GitHub organization.
-
To select the needed repository, go to Code.
-
On the Switch repository or Git hosting provider page, click the GitHub 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 step
Thank you!
For submitting the form