Updated on 2024-11-22 GMT+08:00

Importing 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 Import 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. On the Select Repository page, select the repo to be imported and click Next. On the Basic Information page, enter the basic information by referring to the Entering Basic Information for a Repository table and set the parameters for syncing a repo information by referring to Table 1 Parameters for syncing repo settings.

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, 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.