LIST TAG PROTECTION STATES FOR A REPOSITORY
This returns the tag protection states of a repository. This information
is only available to repository administrators.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_TAG_PROTECTION_STATES_FOR_A_REPOSITORY])
CREATE A TAG PROTECTION STATE FOR A REPOSITORY
This creates a tag protection state for a repository. This endpoint is only
available to repository administrators.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_TAG_PROTECTION_STATE_FOR_A_REPOSITORY])
DELETE A TAG PROTECTION STATE FOR A REPOSITORY
This deletes a tag protection state for a repository. This endpoint is only
available to repository administrators.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_TAG_PROTECTION_STATE_FOR_A_REPOSITORY])
DOWNLOAD A REPOSITORY ARCHIVE TAR
Generate a redirect URL to download a tar archive of a repository's default
branch or a specified ref. Ensure HTTP framework follows redirects or use
the `Location` header for a second request
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DOWNLOAD_A_REPOSITORY_ARCHIVE_TAR])
LIST REPOSITORY TEAMS
The text explains that listing of teams with repository access depends on
the repository's visibility and the type of access token used, with specific
scopes required for OAuth and personal to
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REPOSITORY_TEAMS])
GET ALL REPOSITORY TOPICS
This endpoint fetches topics of a GitHub repository, using `owner` and `repo`.
It supports pagination with `page` and `per_page`. API details at GitHub
documentation.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_ALL_REPOSITORY_TOPICS])
REPLACE ALL REPOSITORY TOPICS
Replace or clear GitHub repo topics by passing an array of names or an empty
array, respectively, including owner and repo name in the path. Full details:
https://docs.github.com/rest/repos/re
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_REPLACE_ALL_REPOSITORY_TOPICS])
GET REPOSITORY CLONES
Get the total number of clones and breakdown per day or week for the last
14 days. Timestamps are aligned to UTC midnight of the beginning of the
day or week. Week begins on Monday.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_REPOSITORY_CLONES])
GET TOP REFERRAL PATHS
Get the top 10 popular contents over the last 14 days.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_TOP_REFERRAL_PATHS])
GET TOP REFERRAL SOURCES
Get the top 10 referrers over the last 14 days.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_TOP_REFERRAL_SOURCES])
GET PAGE VIEWS
Get the total number of views and breakdown per day or week for the last
14 days. Timestamps are aligned to UTC midnight of the beginning of the
day or week. Week begins on Monday.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_PAGE_VIEWS])
TRANSFER A REPOSITORY
When transferring a personal repository to another user, the new owner must
accept the request. The process is asynchronous, with details on the original
owner included. For more on transferri
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_TRANSFER_A_REPOSITORY])
CHECK IF VULNERABILITY ALERTS ARE ENABLED FOR A REPOSITORY
This text explains that a user can check if dependency alerts are enabled
or disabled for a repository, provided they have admin read access. It also
links to a page for more information on se
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CHECK_IF_VULNERABILITY_ALERTS_ARE_ENABLED_FOR_A_REPOSITORY])
ENABLE VULNERABILITY ALERTS
Enables dependency alerts/graph for a repository, requiring admin access.
For details on security alerts for vulnerabilities, see the provided link.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_ENABLE_VULNERABILITY_ALERTS])
DISABLE VULNERABILITY ALERTS
Disabling dependency alerts and the graph for a repository requires admin
access. For details, see GitHub's guide on security alerts for vulnerable
dependencies.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DISABLE_VULNERABILITY_ALERTS])
DOWNLOAD A REPOSITORY ARCHIVE ZIP
Get a redirect URL for downloading a zip of a repo, defaulting to the main
branch. Ensure redirects are followed. Link expires in 5 mins for private
repos; empty ones give a 404 error.
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DOWNLOAD_A_REPOSITORY_ARCHIVE_ZIP])
CREATE A REPOSITORY USING A TEMPLATE
Create a repository from a template via `template_owner` and `template_repo`.
Non-public templates need authentication. Verify with the `is_template`
value. OAuth and personal tokens require s
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_REPOSITORY_USING_A_TEMPLATE])
LIST PUBLIC REPOSITORIES
This endpoint lists all public repositories by creation order. On GitHub
Enterprise Server, it shows only universally accessible repositories. Pagination
relies on the `since` parameter, with
from composio_crewai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PUBLIC_REPOSITORIES])