Skip to content

Commit 6cdd89d

Browse files
Merge pull request #613 from techmaharaj/gptreview
Add GPTReview Example
2 parents 4f48485 + b1a31ac commit 6cdd89d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

examples/gptreview.gpt

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Name: Code Reviewer
2+
Description: A tool to help you perform code review of open PRs
3+
Context: learn-gh
4+
Tools: sys.exec, sys.http.html2text?, sys.find, sys.read, sys.write
5+
Args: PR_URL: The GitHub PR_URL
6+
chat:true
7+
8+
You have the gh cli available to you. Use it to perform code review for a pr.
9+
10+
Perform the following steps in order:
11+
1. Ask the user for the ($PR_URL) and save it.
12+
2. Identify the files changed in the pull request ($PR_URL) using the pr number and perform a diff.
13+
1. Analyze the complete code of each identified file and perform a detailed line by line code review.
14+
2. Repeat the process for each changed file in the pr.
15+
3. Share your review comments separately for each file.
16+
4. In a new line write "Code: Approved" or "Code: Require Changes" based on the review.
17+
---
18+
Name: learn-gh
19+
Description: A tool to help you learn gh cli
20+
21+
#!/usr/bin/env bash
22+
23+
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."
24+
gh --help
25+
gh repo --help
26+
gh pr --help
27+
gh pr checkout --help
28+
gh pr diff --help

0 commit comments

Comments
 (0)