Skip to main content

parse_reference

Function parse_reference 

Source
pub fn parse_reference(text: &str) -> Result<Reference, String>
Expand description

Parse what the operator typed into the issue it names.

A bare number names no project, so it always agrees with the clone. A URL names both, and agrees is what holds it to the clone the verb was pointed at.

ยงErrors

A string matching none of the accepted forms, or naming issue zero: no forge numbers an issue zero, and a zero is what a failed parse produces.