Commit graph

33 commits

Author SHA1 Message Date
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
Ville Saukkonen
5c13a26204 package and update the model used, remove unused code 2023-12-02 23:08:33 +02:00
Felix Anhalt
d158a6fdbc
Fix/connection (#1)
* stuff

* stuff
2023-11-27 14:15:48 +01:00
Ville Saukkonen
d585461692 repackage 2023-07-31 18:35:27 +03:00
L.F. Severgnini
ee328499f4
chore: package stuff :| 2023-07-12 18:19:31 -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
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
Ville Saukkonen
dbf427f89f attempt to fix the malformed request 2023-04-22 17:08:29 +03:00
Ville Saukkonen
903cfb745e try to make it not to ask commenting the code 2023-04-22 16:56:28 +03:00
Ville Saukkonen
0f627714f1 review changed files only 2023-04-22 16:47:51 +03:00
Ville Saukkonen
8f38d09f7d try to make prompt for not suggesting commenting more clear 2023-03-30 15:50:42 +03:00
Ville Saukkonen
08e3201b55 simplify ternary 2023-03-28 11:49:16 +03:00
Ville Saukkonen
f67f5f0d41 try to make it refrain from suggesting commenting 2023-03-28 11:46:57 +03:00
Ville Saukkonen
7b2312e5ab - attempt to improve line number commenting
- try to rephrase to be less positive
2023-03-28 11:35:20 +03:00
Ville Saukkonen
7a06f49c68 generate dist 2023-03-28 01:53:27 +03:00
Ville Saukkonen
27939a4b16 add line number calculation instruction 2023-03-28 01:52:58 +03:00
Ville Saukkonen
e73abe7ded fix array pushing 2023-03-28 01:52:56 +03:00
Ville Saukkonen
bcec1128c8 return empty array for parsing 2023-03-28 01:52:44 +03:00
Ville Saukkonen
626621db03 give instructions in the beginning, ask the AI to return JSON 2023-03-28 01:52:10 +03:00
Ville Saukkonen
30597b305c remove duplicate deletion and addition signs 2023-03-28 01:50:33 +03:00
Ville Saukkonen
6293b88dcd use relaxed quotes 2023-03-28 01:50:33 +03:00
Ville Saukkonen
dfff4cc30c comment on line numbers and avoid giving positive comments 2023-03-23 19:16:20 +02:00
Ville Saukkonen
8308ada88f update dist 2023-03-23 01:19:35 +02:00
Ville Saukkonen
8995085d53 improve the prompt silghtly 2023-03-23 00:42:28 +02:00
Ville Saukkonen
b6f3653286 initial commit 2023-03-22 23:16:13 +02:00