Skip to main content

labels_from_pr_metadata

Function labels_from_pr_metadata 

Source
pub fn labels_from_pr_metadata(
    title: &str,
    file_paths: &[String],
) -> Vec<String>
Expand description

Extract labels from PR metadata (title and file paths).

Parses conventional commit prefix from PR title and maps file paths to scope labels. Returns a vector of label names to apply to the PR.

§Arguments

  • title - PR title (may contain conventional commit prefix)
  • file_paths - List of file paths changed in the PR

§Returns

Vector of label names to apply