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

Function github_summary_title

crates/opencode-cli/src/main.rs:4995–5006  ·  view source on GitHub ↗
(response: &str, fallback: &str)

Source from the content-addressed store, hash-verified

4993}
4994
4995fn github_summary_title(response: &str, fallback: &str) -> String {
4996 let first = response
4997 .lines()
4998 .map(str::trim)
4999 .find(|line| !line.is_empty())
5000 .unwrap_or(fallback)
5001 .trim();
5002 if first.is_empty() {
5003 return fallback.to_string();
5004 }
5005 truncate_text(first, 72)
5006}
5007
5008fn github_create_pr(
5009 owner: &str,

Callers 1

handle_github_commandFunction · 0.85

Calls 3

findMethod · 0.80
is_emptyMethod · 0.80
truncate_textFunction · 0.70

Tested by

no test coverage detected