Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions examples/gptreview.gpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Name: Code Reviewer
Description: A tool to help you perform code review of open PRs
Context: learn-gh
Tools: sys.exec, sys.http.html2text?, sys.find, sys.read, sys.write
Args: PR_URL: The GitHub PR_URL
chat:true

You have the gh cli available to you. Use it to perform code review for a pr.

Perform the following steps in order:
1. Ask the user for the ($PR_URL) and save it.
2. Identify the files changed in the pull request ($PR_URL) using the pr number and perform a diff.
1. Analyze the complete code of each identified file and perform a detailed line by line code review.
2. Repeat the process for each changed file in the pr.
3. Share your review comments separately for each file.
4. In a new line write "Code: Approved" or "Code: Require Changes" based on the review.
---
Name: learn-gh
Description: A tool to help you learn gh cli

#!/usr/bin/env bash

echo "The following is the help text for the gh cli and some of its sub-commands. Use these when figuring out how to construct new commands. Note that the --search flag is used for filtering and sorting as well; there is no dedicated --sort flag."
gh --help
gh repo --help
gh pr --help
gh pr checkout --help
gh pr diff --help