mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-19 17:16:48 +00:00
Merge pull request #3 from hohyon-ryu/will_ryu-remove_catch
chore: remove unnecessary error handling in main function
This commit is contained in:
commit
fb299e943a
3 changed files with 3 additions and 6 deletions
|
@ -20,7 +20,7 @@ inputs:
|
|||
required: false
|
||||
default: ""
|
||||
runs:
|
||||
using: "node16"
|
||||
using: "node20"
|
||||
main: "dist/index.js"
|
||||
branding:
|
||||
icon: "aperture"
|
||||
|
|
|
@ -15,7 +15,7 @@ export function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): st
|
|||
return `Your task is to review pull requests. Instructions:
|
||||
- Provide the response in following JSON format: {"reviews": [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]}
|
||||
- Do not give positive comments or compliments.
|
||||
- Provide review in ${language} language.
|
||||
- Provide comments in ${language} language.
|
||||
- Provide comments and suggestions ONLY if there is something to improve, otherwise "reviews" should be an empty array.
|
||||
- Write the comment in GitHub Markdown format.
|
||||
- Use the given description only for the overall context and only comment the code.
|
||||
|
|
|
@ -69,7 +69,4 @@ async function main() {
|
|||
}
|
||||
}
|
||||
|
||||
main().catch((error) => {
|
||||
console.error("Error:", error);
|
||||
process.exit(1);
|
||||
});
|
||||
main();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue