Skip to main content

Airbyte Github Connector for AI platforms

Project description

Github

The Github agent connector is a Python package that equips AI agents to interact with Github through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.

GitHub is a platform for version control and collaborative software development using Git. This connector provides access to repositories, branches, commits, issues, pull requests, reviews, comments, releases, organizations, teams, and users for development workflow analysis and project management insights.

Example questions

The Github connector is optimized to handle prompts like these.

  • Show me all open issues in my repositories this month
  • List the top 5 repositories I've starred recently
  • Analyze the commit trends in my main project over the last quarter
  • Find all pull requests created in the past two weeks
  • Search for repositories related to machine learning in my organizations
  • Compare the number of contributors across my different team projects
  • Identify the most active branches in my main repository
  • Get details about the most recent releases in my organization
  • List all milestones for our current development sprint
  • Show me insights about pull request review patterns in our team

Unsupported questions

The Github connector isn't currently able to handle prompts like these.

  • Create a new issue in the project repository
  • Update the status of this pull request
  • Delete an old branch from the repository
  • Schedule a team review for this code
  • Assign a new label to this issue

Installation

uv pip install airbyte-agent-github

Usage

Connectors can run in open source or hosted mode.

Open source

In open source mode, you provide API credentials directly to the connector.

from airbyte_agent_github import GithubConnector
from airbyte_agent_github.models import GithubPersonalAccessTokenAuthConfig

connector = GithubConnector(
    auth_config=GithubPersonalAccessTokenAuthConfig(
        token="<GitHub personal access token (fine-grained or classic)>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@GithubConnector.tool_utils
async def github_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Hosted

In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead.

This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.

from airbyte_agent_github import GithubConnector, AirbyteAuthConfig

connector = GithubConnector(
    auth_config=AirbyteAuthConfig(
        external_user_id="<your_external_user_id>",
        airbyte_client_id="<your-client-id>",
        airbyte_client_secret="<your-client-secret>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@GithubConnector.tool_utils
async def github_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Full documentation

Entities and actions

This connector supports the following entities and actions. For more details, see this connector's full reference documentation.

Entity Actions
Repositories Get, List, API Search
Org Repositories List
Branches List, Get
Commits List, Get
Releases List, Get
Issues List, Get, API Search
Pull Requests List, Get, API Search
Reviews List
Comments List, Get
Pr Comments List, Get
Labels List, Get
Milestones List, Get
Organizations Get, List
Users Get, List, API Search
Teams List, Get
Tags List, Get
Stargazers List
Viewer Get
Viewer Repositories List
Projects List, Get
Project Items List
File Content Get
Directory Content List

Authentication

For all authentication options, see the connector's authentication documentation.

Github API docs

See the official Github API reference.

Version information

  • Package version: 0.18.107
  • Connector version: 0.1.15
  • Generated with Connector SDK commit SHA: 3f4da97b971360f39e879a898fabe79b5362a117
  • Changelog: View changelog

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airbyte_agent_github-0.18.107.tar.gz (141.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airbyte_agent_github-0.18.107-py3-none-any.whl (164.0 kB view details)

Uploaded Python 3

File details

Details for the file airbyte_agent_github-0.18.107.tar.gz.

File metadata

  • Download URL: airbyte_agent_github-0.18.107.tar.gz
  • Upload date:
  • Size: 141.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for airbyte_agent_github-0.18.107.tar.gz
Algorithm Hash digest
SHA256 b56e2d5a13d5a34a3639840e105400264e7f0f95d58e21ffff2f7f2a1f7ed4d3
MD5 b898f468f73982af6ebe2aee7a5132cc
BLAKE2b-256 a022739c78a3b5d7fb1480c259ecf701ac3a28c92770347f8c8f420e8808b513

See more details on using hashes here.

File details

Details for the file airbyte_agent_github-0.18.107-py3-none-any.whl.

File metadata

File hashes

Hashes for airbyte_agent_github-0.18.107-py3-none-any.whl
Algorithm Hash digest
SHA256 e80b5de6f8310bee65cfe7a611a9905796a7572364b20ea92c46ea29446de1c2
MD5 4b92376477b8eb943ac42568c24eda21
BLAKE2b-256 6cc018f9533067720d0142e6690975bd01c048dc599695e7ba46d2d4c2582d42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page