Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect GitLab to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to GitLab.
Connection
This handler was implemented using the python-gitlab library. python-gitlab is a Python library that wraps GitLab API. The GitLab handler is initialized with the following parameters:repository
: a required name of a GitLab repository to connect to.api_key
: an optional GitLab API key to use for authentication.
Usage
Themindsdb_gitlab
connection contains two tables: issues
and merge_requests
.
Now, you can use this established connection to query this table as:
For more information about available actions and development plans, visit this page.