Skip to main content

parse_issue_arg

Function parse_issue_arg 

Source
pub fn parse_issue_arg(
    raw: &str,
    default_project: Option<&str>,
) -> Result<ItemRef>
Expand description

Parses one <ISSUE> CLI argument into an ItemRef.

Accepts, in order:

  • a full GitHub issue URL: https://github.com/OWNER/REPO/issues/N
  • owner/repo#N
  • #N or bare N, resolved against default_project (the -C/--repo checkout’s own owner/repo) — an error naming the missing context if default_project is None.