Connect your Git platform
Last updated
Was this helpful?
Last updated
Was this helpful?
The Git integration lets Packmind AI capture your coding practices from your latest Git repositories changes.
You must be a Driver or an Administrator in your current space to access this page and update the configuration.
To enable this feature, go to Settings -> Git Configuration. Select the space of your choice and select your Git Provider among the available ones (GitLab and GitHub).
Check below to configure the authentication with your selected Git provider.
Basically, Packmind will fetch the REST API of your Git providers to access to:
The list of Git repositories
The list of Pull/Merge requests and their metadata
The list of discussions within each Pull/Merge request
Accessing some file raw contents for a given Git commit
Hostname
For this field, you must type your GitLab instance's hostname (usually a domain name).
For example, gitlab.example.com
or even an IP address such as 123.456.0.5:5555
.
By default, gitlab.com
will be used for the requests.
Authentication token
The authentication token can be generated on GitLab as an Access Token
, available for the following entities:
Repositories (only allows a single repository)
Projects (allows every repository in the project)
Groups / Subgroups (allows every repository in the group / subgroup)
Account (allows every repository on the account)
You can find the full list of tokens and how to create one here.
The minimum role required for the access token is Reporter (second lowest role), allowing access to the content of commits (to be displayed on Packmind).
Likewise, the read_api
scope is required, as the read_repository
scope does not allow for project discovery (to link repositories).
Once the authentication is valid, you can search for repositories through the Git repositories selection field, with a limit next to the list of repositories. Once the Git repositories are configured, you can now run extractions from the Inbox.