Skip to content

Instantly share code, notes, and snippets.

@jodosha
Created August 29, 2023 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jodosha/8f84c425389ea5d3a182852c8817975b to your computer and use it in GitHub Desktop.
Save jodosha/8f84c425389ea5d3a182852c8817975b to your computer and use it in GitHub Desktop.
⚡ git log -1
1961f9e [3 hours ago] (Luca Guidi) Refactoring: ensure proper level of abstraction in GitHub REST client
⚡ npm start -- --remote=mattzcarey/code-review-gpt#96 --debug=true
> code-review-gpt@0.1.0 start
> ts-node ./src/index.ts review --remote=mattzcarey/code-review-gpt#96 --debug=true
DEBUG Review started.
DEBUG Model used: gpt-4
DEBUG Ci enabled: undefined
DEBUG Comment per file enabled: false
DEBUG Review type chosen: changed
DEBUG Remote Pull Request: mattzcarey/code-review-gpt#96
DEBUG Files to review after filtering: src/args.ts,src/common/github/GitHubRESTClient.ts,src/common/github/extractPul
lRequestIdentifier.ts,src/common/github/getRemotePullRequestFiles.ts,src/common/github/isEligibleForReview.ts,src/commo
n/utils/getReviewFiles.ts,src/config.ts,src/index.ts,src/review/constants.ts,src/review/index.ts
DEBUG Prompts used:
You are an expert TypeScript developer, your task is to review a set of pull requests.
You are given a list of filenames and their partial contents, but note that you might not have the full context of the
code.
Only review lines of code which have been changed (added or removed) in the pull request. The code looks similar to the
output of a git diff command. Lines which have been removed are prefixed with a minus (-) and lines which have been ad
ded are prefixed with a plus (+). Other lines are added to provide context but should be ignored in the review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment