mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 01:56:47 +00:00
chore: Update node version in action.yml and language instructions in createPrompt.ts
This commit is contained in:
parent
a242c742a4
commit
9defc56369
2 changed files with 2 additions and 4 deletions
|
@ -20,7 +20,7 @@ inputs:
|
|||
required: false
|
||||
default: ""
|
||||
runs:
|
||||
using: "node16"
|
||||
using: "node20"
|
||||
main: "dist/index.js"
|
||||
branding:
|
||||
icon: "aperture"
|
||||
|
|
|
@ -12,12 +12,10 @@ export interface PRDetails {
|
|||
const language: string = core.getInput("language") || 'English';
|
||||
|
||||
export function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string {
|
||||
console.log('language', language);
|
||||
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue