MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / github_mentions

Function github_mentions

crates/opencode-cli/src/main.rs:4206–4213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4204}
4205
4206fn 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
4215fn 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()) {

Callers 1

Calls 2

is_emptyMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected