Skip to content

Commit

Permalink
only report 3 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jun 2, 2024
1 parent f00a820 commit 5dd85e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion genaisrc/pr-review-commit.genai.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Provide feedback to the author using annotations.
Think step by step and for each annotation explain your result.
- report errors only, ignore notes and warnings
- report 3 most serious errors only, ignore notes and warnings
- only report issues you are absolutely certain about
- do NOT repeat the same issue multiple times
- use a friendly tone
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,9 @@ async function githubCreatePullRequestReview(
html_url: resp.html_url,
}
if (!r.created) {
logError(
logVerbose(
`pull request ${commitSha} comment creation failed, ${r.statusText}`
)
logVerbose(JSON.stringify(body, null, 2))
} else
logVerbose(`pull request ${commitSha} comment created at ${r.html_url}`)
return r
Expand Down

0 comments on commit 5dd85e8

Please sign in to comment.