C3 AI Documentation Home

Manage GitHub in Data Fusion

Connect to GitHub in Data Fusion

Use this procedure to configure GitHub from within a running Data Fusion application.

Before you begin

Generate a classic GitHub personal access token with repository permissions. See Version Control with GitHub for details on repository structure and path requirements.

Steps

  1. In C3 AI Studio, select your running application and navigate to the Data Fusion tab.
  2. Select Configure GitHub.
  3. In the REST API field, enter https://api.github.com for a public repository. For an enterprise account, enter the custom domain.
  4. In the Authentication Token field, enter your token. To create a new token, select + Generate Token to go to GitHub. After generating the token, copy it into the Authentication Token field.

The following image shows the Configure GitHub flow from a running application.

  1. Select Connect to GitHub.
  2. From the Select existing branch dropdown menu, select a GitHub branch.
  3. If the application already exists at the selected Code path in the GitHub branch, open the Advanced dropdown and select whether C3 AI uses your local copy of the package or the GitHub server copy.

Publish changes from Data Fusion to GitHub

After configuring GitHub, publish local changes from Data Fusion to your branch.

The following image shows the Publish changes to GitHub popup window.

  1. Select Publish changes. The Publish Changes to GitHub window opens.
  2. In the Commit Message field, enter details about the change.
  3. Review your updates in the Changed Files section.
  4. Select Confirm.

Save pipeline configuration changes

Saving pipeline configuration values in Data Fusion stores changes in the application package as local changes. These updates are not visible to collaborators until published.

  1. On the Data Integration canvas, select Save pipeline configurations, then Save to package. The configuration values save to the application package.
  2. To share the changes, open the GitHub menu and select Publish Changes.

For more information, see Saving Package Configuration.

Troubleshoot GitHub in Data Fusion

No entity types in the package appear in the Object Model tab after configuring GitHub. You entered the wrong path in the Path field. Delete your C3 AI environment, create a new environment, and create a new application. When connecting to GitHub, ensure the path ends in the folder that contains your package.

Data Fusion created a new package in GitHub instead of saving to the existing package. You entered the wrong path in the Path field. Delete your C3 AI environment, create a new environment, and create a new application. When connecting to GitHub, ensure the path ends in the folder that contains your package.

GitHub is in a disconnected state. The token may have expired. Delete your C3 AI environment, create a new environment, and create a new application using a token with no expiration date.

See also

Was this page helpful?