LIST PULL REQUESTS
Draft pull requests are available across various GitHub plans. The endpoint
supports custom media types like raw, text, HTML, diff, and patch representations.
For more details, refer to GitHub
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PULL_REQUESTS])
CREATE A PULL REQUEST
Draft pull requests on GitHub support various plans, need write access or
organization membership to modify, may trigger notifications, are rate-limited,
and allow custom media types for markd
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_PULL_REQUEST])
GET A PULL REQUEST
GitHub supports draft pull requests in various plans, including Free, Pro,
Team, and Enterprise. It tests mergeability without branch changes, using
`mergeable` and `merge_commit_sha` attribut
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_PULL_REQUEST])
UPDATE A PULL REQUEST
Draft pull requires write access and is available for both public and private
repos on various GitHub plans. GitHub also supports custom media formats
for markdown content responses.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_PULL_REQUEST])
LIST COMMITS ON A PULL REQUEST
For pull requests with over 250 commits, use the "List commits" endpoint
for a complete list. Supports custom media types like raw, text, HTML markdown,
and diff. See GitHub docs for more on m
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_COMMITS_ON_A_PULL_REQUEST])
LIST PULL REQUESTS FILES
Lists files in a pull request, up to 3000 files with 30 per page by default.
Supports custom media types for different representations of the markdown
body (raw, text, HTML, full). Maximum res
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PULL_REQUESTS_FILES])
CHECK IF A PULL REQUEST HAS BEEN MERGED
Checks if a pull request has been merged into the base branch. The HTTP
status of the response indicates whether or not the pull request has been
merged; the response body is empty.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CHECK_IF_A_PULL_REQUEST_HAS_BEEN_MERGED])
MERGE A PULL REQUEST
This API endpoint merges a pull request, triggers notifications, and may
face secondary rate limiting if used too rapidly. For details, refer to
GitHub's rate limits and REST API best practice
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_MERGE_A_PULL_REQUEST])
GET ALL REQUESTED REVIEWERS FOR A PULL REQUEST
This text outlines how to get reviewers for a pull request. Requested reviewers
are listed until they submit a review, after which their reviews can be
found via the "List reviews for a pull r
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_ALL_REQUESTED_REVIEWERS_FOR_A_PULL_REQUEST])
REQUEST REVIEWERS FOR A PULL REQUEST
This endpoint requests pull request reviews from users/teams, triggering
notifications. Fast usage may cause rate limiting. See GitHub's API rate
limits and usage best practices for more infor
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_REQUEST_REVIEWERS_FOR_A_PULL_REQUEST])
REMOVE REQUESTED REVIEWERS FROM A PULL REQUEST
Removes review requests from a pull request for a given set of users and/or
teams.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_REMOVE_REQUESTED_REVIEWERS_FROM_A_PULL_REQUEST])
LIST REVIEWS FOR A PULL REQUEST
This endpoint lists reviews for a pull request chronologically, supporting
different media types for varying representations of the markdown body,
including raw, text, HTML, or all.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_REVIEWS_FOR_A_PULL_REQUEST])
CREATE A REVIEW FOR A PULL REQUEST
This API endpoint enables creation of pull request reviews and notifications.
Rapid usage may cause rate limiting. Use `PENDING` for draft reviews. Calculate
diff position for comments. Suppor
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_REVIEW_FOR_A_PULL_REQUEST])
GET A REVIEW FOR A PULL REQUEST
API endpoint retrieves pull request reviews by ID, supporting custom media
types for different formats (raw, text, HTML, full) of the review's markdown
body. See GitHub's "Media types" for det
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_REVIEW_FOR_A_PULL_REQUEST])
UPDATE A REVIEW FOR A PULL REQUEST
This API endpoint updates review summary comments and supports custom media
types for different representations: raw markdown, text-only, HTML, and
full (includes all formats). See GitHub docs
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_REVIEW_FOR_A_PULL_REQUEST])
DELETE A PENDING REVIEW FOR A PULL REQUEST
Deletes unsubmitted pull request reviews. Submitted ones can't be deleted.
Supports custom media types for different data formats in the response.
See GitHub docs for more on media types.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_PENDING_REVIEW_FOR_A_PULL_REQUEST])
DISMISS A REVIEW FOR A PULL REQUEST
To dismiss a pull request review on a protected branch, you must be an admin
or authorized. The endpoint supports multiple media types for returning
different formats of the review body.
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DISMISS_A_REVIEW_FOR_A_PULL_REQUEST])
SUBMIT A REVIEW FOR A PULL REQUEST
Submits a review for a pull request with options for custom media types
including raw markdown, text only, HTML rendered, and full representations.
See docs for detailed info on creating revie
from composio_openai import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_SUBMIT_A_REVIEW_FOR_A_PULL_REQUEST])