6 Commits

Author SHA1 Message Date
john 62ba8e0ff0 Bug fixing
ai/code-review No issues found
hello-world/pipeline/head This commit looks good
2026-05-03 21:39:24 +01:00
john 57e44e5bc9 Bug fixing
ai/code-review No issues found
hello-world/pipeline/head This commit looks good
2026-05-03 21:38:45 +01:00
john f39884310d Bug fixing
ai/code-review No issues found
hello-world/pipeline/head This commit looks good
2026-05-03 21:37:02 +01:00
john 4f05b6f6c0 Bug fixing
ai/code-review AI review reported findings
hello-world/pipeline/head This commit looks good
2026-05-03 21:35:53 +01:00
john d53655f4f4 New source
ai/code-review AI review reported findings
hello-world/pipeline/head There was a failure building this commit
2026-05-03 21:27:57 +01:00
john 959c4304b3 Update prompt
ai/code-review AI review reported findings
hello-world/pipeline/head This commit looks good
2026-05-03 21:27:03 +01:00
2 changed files with 12 additions and 11 deletions
+4 -1
View File
@@ -174,7 +174,10 @@ def build_prompt(diff_text: str) -> str:
return ( return (
"Review the following git diff. Focus on correctness, regressions, missing validation, " "Review the following git diff. Focus on correctness, regressions, missing validation, "
"build/test issues, and security concerns. " "build/test issues, and security concerns as well as style and usage of c++23. "
"Bring to attention any patterns that are generally considered error-prone or hard to maintain. "
"Highlight any places where the code could be simplified or made more efficient. "
"Provide suggestions for improving readability and maintainability. "
"No need to comment on removed code unless it seems like it would cause a problem. " "No need to comment on removed code unless it seems like it would cause a problem. "
"Do not review the scripts in the scripts directory, as they are not part of the main codebase. " "Do not review the scripts in the scripts directory, as they are not part of the main codebase. "
"Return either 'No issues found.' or a short flat list where each item includes severity, file, and issue.\n\n" "Return either 'No issues found.' or a short flat list where each item includes severity, file, and issue.\n\n"
+7 -9
View File
@@ -1,15 +1,13 @@
#include <iostream> #include <iostream>
const std::string& get_greeting() {
return "Hello, world!";
}
// Add the number of things. int main()
int add_6(int cx) { {
return 6 + cx; auto the_max_value = 100;
int total = 0;
for (int v = 0; v < the_max_value; ++v) {
total += v;
} }
std::cout << "Total: " << total << std::endl;
int main() {
std::cout << "Hello, world!" << add_6(5) << std::endl;
return 0;
} }