Updated on 2025-07-24 GMT+08:00

Migrating a GitHub Repository

  1. Go to the CodeArts Repo homepage, click New Repository, and select an existing project from the Project drop-down list box or create a project.

  2. Set the repo type to Imported and import from Github.
  3. Choose an authorization mode. You can grant permissions By service endpoints (see Service Endpoint Authorization) or By personal access tokens (see Obtaining an Access Token).
  4. Click Next. The Imported page is displayed. Select repositories to be imported and click Next. Set basic information and repository synchronization by referring to Configuring Basic Information for a New Repository and table 1 parameters for synchronizing repositories.

Service Endpoint Authorization

Table 1 Service endpoint authorization

Parameter

Description

Service Endpoint Name

Mandatory. Enter a name with a maximum of 256 characters.

Authentication Mode

Mandatory. Select a value as required.

  • If you select OAuth, click Authorize and OK, and the GitHub login page is displayed. Enter the GitHub login account and password, and click Authorize huaweidevcloud to complete the authorization. After the authorization is successful, Authorized successfully is displayed on the endpoint creation page, and Service endpoint created successfully. is displayed in the upper right corner. You can select the created endpoint from the drop-down list box.
  • If you select By personal access token, use an account with the repo administrator permissions to create an access token on GitHub. For details, see Obtaining an Access Token.