Use Github with AI Agents

A platform for version control and collaboration, allowing you to work together on projects from anywhere.
🔗 Connect and Use Github
1. 🔑 Connect your Github account
2. ✅ Select an action
3. 🚀 Go live with the agent
What do you want to do?
Actions
meta
security-advisories
apps
classroom
codes-of-conduct
emojis
dependabot
secret-scanning
activity
gists
gitignore
issues
licenses
markdown
orgs
actions
oidc
code-scanning
codespaces
copilot
packages
interactions
migrations
projects
repos
billing
teams
reactions
rate-limit
checks
dependency-graph
git
pulls
search
users
Main

API actions for Github for AI assitants/agents

Language
JS
PYTHON

Orgs

Add A Security Manager Team

This text outlines how to add a team as a security manager in an organization. The user must be an admin and use tokens with `write:org` scope. More info is available in the provided GitHub li
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_ADD_A_SECURITY_MANAGER_TEAM])

Remove A Security Manager Team

Removes the security manager role from a team in an organization. Administrators with `admin:org` scope via OAuth or personal access tokens can use this endpoint. For more, visit GitHub docs o
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_REMOVE_A_SECURITY_MANAGER_TEAM])

Enable Or Disable A Security Feature For An Organization

This text outlines how to enable/disable security features for all eligible repositories in an organization, requiring the user to be an owner or a security manager with `write:org` scope for
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_ENABLE_OR_DISABLE_A_SECURITY_FEATURE_FOR_AN_ORGANIZATION])

Billing

Get Github Actions Billing For An Organization

The summary discusses GitHub Actions' usage, focusing on paid minutes for private repo workflows and job reruns on GitHub-hosted runners. It mentions OS-specific minute multipliers and the nec
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_GITHUB_ACTIONS_BILLING_FOR_AN_ORGANIZATION])

Get Github Packages Billing For An Organization

GitHub Packages tracks free and paid storage usage in GB. Paid storage is for private repos only. OAuth or personal access tokens with `repo` or `admin:org` scope are needed. Details at GitHub
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_GITHUB_PACKAGES_BILLING_FOR_AN_ORGANIZATION])

Get Shared Storage Billing For An Organization

This text details getting estimates for paid minutes and storage used by GitHub Actions and GitHub Packages, highlighting that charges apply only to private repos. It also mentions necessary t
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_SHARED_STORAGE_BILLING_FOR_AN_ORGANIZATION])

Teams

List Teams

Lists all teams in an organization that are visible to the authenticated user.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_TEAMS])

Create A Team

In `{org}`, authenticated users can create teams if they're members or owners, with all members having default creation rights. Owners can limit this ability. Creators automatically become tea
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_TEAM])

Get A Team By Name

Retrieves a GitHub team using its `slug`, created by lowercasing the name, replacing spaces with `-`, and special characters. Alternatively, specify a team by `org_id` and `team_id`.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_TEAM_BY_NAME])

Update A Team

To edit a team, the authenticated user must either be an organization owner or a team maintainer. **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organi
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_TEAM])

Delete A Team

To delete a team, one must be an organization owner or a team maintainer. Deleting a parent team also removes its child teams. Teams can be specified for deletion using `org_id` and `team_id`
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_TEAM])

List Discussions

Access all discussions on a team's page via `GET /organizations/{org_id}/team/{team_id}/discussions`, needing OAuth or classic tokens with `read:discussion` scope.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_DISCUSSIONS])

Create A Discussion

New endpoint allows creating posts on a team's page, triggering notifications. Excessive use may lead to rate limiting. Supports specifying teams by `org_id` and `team_id`. Requires `write:dis
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_DISCUSSION])

Get A Discussion

Access a discussion on a team's page via `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. Use OAuth or personal access tokens with `read:discussion` scope.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_DISCUSSION])

Update A Discussion

This endpoint allows editing titles and bodies of discussion posts. Updates are made with specific parameters. For team-specific discussions, use the route with `org_id` and `team_id`. OAuth a
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_DISCUSSION])

Delete A Discussion

To remove a team discussion, use `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}` specifying `org_id` and `team_id`. OAuth and classic tokens require `write:discussi
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_DISCUSSION])

List Discussion Comments

Retrieve all comments from a team discussion by using the endpoint `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`. You need `read:discussion` scope on OA
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_DISCUSSION_COMMENTS])

Create A Discussion Comment

The endpoint enables comment creation on team discussions with notifications; usage may be rate limited. Requires OAuth or tokens with `write:discussion` scope. An alternate route exists for t
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_DISCUSSION_COMMENT])

Get A Discussion Comment

To get a specific comment from a team discussion, use `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. Ensure OAuth or personal access tokens
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_DISCUSSION_COMMENT])

Update A Discussion Comment

This text outlines how to edit discussion comments, specifying teams with `org_id` and `team_id`. It requires `write:discussion` scope for OAuth and classic personal access tokens.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_DISCUSSION_COMMENT])

Delete A Discussion Comment

