These pull request tools are available in Copilot. Standalone agents (Slack Bot, Programmable, Bolt Pipeline) work with GitHub through the
gh CLI in the Terminal Tool instead. What an agent may do to a pull request from its terminal follows its merge and pull request writes: comments and edits by default, approvals and merges only when turned on.Before you start
- Your workspace’s repository is on GitHub. The tool uses the workspace’s repository. You don’t choose the repository in the prompt.
- You connected your account with GitHub user-level OAuth. DinoAI gets these tools only after you connect.
- To open, change, or review a pull request, your GitHub account needs write access to the repository.
Capabilities
Whether DinoAI asks for your approval before an action depends on your approval mode. In Manual, every action asks by default.create_pull_request
Opens a pull request from a branch in the workspace’s repository.
- Takes a title, a description (Markdown), the source branch, and the target branch. The target is
mainunless you name another one. - Can open the pull request as a draft.
read_pull_request
Reads one pull request by its number. It can get:
- Details: the title, state, branches, and merge status.
- Code diff: every changed file.
- CI status: the build and check statuses.
- Reviews and comments: approvals, inline code comments with their context, and the discussion.
list_pull_requests
Lists pull requests in the workspace’s repository.
- Filter by state (
open,closed, orall), target branch, or source branch. - Sort by created date, updated date, or number of comments, newest or oldest first.
- Up to 100 results per page.
update_pull_request
Changes a pull request: its title, description, or base branch, or closes or reopens it. Fields you don’t name stay as they are.
pull_request_review_write
Writes a review on a pull request in three steps: create a pending review, add inline comments to it, then submit it as Approve, Request changes, or Comment. It can also delete a pending review before it is published.
add_comment_to_pending_review
Adds an inline comment, on one line or a range of lines in the diff, to your pending review. The comment is published when the review is submitted.
add_reply_to_pull_request_comment
Replies to an existing review comment on a pull request. The reply is published at once.
Example prompts
Open a draft pull requestWorking with other tools
- Use Git Lite to commit and push before you open a pull request. Create PR with DinoAI in Git Lite opens the pull request for you.
- Use the Terminal Tool to run dbt™ commands before you open a pull request.
- Use the Jira or Linear tool to put the issue key in the title or description.