MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / task_headline

Function task_headline

atomic-repository/src/triage/report.rs:871–876  ·  view source on GitHub ↗

First non-empty line of a task's directive body, trimmed — the walkthrough narrates with headlines, not whole bodies.

(text: &str)

Source from the content-addressed store, hash-verified

869/// First non-empty line of a task's directive body, trimmed — the walkthrough
870/// narrates with headlines, not whole bodies.
871fn task_headline(text: &str) -> &str {
872 text.lines()
873 .map(str::trim)
874 .find(|l| !l.is_empty())
875 .unwrap_or("")
876}
877
878/// Group the candidate modifications into ordered semantic layers.
879///

Callers 1

build_walkthroughFunction · 0.85

Calls 2

linesMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected