-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WatermelonAI SummaryThe 13 commits in this Pull Request indicate that the team is working on commenting on specific diff lines that contain console logs. Initially, they added hello world examples in Python, C++, and Rust for testing purposes. They then made updates and fixes to the code and implemented the functionality to detect console logs and comment on them using the Octokit route. They intentionally sent a PR with console logs to test the functionality, but later removed the console logs and test hello worlds. There were also some minor changes made, such as fixing a typo and changing the event from REQUEST_CHANGES to COMMENT. Overall, this PR introduces a new feature that allows for commenting on specific lines in the code diff that contain console logs. GitHub PRsClick here to login to Jira |
utils/actions/detectConsoleLogs.ts
Outdated
const indiviudalLine = openAIResult.line; | ||
|
||
console.log("additionsHaveConsoleLog", addtionsHaveConsoleLog); | ||
console.log("indiviudalLine", indiviudalLine); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getConsoleLogPosition - This file contains at least one console log. Please remove any present.
…for testing purposes
test_hello_worlds/hello.rs
Outdated
@@ -0,0 +1,3 @@ | |||
fn main() { | |||
println!("Hello World!"); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getConsoleLogPosition - This file contains at least one console log. Please remove any present.
Description
This PR uses the console log detection function to comment on the specific diff in the specific file containing the console log.
To do so, we tell OpenAI to also return the code line itself, and then get the code line in the position of the diff (not the actual file) which is what Octokit needs.
Type of change
Acceptance