corvix.enrichment.providers.github_latest_comment ================================================= .. py:module:: corvix.enrichment.providers.github_latest_comment .. autoapi-nested-parse:: GitHub latest-comment enrichment provider. Attributes ---------- .. autoapisummary:: corvix.enrichment.providers.github_latest_comment._TEST_REPORT_LINK_ONLY_RE Classes ------- .. autoapisummary:: corvix.enrichment.providers.github_latest_comment.GitHubLatestCommentProvider Functions --------- .. autoapisummary:: corvix.enrichment.providers.github_latest_comment._is_str_object_map corvix.enrichment.providers.github_latest_comment._extract_latest_comment_url corvix.enrichment.providers.github_latest_comment._is_ci_only corvix.enrichment.providers.github_latest_comment._is_test_report_link_only Module Contents --------------- .. py:data:: _TEST_REPORT_LINK_ONLY_RE .. py:function:: _is_str_object_map(value: object) -> TypeIs[dict[str, object]] .. py:class:: GitHubLatestCommentProvider Enriches comment notifications with the latest comment metadata. .. py:attribute:: timeout_seconds :type: float :value: 10.0 .. py:attribute:: name :type: str :value: 'github.latest_comment' .. py:method:: enrich(notification: corvix.domain.Notification, client: corvix.enrichment.base.JsonFetchClient, ctx: corvix.enrichment.base.EnrichmentContext) -> dict[str, object] Return latest comment metadata under the provider namespace. .. py:function:: _extract_latest_comment_url(thread_payload: collections.abc.Mapping[str, object]) -> str | None .. py:function:: _is_ci_only(body: str) -> bool .. py:function:: _is_test_report_link_only(body: str) -> bool