Develop Integrations With Git¶
Devant enables you to develop integrations by connecting your GitHub, Bitbucket, or GitLab repository. You have the flexibility to either connect an existing repository or start with an empty repository and commit the source code later. By integrating your repositories with Devant, you can automate tasks and optimize workflows across multiple systems, all within Devant. Devant currently supports GitHub, Bitbucket, and GitLab as Git providers.
Following are the authorization methods supported by Devant for each Git provider:
- GitHub: OAuth authorization
- Bitbucket: App Password
- GitLab: Personal Access Token (PAT)
Tip
Devant supports both Bitbucket Server and Bitbucket Cloud. The currently supported Bitbucket Server version is 8.9.2.
Connect a GitHub repository to Devant¶
- Sign in to Devant.
- When creating a new project or an integration, select Authorize with GitHub.
- You can follow the on-screen prompts to authorize WSO2 Cloud App with your GitHub account.
Authorizing WSO2 Cloud App as a GitHub application grants the following permissions to perform the respective actions on your behalf within the repository:
| Permission | Read | Write | Description |
|---|---|---|---|
| Issues | Y | N | Read integration ID label to filter the pull requests |
| Metadata | Y | N | List repositories |
| Contents | Y | Y | List branches and create a branch to commit sample code |
| Pull Request | Y | Y | Create a pull request if you start with a Devant sample |
| Webhooks | Y | Y | Trigger automatic deployment and configuration generation |
Connect a Bitbucket repository to Devant¶
- Sign in to Devant.
- In the Devant Console header, go to the Organization list and select your organization.
- In the left navigation menu, under Admin, click Settings. This opens the organization-level settings page.
- Click the Credentials tab.
- Click +Add Credentials to configure the Git repository connection.
- Enter a Credential Name and select Bitbucket as the Git provider.
- Enter your Bitbucket Username.
-
Enter the App Password you obtained from Bitbucket.
Tip
You can refer to Atlassian Documentation to create an app password in Bitbucket.
-
Click Save.
Authorizing using an App Password from Bitbucket grants Devant the following permissions to perform the respective actions on your behalf within the repository.
| Permission | Read | Write | Description |
|---|---|---|---|
| Account | Y | N | Get user information and workspace details |
| Repositories | Y | Y | List branches and create a branch to commit sample code |
| Pull Requests | Y | Y | Create a pull request if you start with a Devant sample |
| Webhooks | Y | Y | Trigger automatic deployment and configuration generation |
Connect a GitLab repository to Devant¶
- Sign in to Devant.
- In the Devant Console header, go to the Organization list and select your organization.
- In the left navigation menu, under Admin, click Settings. This opens the organization-level settings page.
- Click the Credentials tab.
- Click +Add Credentials to configure the Git repository connection.
- Enter a Credential Name and select GitLab as the Git provider.
- Please note that Devant supports only self-managed GitLab instances.
- Enter the Server URL of your GitLab self-managed instance.
-
Enter the Access Token you obtained from GitLab.
Tip
You can refer to GitLab Documentation to create a PAT in GitLab.
-
Click Save.
Authorizing using a personal access token (PAT) obtained from your GitLab self-managed server grants Devant the following permissions to perform the respective actions on your behalf within the repository.
| Permission | Description |
|---|---|
| API | Grants full read/write access to the API, covering all groups and projects, as well as read/write access to the repository. |
Connect an Azure DevOps repository to Devant¶
- Sign in to Devant.
- In the Devant Console header, go to the Organization list and select your organization.
- In the left navigation menu, under Admin, click Settings. This opens the organization-level settings page.
- Click the Credentials tab.
- Click +Add Credentials to configure the Git repository connection.
- Enter a Credential Name and select Azure DevOps as the Git provider.
- Enter your Azure DevOps Organization Name.
-
Enter the Access Token you obtained from Azure DevOps.
Tip
You can refer to Azure DevOps Documentation to create a PAT in Azure DevOps.
-
Click Save.
Authorizing using a personal access token (PAT) obtained from your Azure DevOps organization grants Devant the following permissions to perform the respective actions on your behalf within the repository.
| Permission | Read | Write | Description |
|---|---|---|---|
| Code | Y | N | Allows viewing and cloning repositories, branches, commits, and pull requests. |
| Project and Team | Y | N | Allows reading project-level information, including team details, project settings, and other project configurations. |