Add gitea download git diff limit

This commit is contained in:
2026-06-05 19:34:29 +00:00
parent 6aa653e846
commit ced1fca563
4 changed files with 37 additions and 5 deletions
+2
View File
@@ -1,6 +1,8 @@
pub const GITEA_SIG_HEADER_NAME: &str = "x-gitea-signature";
pub const GITEA_EVENT_TYPE_HEADER_NAME: &str = "x-gitea-event-type";
pub const MAX_WEBHOOK_BODY_SIZE: usize = 1024 * 1024; // 1 MiB
pub const MAX_DIFF_SIZE: usize = 1024 * 1024; // 1 MiB
pub const BOT_PROCESS_MSG: &str = "
Review in progress with the model \"{model}\"...