Commit Graph

14 Commits

Author SHA1 Message Date
qpismont aa0dbdcc7a Extract review logic into bot_actions module
Move `exec_review`, `download_git_diff`, and review formatting
to a new `bot_actions::review` module. Update the review flow to
post inline review comments via the Gitea API and simplify the
comment markdown to a summary. Add diff formatting that
preprocesses added lines with line numbers for the LLM prompt.
2026-06-06 17:27:35 +00:00
qpismont 6aa653e846 Add http status check for gitea api 2026-06-05 18:52:59 +00:00
qpismont 3501e4ae9d Use reqwest client with timeout in gitea.rs and bot.rs 2026-06-05 18:48:02 +00:00
qpismont 01e13f0081 Add default authorization header for gitea api (remove query string)
Add review cost
2026-06-05 18:39:38 +00:00
qpismont cd5c5b9478 Use reqwest 0.12 with rustls-tls and add timeouts
Also improve review prompt with line calculation instructions, switch
feedback to French, and enable reasoning for OpenRouter.
2026-06-03 20:51:21 +00:00
qpismont de81232201 Integrate OpenRouter for AI-powered code review
Add openrouter-rs dependency, review prompt, and markdown formatting.
Update comment API to accept dynamic body. Adjust devcontainer for
podman compatibility.
2026-06-03 19:38:00 +00:00
qpismont 4966d08d18 first comment ! :D 2026-06-02 20:30:02 +00:00
qpismont 10ebee389e started gitea api impl 2026-06-02 19:52:50 +00:00
qpismont 14751f8db1 add check for action and bot_name 2026-06-02 18:42:59 +00:00
qpismont 0a22be252c improve webhook parsing 2026-06-01 21:10:45 +00:00
qpismont 7e3b49ad76 add test + json errors 2026-05-31 21:30:17 +00:00
qpismont aa746f357d add gitea sig header check, add Json errors, begin AppState 2026-05-31 20:32:49 +00:00
qpismont c119bed142 parse gitea pr webhook 2026-05-28 21:35:41 +00:00
qpismont 2cf50b0168 first commit 2026-05-18 22:32:23 +02:00