Will Hohyon Ryu
d8265ef750
Refactor code analysis and review comment creation
...
The codebase has been refactored for improved maintainability and reliability. The `analyzeCode` and `createReviewComment` functions have been significantly updated to create comments based on AI responses, while respecting line limits and ignoring deleted files. Additionally, error handling has been optimized to provide clearer error messages when the context length exceeds the maximum limit.
2024-03-07 21:07:08 -08:00
Will Hohyon Ryu
06f5bdddfb
Merge pull request #4 from hohyon-ryu/will_ryu-remove_catch
...
chore: Update name and default exclude patterns in action.yml and REA…
2024-03-07 20:01:10 -08:00
Will Hohyon Ryu
f28f411604
chore: Update name and default exclude patterns in action.yml and README.md files
2024-03-07 19:58:47 -08:00
Will Hohyon Ryu
fb299e943a
Merge pull request #3 from hohyon-ryu/will_ryu-remove_catch
...
chore: remove unnecessary error handling in main function
2024-03-07 19:51:35 -08:00
Will Hohyon Ryu
9defc56369
chore: Update node version in action.yml and language instructions in createPrompt.ts
2024-03-07 19:51:23 -08:00
Will Hohyon Ryu
a242c742a4
feat(createPrompt): add console log for language variable
2024-03-07 19:47:10 -08:00
Will Hohyon Ryu
26f5881f43
chore: remove unnecessary error handling in main function
2024-03-07 19:41:59 -08:00
Will Hohyon Ryu
ac6d0e04ee
Merge pull request #2 from hohyon-ryu/will_ryu-refactor
...
chore: add language option to action.yml and use it in createPrompt.ts
2024-03-07 19:38:20 -08:00
Will Hohyon Ryu
c6390a649c
chore(createPrompt): add default language value for user input
2024-03-07 19:30:47 -08:00
Will Hohyon Ryu
5d1160716d
chore: Update code_review.yml and README.md with language options for AI Code Reviewer plugin
2024-03-07 19:28:57 -08:00
Will Hohyon Ryu
cf3ec6c3e2
chore: add language option to action.yml and use it in createPrompt.ts
2024-03-07 19:24:32 -08:00
Will Hohyon Ryu
48b65cdb3e
Merge pull request #1 from hohyon-ryu/will_ryu-refactor
...
feat: Refactor code to separate functions for creating review comment…
2024-03-07 19:21:33 -08:00
Will Hohyon Ryu
c30f272ef1
feat: Refactor code to separate functions for creating review comments, analyzing code, getting PR details, getting AI response, creating comments, and getting diffs.
2024-03-07 19:16:09 -08:00
Will Hohyon Ryu
751c4e51f9
chore(package): remove jsonic dependency
2024-03-07 19:13:06 -08:00
Will Hohyon Ryu
1cc4cd48bc
fix: use JSON.parse instead of jsonic to parse response in main.ts
...
This commit fixes an issue where the jsonic library was being used to parse a response in the main.ts file. The jsonic library has been replaced with JSON.parse for more reliable JSON parsing.
2024-03-07 19:12:30 -08:00
Will Hohyon Ryu
b0ef6c864e
chore: replace parseJsonForChatGPTResponse with jsonic for cleaner response parsing
2024-03-07 19:12:08 -08:00
Will Hohyon Ryu
977935fd5e
chore: fix formatting issues in main.ts file
2024-03-07 19:06:50 -08:00
Will Hohyon Ryu
271056abf4
chore: increase character limit to 4000 in createPrompt function
2024-03-07 19:01:32 -08:00
Will Hohyon Ryu
871e421ec8
feat(ai): Ignore diffs longer than 2000 characters to improve performance
2024-03-07 19:01:18 -08:00
Will Hohyon Ryu
1f74cac971
feat(main): add instruction to provide review in Korean language
...
Added a new instruction for reviewers to provide their reviews in Korean language. This will help improve communication and understanding within the team.
2024-03-07 18:59:44 -08:00
Will Hohyon Ryu
65c5653158
feat(parseJsonForChatGPTResponse): implement function to parse JSON response from ChatGPT API
2024-03-07 18:54:20 -08:00
Ville Saukkonen
a9a064dfa1
Merge pull request #35 from mohd-e-mustafa/mohd-e-mustafa-patch-1
...
Update README.md
2023-12-19 13:45:57 +02:00
mohd-e-mustafa
d76760b39c
Update README.md
...
Added more information for the GITHUB_ACTION as it was confusing and no details were provided.
2023-12-19 16:02:34 +05:00
Ville Saukkonen
8dff117158
Merge pull request #32 from freeedcom/support-latest-gpt-4
...
Support latest gpt 4
2023-12-02 23:09:45 +02:00
Ville Saukkonen
5c13a26204
package and update the model used, remove unused code
2023-12-02 23:08:33 +02:00
Ville Saukkonen
80ca662b5f
support the latest gpt 4 and json mode
2023-12-02 23:08:33 +02:00
Ville Saukkonen
bc0dab4a3c
Merge pull request #28 from felixAnhalt/main
...
Fix/connection (#1 )
2023-12-02 18:54:29 +02:00
Felix Anhalt
d158a6fdbc
Fix/connection ( #1 )
...
* stuff
* stuff
2023-11-27 14:15:48 +01:00
Ville Saukkonen
c4290da204
add more contribution guidelines
2023-07-31 18:36:20 +03:00
Ville Saukkonen
d585461692
repackage
2023-07-31 18:35:27 +03:00
Ville Saukkonen
0939fc4e8d
Merge pull request #14 from lfsevergnini/fix/access-diff-directly
...
fix: access diff directly to enable support to private repositories
2023-07-31 18:34:21 +03:00
Ville Saukkonen
2821669598
repackage
2023-07-31 18:24:34 +03:00
Ville Saukkonen
d3abad1bc9
Merge pull request #13 from lfsevergnini/chore/add-model-version-parameter
...
add customizable OpenAI API model parameter
2023-07-31 18:21:21 +03:00
L.F. Severgnini
ee328499f4
chore: package stuff :|
2023-07-12 18:19:31 -03:00
L.F. Severgnini
110dbf9095
fix: access commit .diff directly
2023-07-12 18:15:40 -03:00
L.F. Severgnini
74ae89bb37
run package command
2023-07-07 17:41:54 -03:00
L.F. Severgnini
838fc48abe
add 'OPENAI_API_MODEL' parameter
2023-07-07 17:36:11 -03:00
Ville Saukkonen
012d1cdc1a
Merge pull request #11 from freeedcom/try-to-improve-code-reviewer-output
...
try to reduce amount of comment suggestions
2023-04-23 23:10:10 +03:00
Ville Saukkonen
a2b67879fe
improve the prompt per reviews suggestion
2023-04-23 23:08:51 +03:00
Ville Saukkonen
6176ca5693
try to reduce amount of comment suggestions
2023-04-23 23:06:38 +03:00
Ville Saukkonen
b8580d7775
restore default reviewer version to main
2023-04-22 18:24:08 +03:00
Ville Saukkonen
07b4e53660
Merge pull request #10 from freeedcom/reveiw-changed-files-only
...
Reveiw changed files only
2023-04-22 18:08:07 +03:00
Ville Saukkonen
cc415382f7
remove unnecessary logging
2023-04-22 18:06:45 +03:00
Ville Saukkonen
6454621f44
try to use event data instead
2023-04-22 18:02:46 +03:00
Ville Saukkonen
29cd406230
print event path
2023-04-22 17:59:54 +03:00
Ville Saukkonen
97bdebd585
log more
2023-04-22 17:53:56 +03:00
Ville Saukkonen
a6762eb223
restore calling the main
2023-04-22 17:50:14 +03:00
Ville Saukkonen
dd255bf5d5
log the diff
2023-04-22 17:48:41 +03:00
Ville Saukkonen
d60ebfdf3c
only review changes between pushes
2023-04-22 17:42:09 +03:00
Ville Saukkonen
3413a8e8a0
try to prevent suggesting to comment the code
2023-04-22 17:12:43 +03:00