corvix.enrichment.providers.github_latest_comment

GitHub latest-comment enrichment provider.

Attributes

Classes

GitHubLatestCommentProvider

Enriches comment notifications with the latest comment metadata.

Functions

_is_str_object_map(→ TypeIs[dict[str, object]])

_extract_latest_comment_url(→ str | None)

_is_ci_only(→ bool)

_is_test_report_link_only(→ bool)

Module Contents

corvix.enrichment.providers.github_latest_comment._is_str_object_map(value: object) TypeIs[dict[str, object]][source][source]
class corvix.enrichment.providers.github_latest_comment.GitHubLatestCommentProvider[source][source]

Enriches comment notifications with the latest comment metadata.

timeout_seconds: float = 10.0[source][source]
name: str = 'github.latest_comment'[source][source]
enrich(notification: corvix.domain.Notification, client: corvix.enrichment.base.JsonFetchClient, ctx: corvix.enrichment.base.EnrichmentContext) dict[str, object][source][source]

Return latest comment metadata under the provider namespace.

corvix.enrichment.providers.github_latest_comment._extract_latest_comment_url(thread_payload: collections.abc.Mapping[str, object]) str | None[source][source]
corvix.enrichment.providers.github_latest_comment._is_ci_only(body: str) bool[source][source]