diff --git a/src/bot.rs b/src/bot.rs index 0486691..22b10c2 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -97,14 +97,15 @@ impl Bot { Ok(()) } - #[instrument(skip(self), fields(repo, pr))] + #[instrument(skip(self, webhook), fields(repo, pr))] pub async fn exec(&self, webhook: WebhookType) { match &webhook { WebhookType::Review(p) => { tracing::Span::current().record("repo", &p.repository.full_name); tracing::Span::current().record("pr", p.pull_request.number); } - } + }; + let exec_result = match webhook { WebhookType::Review(review_payload) => crate::bot_actions::review::exec_review( &self.gitea_api,