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

Function github_inline

crates/opencode-cli/src/main.rs:4251–4257  ·  view source on GitHub ↗
(value: Option<&str>)

Source from the content-addressed store, hash-verified

4249}
4250
4251fn github_inline(value: Option<&str>) -> String {
4252 value
4253 .unwrap_or_default()
4254 .trim()
4255 .replace('\r', "")
4256 .replace('\n', " ")
4257}
4258
4259fn github_footer(owner: &str, repo: &str) -> String {
4260 if let Ok(run_id) = std::env::var("GITHUB_RUN_ID") {

Callers 2

build_prompt_data_for_prFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected