pub struct TodosConfig {
pub default_to: Option<String>,
pub auto_yes: Option<bool>,
pub prompt_sync_after_scan: Option<bool>,
pub linear_labels: Option<Vec<String>>,
pub github_labels: Option<Vec<String>>,
pub linear_assignee: Option<String>,
pub kinds: Option<Vec<String>>,
pub priority_by_kind: Option<BTreeMap<String, i32>>,
pub annotate_source: Option<bool>,
}Expand description
Project/global automation settings for xbp todos scan|sync.
Project (.xbp/xbp.yaml) overrides global (~/.xbp/config.yaml).
todos:
default_to: both # linear | github | both
auto_yes: true # skip multi-select when syncing
prompt_sync_after_scan: true
linear_labels: [xbp-todo, tech-debt]
github_labels: [xbp-todo]
linear_assignee: me
kinds: [TODO, FIXME, HACK]
priority_by_kind:
FIXME: 1
HACK: 2
TODO: 3
XXX: 4
annotate_source: false # stamp `// XLX-99 (#42)` onto source TODO lines after createFields§
§default_to: Option<String>Default sync target: linear, github, or both.
auto_yes: Option<bool>When true, xbp todos sync files all candidates without multi-select.
prompt_sync_after_scan: Option<bool>After xbp todos scan, interactively offer to run sync (default true).
linear_labels: Option<Vec<String>>Linear label names applied to created issues (default: xbp-todo).
github_labels: Option<Vec<String>>GitHub label names applied to created issues (default: xbp-todo).
linear_assignee: Option<String>Linear assignee for created issues (me, name, email, or id).
kinds: Option<Vec<String>>Only sync these marker kinds (default: all of TODO/FIXME/XXX/HACK).
priority_by_kind: Option<BTreeMap<String, i32>>Map marker kind → Linear priority (0–4).
annotate_source: Option<bool>When true, append created issue identifiers onto the source TODO line.
Trait Implementations§
Source§impl Clone for TodosConfig
impl Clone for TodosConfig
Source§fn clone(&self) -> TodosConfig
fn clone(&self) -> TodosConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TodosConfig
impl Debug for TodosConfig
Source§impl Default for TodosConfig
impl Default for TodosConfig
Source§fn default() -> TodosConfig
fn default() -> TodosConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TodosConfig
impl<'de> Deserialize<'de> for TodosConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TodosConfig
Source§impl PartialEq for TodosConfig
impl PartialEq for TodosConfig
Source§impl Serialize for TodosConfig
impl Serialize for TodosConfig
impl StructuralPartialEq for TodosConfig
Auto Trait Implementations§
impl Freeze for TodosConfig
impl RefUnwindSafe for TodosConfig
impl Send for TodosConfig
impl Sync for TodosConfig
impl Unpin for TodosConfig
impl UnsafeUnpin for TodosConfig
impl UnwindSafe for TodosConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.