-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #613 from techmaharaj/gptreview
Add GPTReview Example
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |