pub struct GithubIssuesSourceConfig {
pub repo: String,
pub token_env: String,
pub label_mappings: HashMap<String, String>,
}Expand description
Configuration for one GitHub Issues source.
Why: teams using GitHub Issues as their tracker gain the same signal-boost
as JIRA users — a commit referencing #123 fix login becomes bug_fix
when the linked issue has a bug label.
What: holds the repo slug (or env var), the token env var, and a
label-to-category mapping.
Test: see tests::github_issues_config_deserializes.
Fields§
§repo: StringRepository slug in owner/name form, e.g. "acme/widgets".
When a commit references #NNN (without an org/repo#NNN qualifier),
this is the repo used to look up the issue.
token_env: StringName of the environment variable carrying the GitHub API token. The token is read at runtime — never stored in config files.
When the env var is unset, external lookups for this source are
skipped with a tracing::warn!.
label_mappings: HashMap<String, String>Maps GitHub label names to TGA category strings.
Example:
label_mappings:
bug: bug_fix
enhancement: new_feature
dependencies: tech_debt_refactoringTrait Implementations§
Source§impl Clone for GithubIssuesSourceConfig
impl Clone for GithubIssuesSourceConfig
Source§fn clone(&self) -> GithubIssuesSourceConfig
fn clone(&self) -> GithubIssuesSourceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GithubIssuesSourceConfig
impl Debug for GithubIssuesSourceConfig
Source§impl<'de> Deserialize<'de> for GithubIssuesSourceConfig
impl<'de> Deserialize<'de> for GithubIssuesSourceConfig
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>,
Source§impl PartialEq for GithubIssuesSourceConfig
impl PartialEq for GithubIssuesSourceConfig
Source§fn eq(&self, other: &GithubIssuesSourceConfig) -> bool
fn eq(&self, other: &GithubIssuesSourceConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for GithubIssuesSourceConfig
impl Serialize for GithubIssuesSourceConfig
impl StructuralPartialEq for GithubIssuesSourceConfig
Auto Trait Implementations§
impl Freeze for GithubIssuesSourceConfig
impl RefUnwindSafe for GithubIssuesSourceConfig
impl Send for GithubIssuesSourceConfig
impl Sync for GithubIssuesSourceConfig
impl Unpin for GithubIssuesSourceConfig
impl UnsafeUnpin for GithubIssuesSourceConfig
impl UnwindSafe for GithubIssuesSourceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more