This text explains how to delete a comment in a team discussion, either by specifying an organization and team ID or directly. It notes that OAuth or personal access tokens with the "write:dis
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_DISCUSSION_COMMENT])

List Pending Team Invitations

The return hash from an Organization Invitation includes a `role` field with values like `direct_member`, `admin`, etc. The `login` field is `null` if the invitee isn't a GitHub member. Option
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PENDING_TEAM_INVITATIONS])

List Team Members

Team members will include the members of child teams. To list members in a team, the team must be visible to the authenticated user.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_TEAM_MEMBERS])

Get Team Membership For A User

To access team memberships, which include child members, team visibility is needed. Use specific API endpoints to check membership details like `state` and `role`, noting organization owners a
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_TEAM_MEMBERSHIP_FOR_A_USER])

Add Or Update Team Membership For A User

Organization owners or team maintainers can add members, with non-members receiving email invites. Team sync is available for GitHub Enterprise Cloud, allowing IdP to manage memberships. Use `
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_ADD_OR_UPDATE_TEAM_MEMBERSHIP_FOR_A_USER])

Remove Team Membership For A User

To remove a team member, 'admin' rights or ownership is needed without deleting the user. On GitHub Enterprise Cloud, team sync is supported, yet API edits to membership with sync on can lead
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_REMOVE_TEAM_MEMBERSHIP_FOR_A_USER])

List Team Projects

Lists the organization projects for a team. **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_TEAM_PROJECTS])

Check Team Permissions For A Project

The text explains how to check a team's permissions (`read`, `write`, `admin`) on an organization project, including inherited projects. It also notes the option to specify a team by `org_id`
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CHECK_TEAM_PERMISSIONS_FOR_A_PROJECT])

Add Or Update Team Project Permissions

To add or update a team's project, the user needs 'admin' rights. Projects and teams must belong to the same organization. A team can be specified by `org_id` and `team_id` via `PUT` request.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_ADD_OR_UPDATE_TEAM_PROJECT_PERMISSIONS])

Remove A Project From A Team

An organization owner or a team maintainer can remove a project from a team. Organization members need `read` or `admin` access to do so. The action doesn't delete the project. Teams can also
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_REMOVE_A_PROJECT_FROM_A_TEAM])

List Team Repositories

Lists a team's repositories visible to the authenticated user. **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_TEAM_REPOSITORIES])

Check Team Permissions For A Repository

The text guides on verifying a team's permissions for a repository, including inherited permissions, by using a special media type. It elaborates on the necessary permissions for private repos
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CHECK_TEAM_PERMISSIONS_FOR_A_REPOSITORY])

Add Or Update Team Repository Permissions

To modify a team's repo permissions, admin access is needed along with team visibility. Repos must be owned or forked by the org. Follow specific conditions and set `Content-Length` to zero fo
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_ADD_OR_UPDATE_TEAM_REPOSITORY_PERMISSIONS])

Remove A Repository From A Team

Organization owners or team maintainers can remove repositories from their team if they are authenticated. Members need admin access to remove a repository. Removal doesn't delete the repo. Te
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_REMOVE_A_REPOSITORY_FROM_A_TEAM])

List Child Teams

Lists the child teams of the team specified by `{team_slug}`. **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/teams`
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_CHILD_TEAMS])

Reactions

List Reactions For A Team Discussion Comment

API endpoint retrieves reactions to a team discussion comment; specify by `org_id` and `team_id`. Requires `read:discussion` scope with OAuth or personal access tokens.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REACTIONS_FOR_A_TEAM_DISCUSSION_COMMENT])

Create Reaction For A Team Discussion Comment

Adding a reaction to a team discussion comment via GitHub's API results in HTTP `200` if the reaction exists. Specify teams by `org_id` and `team_id`. OAuth tokens require `write:discussion` s
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_REACTION_FOR_A_TEAM_DISCUSSION_COMMENT])

Delete Team Discussion Comment Reaction

To remove a team discussion comment reaction, use DELETE with specific IDs, requiring `write:discussion` scope via OAuth/personal tokens. See documentation for details.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_TEAM_DISCUSSION_COMMENT_REACTION])

List Reactions For A Team Discussion

Access reactions to a team discussion via GET request, specifying by `org_id` and `team_id`. OAuth and personal access tokens with `read:discussion` scope are necessary.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REACTIONS_FOR_A_TEAM_DISCUSSION])

Create Reaction For A Team Discussion

Adding a reaction to a team discussion via GitHub API returns HTTP `200` if the reaction exists. Use `POST` with `org_id` and `team_id` for specific teams. OAuth tokens require `write:discussi
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_REACTION_FOR_A_TEAM_DISCUSSION])

Delete Team Discussion Reaction

Use route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id` to remove a reaction from team discussions. Required `write:discussion` scope for
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_TEAM_DISCUSSION_REACTION])

Projects

Get A Project Card

Gets information about a project card.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_PROJECT_CARD])

Update An Existing Project Card

Update an existing project card by specifying its unique ID. Allows modifying notes and the archival status. Returns updated card details. For more info, visit: https://docs.github.com/rest/pr
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_AN_EXISTING_PROJECT_CARD])

Delete A Project Card

Deletes a project card
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_PROJECT_CARD])

Move A Project Card

This endpoint moves a project card to a specified column position using `POST` with `card_id`, `column_id`, and `position` (top, bottom, or after another card). Authentication needed.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_MOVE_A_PROJECT_CARD])

Get A Project Column

Gets information about a project column.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_PROJECT_COLUMN])

Update An Existing Project Column

Update an existing GitHub project column by ID. Requires column ID in the path and a JSON request body with column's new name. Supports renaming project columns. Refer to official documentatio
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_AN_EXISTING_PROJECT_COLUMN])

Delete A Project Column

Deletes a project column.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_PROJECT_COLUMN])

List Project Cards

Lists the project cards in a project.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PROJECT_CARDS])

Create A Project Card

To create a project card, submit a `POST` request with `column_id` and a note or repository content details. Successful submissions return a 201 response with card details.
from composio_langchain import ComposioToolSet, Action tool_set = ComposioToolSet() tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_PROJECT_CARD])

Frequently asked questions

What is Composio.dev?

Composio.dev is a platform for building AI applications, designed to make the process of developing AI solutions super easy and fun! It provides a comprehensive set of tools and libraries that simplify the process of developing AI solutions, allowing you to focus on the creative aspects of your project without getting bogged down by the technical details.

How does Composio.dev support Github?

Composio.dev seamlessly integrates with Github, allowing you to leverage its capabilities within the Composio.dev platform. You can utilize Github to call functions across various platforms, including Google, GitHub, and others, making it a breeze to incorporate different services into your AI applications. Additionally, it supports user authentication via OAuth2 and can work in conjunction with other popular frameworks like LangChain and CrewAI, giving you the flexibility to build truly innovative AI solutions.

What models can I use with Github?

With Github, you have access to a wide range of state-of-the-art language models, including GPT-4o (OpenAI), GPT-3.5 (OpenAI), GPT-4 (OpenAI), Claude (Anthropic), PaLM (Google), LLaMA and LLaMA 2 (Meta), Gemini, and many others. This flexibility allows you to choose the model that best suits your specific use case, whether you're building a chatbot, a content creation tool, or any other AI-powered application. You can experiment with different models and find the one that delivers the best performance for your project.

How can I integrate Github into my project?

Composio.dev provides a seamless integration for Github, making it super easy to incorporate this powerful framework into your projects. You can leverage the Composio.dev API to call functions from Github, allowing you to tap into its capabilities with just a few lines of code. The SDK is available in Python, JavaScript, and TypeScript, so you can work with your preferred programming language and integrate Github into your projects seamlessly.

What is the pricing for Github?

Github is completely free to use, with a generous free tier that allows up to 1000 requests per month. This makes it accessible for developers and organizations of all sizes to explore and experiment with this powerful tool without any upfront costs. Whether you're a student working on a personal project or a startup building the next big thing, you can get started with Github without worrying about breaking the bank.

What kind of authentication is supported for Github?

Github supports OAuth2 authentication, ensuring secure and authorized access to its functionalities. You can leverage the Composio.dev API to handle authentication and call functions from Github seamlessly. The SDK is available in Python, JavaScript, and TypeScript for your convenience, making it easy to integrate authentication into your projects and keep your users' data safe and secure.

Can I add Github to my project?

Absolutely! You can easily incorporate Github into your project by utilizing the Composio.dev API. This API allows you to call functions from Github, enabling you to leverage its capabilities within your application. The SDK is available in Python, JavaScript, and TypeScript to facilitate integration, so you can work with the language you're most comfortable with and add Github to your project with ease.

What is the accuracy of Github?

Github is designed to provide highly accurate and reliable results, ensuring that your AI applications perform at their best. The integration with Composio.dev ensures precise function calls, enabling you to build robust and powerful AI applications with confidence. Github's comprehensive framework and the ability to leverage state-of-the-art models ensure reliable and accurate outcomes for your AI development needs, whether you're working on a chatbot, a content creation tool, or any other AI-powered project.

What are some common use cases for Github?

Github can be used for a wide range of AI applications, making it a versatile tool for developers and creators alike. Some common use cases include natural language processing, text generation, question answering, sentiment analysis, and more. It's particularly useful for building chatbots, virtual assistants, content creation tools, and other AI-powered applications that can help you automate tasks, engage with users, and create compelling content. Whether you're working on a personal project or building a product for your startup, Github can help you bring your ideas to life.

How does Github handle data privacy and security?

Data privacy and security are crucial considerations when working with AI systems, and Github takes these issues seriously. It follows industry best practices and adheres to strict data protection regulations, ensuring that your data is kept safe and secure. Github provides robust security measures, such as encryption and access controls, to ensure the confidentiality and integrity of your data. You can rest assured that your sensitive information is protected when using Github for your AI development needs.
+ Integrate seamlessly with your agentic frameworks
Composio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and SizesComposio Works with All Shapes and Sizes
Building for AI across continents🧪