()
| 4204 | } |
| 4205 | |
| 4206 | fn github_mentions() -> Vec<String> { |
| 4207 | std::env::var("MENTIONS") |
| 4208 | .unwrap_or_else(|_| "/opencode,/oc".to_string()) |
| 4209 | .split(',') |
| 4210 | .map(|m| m.trim().to_ascii_lowercase()) |
| 4211 | .filter(|m| !m.is_empty()) |
| 4212 | .collect() |
| 4213 | } |
| 4214 | |
| 4215 | fn normalize_github_event_payload(raw: serde_json::Value) -> serde_json::Value { |
| 4216 | if let Some(payload_obj) = raw.get("payload").and_then(|v| v.as_object()) { |
no test coverage detected