Merge pull request #3 from hohyon-ryu/will_ryu-remove_catch

chore: remove unnecessary error handling in main function
This commit is contained in:
Will Hohyon Ryu 2024-03-07 19:51:35 -08:00 committed by GitHub
commit fb299e943a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 6 deletions

View file

@ -20,7 +20,7 @@ inputs:
required: false
default: ""
runs:
using: "node16"
using: "node20"
main: "dist/index.js"
branding:
icon: "aperture"

View file

@ -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.

View file

@ -69,7 +69,4 @@ async function main() {
}
}
main().catch((error) => {
console.error("Error:", error);
process.exit(1);
});
main();