CREATE A BLOB
This API endpoint enables creating a new blob in a specified repository,
supporting `UTF-8` and `base64` encodings. It requires blob content in the
request body and returns blob details, inclu
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_BLOB])
GET A BLOB
The endpoint returns blob data, offering raw data or JSON with base64 encoded
`content`. Supports files up to 100MB. More on media types at GitHub docs.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_BLOB])
CREATE A COMMIT
Git commits' `verification` object confirms signature validity, detailing
verification status and reason, with fields like `verified`, `reason`, `signature`,
and `payload`, indicating reasons
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_COMMIT])
GET A COMMIT OBJECT
GitHub's commit object includes a `verification` object summarizing the
result of the commit's signature verification, detailing if it was verified,
the reason, signature, and signed value. De
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_COMMIT_OBJECT])
LIST MATCHING REFERENCES
The Git database API retrieves ref arrays for branches or tags. Without
specifying `:ref`, it returns all references. Non-existent `:ref`s yield
starting matches. Mergeability requires a pull
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_MATCHING_REFERENCES])
GET A REFERENCE
Fetches a Git reference using a formatted URL for branches (`heads/<branch
name>`) or tags (`tags/<tag name>`). Returns a 404 if not found. For pull
request mergeability, a separate request is
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_REFERENCE])
CREATE A REFERENCE
Creates a reference for your repository. You are unable to create new references
for empty repositories, even if the commit SHA-1 hash used exists. Empty
repositories are repositories without
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_REFERENCE])
UPDATE A REFERENCE
Updates the provided reference to point to a new SHA. For more information,
see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)"
in the Git documentation.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_REFERENCE])
DELETE A REFERENCE
Deletes the provided reference.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_REFERENCE])
CREATE A TAG OBJECT
Creating an annotated Git tag involves making a tag object and a `refs/tags/[tag]`
reference. Lightweight tags need only the reference. The `verification`
object shows if the signature is veri
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_TAG_OBJECT])
GET A TAG
The `verification` object in commit responses includes boolean `verified`,
`reason` for verification status, `signature`, and `payload` signed. Reasons
for `reason` field range from expired ke
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_TAG])
CREATE A TREE
The tree creation API allows for nested entries and modifying trees, where
changes require committing and updating branches. Using this API can add,
delete, or modify files but returns an erro
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_TREE])
GET A TREE
Fetches a tree by SHA1 or ref name. If `truncated` is true, the tree exceeds
limits (100,000 entries, 7 MB with `recursive`). Fetch more items by getting
sub-trees non-recursively.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_TREE])