Skip to main content

claim

Function claim 

Source
pub fn claim(layout: &Layout, id: &str, force: bool) -> Result<String>
Expand description

Take an issue: move it to STARTED and stamp the claim.

A claim held by another identity is refused unless force, which records the takeover in the logbook rather than losing it.

ยงErrors

Returns an error if id is not in the corpus, the issue is DONE or CANCELLED, another identity holds it and force is false, or the file cannot be rewritten.