GET A REPOSITORY README
This endpoint retrieves the preferred README of a repository, supporting
two media types: `application/vnd.github.raw+json` for raw file contents
(default) and `application/vnd.github.html+jso
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_REPOSITORY_README])
GET A REPOSITORY README FOR A DIRECTORY
This endpoint fetches a repository's README, offering raw file contents
by default (`application/vnd.github.raw+json`) or in HTML format (`application/vnd.github.html+json`),
utilizing GitHub'
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_REPOSITORY_README_FOR_A_DIRECTORY])
LIST RELEASES
The text explains that the provided list only includes releases, not all
Git tags, advising to use the Repository Tags API for those. Published releases
are public, while draft releases info i
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_RELEASES])
CREATE A RELEASE
Users with push access can create a release, triggering notifications. Rapid
creation may face secondary rate limiting. For details, see GitHub's rate
limits and REST API best practices.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_RELEASE])
GET A RELEASE ASSET
To download an asset, set the `Accept` header to `application/octet-stream`.
The API may redirect (302) or stream directly (200), so clients should support
both responses.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_RELEASE_ASSET])
UPDATE A RELEASE ASSET
Users with push access to the repository can edit a release asset.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_RELEASE_ASSET])
DELETE A RELEASE ASSET
Delete a specified release asset from a GitHub repository by providing the
`owner`, `repo`, and `asset_id`. Access the detailed API documentation at
https://docs.github.com/rest/releases/asset
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_RELEASE_ASSET])
GENERATE RELEASE NOTES CONTENT FOR A RELEASE
Release notes, named and formatted in Markdown, detail changes since the
last release and contributors. Intended for creating new releases, they
are not stored but generated as needed.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GENERATE_RELEASE_NOTES_CONTENT_FOR_A_RELEASE])
GET THE LATEST RELEASE
The latest published release for a repository is the most recent non-prerelease,
non-draft version, ordered by the `created_at` date, which is the commit
date, not the drafting or publishing d
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_THE_LATEST_RELEASE])
GET A RELEASE BY TAG NAME
Get a published release with the specified tag.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_RELEASE_BY_TAG_NAME])
GET A RELEASE
The public release is accessible with a given release ID, providing an `upload_url`
for asset uploads. This URL is a hypermedia resource, detailed in GitHub's
REST API guide.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_RELEASE])
UPDATE A RELEASE
Users with push access to the repository can edit a release.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_RELEASE])
DELETE A RELEASE
Users with push access to the repository can delete a release.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_RELEASE])
LIST RELEASE ASSETS
This endpoint fetches assets for a repository's release on GitHub, needing
repository owner, repo name, and release ID. Supports pagination with `per_page`
and `page`. Returns asset details li
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_RELEASE_ASSETS])
GET RULES FOR A BRANCH
The text details a feature returning all active rules for a branch, real
or hypothetical, at any configuration level. Rules in "evaluate" or "disabled"
status are excluded.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_RULES_FOR_A_BRANCH])
GET ALL REPOSITORY RULESETS
Get all the rulesets for a repository.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_ALL_REPOSITORY_RULESETS])
CREATE A REPOSITORY RULESET
Create a ruleset for a repository.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_REPOSITORY_RULESET])
LIST REPOSITORY RULE SUITES
This text discusses managing repository-level rule evaluations, including
insights. For details, visit the provided GitHub documentation link.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REPOSITORY_RULE_SUITES])
GET A REPOSITORY RULE SUITE
This document provides details on obtaining rule evaluations for a repository,
with further guidance available on managing rulesets at a provided GitHub
documentation link.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_REPOSITORY_RULE_SUITE])
GET A REPOSITORY RULESET
Get a ruleset for a repository.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_REPOSITORY_RULESET])
UPDATE A REPOSITORY RULESET
Update a ruleset for a repository.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_REPOSITORY_RULESET])
DELETE A REPOSITORY RULESET
Delete a ruleset for a repository.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_REPOSITORY_RULESET])
GET THE WEEKLY COMMIT ACTIVITY
The endpoint provides weekly aggregates of additions and deletions for repositories
with fewer than 10,000 commits. Repositories exceeding this limit return
a 422 status code.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_THE_WEEKLY_COMMIT_ACTIVITY])
GET THE LAST YEAR OF COMMIT ACTIVITY
Returns the last year of commit activity grouped by week. The `days` array
is a group of commits per day, starting on `Sunday`.
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_THE_LAST_YEAR_OF_COMMIT_ACTIVITY])
GET ALL CONTRIBUTOR COMMIT ACTIVITY
The endpoint shows the total commits authored by a contributor, a weekly
summary (`weeks` array) of additions, deletions, and commits, starting from
a Unix timestamp. For repositories with 10,
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_ALL_CONTRIBUTOR_COMMIT_ACTIVITY])
GET THE WEEKLY COMMIT COUNT
The text explains how to find total commit counts for an owner and everyone
(all) in the last 52 weeks, from the oldest to the most recent week (seven
days ago until today at UTC midnight), by
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_THE_WEEKLY_COMMIT_COUNT])
GET THE HOURLY COMMIT COUNT FOR EACH DAY
The text details a format for tracking commits: `[day, hour, commits]`,
with days 0-6 for Sunday-Saturday and hours 0-23. Example `[2, 14, 25]`
represents 25 commits at 2pm on Tuesdays, based
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_THE_HOURLY_COMMIT_COUNT_FOR_EACH_DAY])
CREATE A COMMIT STATUS
Users with push access in a repository can create commit statuses for a
given SHA. Note: there is a limit of 1000 statuses per `sha` and `context`
within a repository. Attempts to create more
from composio_llamaindex import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_COMMIT_STATUS])