Skip to content

Commit

Permalink
Updated GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrodriguez1989 committed Nov 9, 2023
1 parent 3544fd0 commit 5917b02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/code-review-gpt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ jobs:
GITHUB_BASE_REF <- paste0("origin/", Sys.getenv("GITHUB_BASE_REF"))
GITHUB_HEAD_REF <- paste0("origin/", Sys.getenv("GITHUB_HEAD_REF"))
system("git fetch origin")
diff <- system(paste("git diff", GITHUB_HEAD_REF, GITHUB_BASE_REF), intern = TRUE)
git_diff_cmnd <- paste("git diff", GITHUB_BASE_REF, GITHUB_HEAD_REF)
diff <- system(git_diff_cmnd, intern = TRUE)
prompt <- paste(
"Between sextuple quotes is a GitHub PR.",
"Between sextuple quotes is a GitHub PR created with `", git_diff_cmnd, "` command.",
"Please perform a code review on it.",
"Only notify if you find any issues.",
"If possible, specify on which files and lines you find the issues.",
Expand Down

0 comments on commit 5917b02

Please sign in to comment.