Skip to content

Commit

Permalink
Add GPTReview Example
Browse files Browse the repository at this point in the history
  • Loading branch information
techmaharaj committed Jul 4, 2024
1 parent 89c29a5 commit b1a31ac
Showing 1 changed file with 28 additions and 0 deletions.
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

0 comments on commit b1a31ac

Please sign in to comment.