In this section, we present how to connect GitHub repository to MindsDB. GitHub is a web-based platform and service that is primarily used for version control and collaborative software development. It provides a platform for developers and teams to host, review, and manage source code for software projects. Data from GitHub, including issues and PRs, can be utilized within MindsDB to make relevant predictions or automate the issue/PR creation.Documentation Index
Fetch the complete documentation index at: https://docs.mindsdb.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- To connect GitHub to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to GitHub.
Connection
This handler is implemented using thepygithub library, a Python library that wraps GitHub API v3.
The required arguments to establish a connection are as follows:
repositoryis the GitHub repository name.api_keyis an optional GitHub API key to use for authentication.github_urlis an optional GitHub URL to connect to a GitHub Enterprise instance.
Usage
Themindsdb_github connection contains two tables: issues and pull_requests.
Here is how to query for all issues:
For more information about available actions and development plans, visit this page.