Add webhook already handled check
ci/woodpecker/push/tests Pipeline failed
ci/woodpecker/pr/tests Pipeline failed

Fix all tests
Add woodpecker ci (tests + release)
This commit is contained in:
2026-06-12 19:56:32 +00:00
parent 3c32cd20b6
commit 433021d607
13 changed files with 221 additions and 17 deletions
+7 -1
View File
@@ -1,3 +1,5 @@
use std::sync::Arc;
use crate::{bot::Bot, gitea::WebhookType, state::AppState};
use dotenvy::dotenv;
@@ -61,7 +63,11 @@ async fn run() -> anyhow::Result<()> {
let bot = Bot::new(config.clone())?;
let (tx, rx) = tokio::sync::mpsc::channel::<WebhookType>(config.bot_max_concurrent * 2);
let app_state = AppState { bot_tx: tx, config };
let app_state = AppState {
bot_tx: tx,
bot: bot.clone(),
config,
};
let signal = async {
let mut sigterm = signal(SignalKind::terminate())?;