Skip to main content

ephemeris_forge_forgejo/config/
labels.rs

1use ephemeris_forge::LabelColor;
2use facet::Facet;
3
4/// Repository labels.
5pub(crate) type Labels = ephemeris_forge::Labels<Label>;
6
7/// Desired settings for one label.
8#[derive(Clone, Debug, Eq, Facet, PartialEq)]
9#[facet(deny_unknown_fields)]
10pub struct Label {
11    /// The label color.
12    pub color: LabelColor,
13    /// The label description. Null and empty mean the same.
14    pub description: Option<String>,
15    /// Whether the label is scoped, so that an issue holds one label per
16    /// scope. The scope is the part of the name before the last slash.
17    pub exclusive: bool,
18    /// Whether the label is archived and cannot be added to new issues.
19    pub is_archived: bool,
20}