MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / github_issue_number

Function github_issue_number

crates/opencode-cli/src/main.rs:4185–4193  ·  view source on GitHub ↗
(event_name: &str, payload: &serde_json::Value)

Source from the content-addressed store, hash-verified

4183}
4184
4185fn github_issue_number(event_name: &str, payload: &serde_json::Value) -> Option<u64> {
4186 match event_name {
4187 "issue_comment" | "issues" => github_u64(payload, &["issue", "number"]),
4188 "pull_request" | "pull_request_review_comment" => {
4189 github_u64(payload, &["pull_request", "number"])
4190 }
4191 _ => None,
4192 }
4193}
4194
4195fn github_is_pr_context(event_name: &str, payload: &serde_json::Value) -> bool {
4196 match event_name {

Callers 1

handle_github_commandFunction · 0.85

Calls 1

github_u64Function · 0.85

Tested by

no test coverage detected