Skip to main content

PullLabels

Trait PullLabels 

Source
pub trait PullLabels: Send + Sync {
    // Required method
    fn resolve(&self, owner: &str, repo: &str, names: &[String]) -> Vec<Value>;
}
Expand description

Resolve label names on a pull request to {name, color} objects.

Integration point for the labels tier, which owns the per-repository label set. The default PlainLabels returns each name with a neutral colour.

Required Methods§

Source

fn resolve(&self, owner: &str, repo: &str, names: &[String]) -> Vec<Value>

Resolve names for <owner>/<repo>.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§