:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(signals): add report status to inbox sidebar (#104793)
Mikayla Thompson2a06676c5992
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex bc08e7ca3fff..2d5c12186289 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -8832,6 +8832,10 @@ snapshots:hash: v1.k794b7964.6d25562ee11eb3e2bc5ecf6aedff4fe058299de21db40a241d22ec348566b5e7.1QCX8kAJWvaKf9rBXs7O4S-9Nh9tbQR6zn2IL5ehZposcenes-app-inbox-detail--run-ready--light:hash: v1.k794b7964.2a7035c21bc396a44a81e18222d5f9a50f8ca650d47bc387b27a4c8ab72db7aa.BZ_qNCVpWT1v8Ov60-xHUyKzBwvr1BPNjoLZgjobYw4+ scenes-app-inbox-detail--status-block--dark:+ hash: v1.k794b7964.148f4a5544247ea0b41319a952c04ac691cad44ea68cf54111d14fd2ed966d4e.oAn41_hwgL3qIFsXmxxXIDR8qaRZbw6dCeFA75ygoUY+ scenes-app-inbox-detail--status-block--light:+ hash: v1.k794b7964.d12f5544875dc4c95d22c295cd2cbf5ce68f0966037f289994fc8a3471c96cb1.6wrKJibO7lFJlx8oJdLLciZmA_mBZuiJ45tJvBV6ErYscenes-app-inbox-detail-follow-up-checks--every-state--dark:hash: v1.k794b7964.db65be880b7ea05e9d05d47e6a55dd09cf96097fe23069a4ad58bee132d4a29f.5Ujk0VN9aRboEk8AT2Et2hucpwBeKvQ_cQVOhpPhDLMscenes-app-inbox-detail-follow-up-checks--every-state--light:diff --git a/posthog/egress/github/README.md b/posthog/egress/github/README.mdindex d39d26480905..63dc950635bf 100644--- a/posthog/egress/github/README.md+++ b/posthog/egress/github/README.md@@ -26,7 +26,7 @@ All three budgets use the default reserve ladder.Deferrable background callers construct their client on the `BATCH` lane (`GitHubIntegration(integration, source=..., priority=Priority.BATCH)`; `api_request` also takes a per-call override).A shed sweep stops for the cycle and resumes on the next scheduled run.A caller that walks pages, such as the warehouse source, paces with `github_installation_pace_seconds` instead of getting denied.-The warehouse source's page fetches run on `BATCH`, while its repository validation and webhook management run on `NORMAL`, because a person waits on them. Customer Analytics feature-request link and resume lookups also run on `NORMAL` because an editor waits for the current issue state.+The warehouse source's page fetches run on `BATCH`, while its repository validation and webhook management run on `NORMAL`, because a person waits on them. Customer Analytics feature-request link and resume lookups also run on `NORMAL` because an editor waits for the current issue state. Signals refreshes the stored pull request review decision from GitHub webhooks on `BATCH`; the inbox can keep the last known value when the lane is shed and update it after a retry.The `BATCH` floor on the `core` resource is **demand-responsive**, because a reserve is only worth holding against traffic that exists.An installation whose only consumer is a bulk one (a warehouse backfill of a repository nothing else touches) would otherwise forfeit 30% of its hourly budget to contention that never arrives, and the hourly budget is what decides whether a large backfill finishes in one run.diff --git a/products/signals/backend/facade/github.py b/products/signals/backend/facade/github.pyindex 2a72bd6aa828..791fd2a8e7c2 100644--- a/products/signals/backend/facade/github.py+++ b/products/signals/backend/facade/github.py@@ -1,5 +1,7 @@"""Signals' GitHub identity and report-assignment integration."""+from django.utils.dateparse import parse_datetime+import structlogfrom posthog.github.installations import installation_team_ids@@ -25,13 +27,47 @@ def update_pull_request_assignments(payload: dict, pr_state: str | None) -> Nonenumber = pull_request.get("number")if number is None:raise ValueError("Missing pull request number")+ raw_merged_at = pull_request.get("merged_at")+ merged_at = parse_datetime(raw_merged_at) if isinstance(raw_merged_at, str) else Noneupdate_assignments_for_pull_request(team_ids=team_ids,repository=repository,pr_number=int(number),pr_state=pr_state,+ merged_at=merged_at,)except (TypeError, ValueError):logger.warning("github_pr_webhook_signal_assignment_missing_number", pr_url=pull_request.get("html_url"))except Exception:logger.exception("github_pr_webhook_signal_assignment_update_failed", pr_url=pull_request.get("html_url"))+++def refresh_pull_request_review_decisions(payload: dict) -> None:+ repository = (payload.get("repository") or {}).get("full_name")+ team_ids = installation_team_ids(payload)+ pull_request = payload.get("pull_request") or {}+ number = pull_request.get("number")+ if not repository or not team_ids or number is None:+ return+ try:+ pr_number = int(number)+ except (TypeError, ValueError):+ logger.warning("github_pr_webhook_signal_review_decision_missing_number", pr_url=pull_request.get("html_url"))+ return++ from products.signals.backend.tasks import refresh_pull_request_review_decision++ for team_id in sorted(set(team_ids)):+ try:+ refresh_pull_request_review_decision.delay(+ team_id=team_id,+ repository=repository,+ pr_number=pr_number,+ )+ except Exception:+ logger.exception(+ "github_pr_webhook_signal_review_decision_enqueue_failed",+ team_id=team_id,+ repository=repository,+ pr_number=pr_number,+ )diff --git a/products/signals/backend/implementation_pr.py b/products/signals/backend/implementation_pr.pyindex 340a12e05470..08206d6f1d5f 100644--- a/products/signals/backend/implementation_pr.py+++ b/products/signals/backend/implementation_pr.py@@ -114,6 +114,8 @@ class ImplementationPr:url: strmerged: boolstate: str = SignalReportAssignment.PrState.UNKNOWN+ review_decision: str | None = None+ merged_at: datetime | None = Nonetask_id: str | None = Noneactor_kind: str | None = Noneid: str | None = None@@ -156,6 +158,8 @@ def fetch_implementation_prs_for_reports(report_ids: list[str], *, team_id: int)id=str(linked_pr.id),url=linked_pr.url,state=linked_pr.state,+ review_decision=linked_pr.review_decision,+ merged_at=linked_pr.merged_at,merged=linked_pr.state == "merged",task_id=str(link.task_id) if link.task_id else None,actor_kind=link.actor_kind,diff --git a/products/signals/backend/migrations/0148_signalreportpullrequest_review_details.py b/products/signals/backend/migrations/0148_signalreportpullrequest_review_details.pynew file mode 100644index 000000000000..8fa221849367--- /dev/null+++ b/products/signals/backend/migrations/0148_signalreportpullrequest_review_details.py@@ -0,0 +1,31 @@+# Generated by Django 5.2.17 on 2026-09-22 18:42++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("signals", "0147_alter_signalreportaction_type"),+ ]++ operations = [+ migrations.AddField(+ model_name="signalreportpullrequest",+ name="merged_at",+ field=models.DateTimeField(blank=True, null=True),+ ),+ migrations.AddField(+ model_name="signalreportpullrequest",+ name="review_decision",+ field=models.CharField(+ blank=True,+ choices=[+ ("approved", "Approved"),+ ("changes_requested", "Changes requested"),+ ("review_required", "Review required"),+ ],+ max_length=20,+ null=True,+ ),+ ),+ ]diff --git a/products/signals/backend/migrations/max_migration.txt b/products/signals/backend/migrations/max_migration.txtindex e50982bfab95..6c98711e5aa7 100644--- a/products/signals/backend/migrations/max_migration.txt+++ b/products/signals/backend/migrations/max_migration.txt@@ -1 +1 @@-0147_alter_signalreportaction_type+0148_signalreportpullrequest_review_detailsdiff --git a/products/signals/backend/models.py b/products/signals/backend/models.pyindex af570c39fbf6..4cba872d6fbf 100644--- a/products/signals/backend/models.py+++ b/products/signals/backend/models.py@@ -1082,11 +1082,18 @@ class SignalReportSlackThread(UUIDModel):class SignalReportPullRequest(TeamScopedRootMixin, UUIDModel):State = SignalReportAssignment.PrState+ class ReviewDecision(models.TextChoices):+ APPROVED = "approved", "Approved"+ CHANGES_REQUESTED = "changes_requested", "Changes requested"+ REVIEW_REQUIRED = "review_required", "Review required"+team = models.ForeignKey("posthog.Team", on_delete=models.CASCADE, db_constraint=False, related_name="+")repository = models.CharField(max_length=200)number = models.PositiveBigIntegerField()url = models.URLField(max_length=2048)state = models.CharField(max_length=10, choices=State, default=State.UNKNOWN)+ review_decision = models.CharField(max_length=20, choices=ReviewDecision, null=True, blank=True)+ merged_at = models.DateTimeField(null=True, blank=True)checked_at = models.DateTimeField(null=True, blank=True)created_at = models.DateTimeField(auto_now_add=True)updated_at = models.DateTimeField(auto_now=True)diff --git a/products/signals/backend/pull_requests.py b/products/signals/backend/pull_requests.pyindex a9f32542a918..8dcf36922dde 100644--- a/products/signals/backend/pull_requests.py+++ b/products/signals/backend/pull_requests.py@@ -1,4 +1,5 @@from collections.abc import Sequence+from datetime import datetimefrom enum import StrEnumfrom functools import partialfrom typing import TYPE_CHECKING@@ -211,7 +212,9 @@ def import_report_pull_requests(report: SignalReport, *, notify_reviewers: bool).update(actor_kind=assignment.actor_kind, actor_agent=assignment.actor_agent)-def update_pull_request_state(*, team_id: int, repository: str, number: int, state: str) -> int:+def update_pull_request_state(+ *, team_id: int, repository: str, number: int, state: str, merged_at: datetime | None = None+) -> int:report_ids = SignalReportArtefact.objects.filter(team_id=team_id,pull_request__team_id=team_id,@@ -235,8 +238,24 @@ def update_pull_request_state(*, team_id: int, repository: str, number: int, stareturn 0if pr.state != SignalReportPullRequest.State.MERGED:pr.state = state+ update_fields = ["state", "checked_at", "updated_at"]+ if merged_at is not None:+ pr.merged_at = merged_at+ update_fields.append("merged_at")pr.checked_at = timezone.now()- pr.save(update_fields=["state", "checked_at", "updated_at"])+ pr.save(update_fields=update_fields)for report in reports:apply_report_completion(report)return len(reports)+++def update_pull_request_review_decision(+ *, team_id: int, repository: str, number: int, review_decision: str | None+) -> int:+ if review_decision is not None and review_decision not in SignalReportPullRequest.ReviewDecision.values:+ return 0+ return (+ SignalReportPullRequest.objects.for_team(team_id)+ .filter(repository=repository.lower(), number=number)+ .update(review_decision=review_decision, updated_at=timezone.now())+ )diff --git a/products/signals/backend/report_assignments.py b/products/signals/backend/report_assignments.pyindex 42c4ab37002b..07cfb41835e8 100644--- a/products/signals/backend/report_assignments.py+++ b/products/signals/backend/report_assignments.py@@ -2,6 +2,7 @@from __future__ import annotations+from datetime import datetimefrom typing import TypedDictfrom django.db import transaction@@ -458,6 +459,7 @@ def update_assignments_for_pull_request(repository: str,pr_number: int,pr_state: str,+ merged_at: datetime | None = None,) -> int:from products.signals.backend.implementation_pr import (fetch_implementation_prs_for_reports,@@ -495,6 +497,10 @@ def update_assignments_for_pull_request(claim_id=pr.claim_id,)updated += update_pull_request_state(- team_id=team_id, repository=repository, number=pr_number, state=pr_state+ team_id=team_id,+ repository=repository,+ number=pr_number,+ state=pr_state,+ merged_at=merged_at,)return updateddiff --git a/products/signals/backend/serializers.py b/products/signals/backend/serializers.pyindex fd50eb962b52..d497e9938345 100644--- a/products/signals/backend/serializers.py+++ b/products/signals/backend/serializers.py@@ -52,6 +52,7 @@ from .models import (SignalReportArtefact,SignalReportAssignment,SignalReportCheck,+ SignalReportPullRequest,SignalReportRefund,SignalReportTrackerIssue,SignalReportWorkState,@@ -519,6 +520,18 @@ class SignalReportPullRequestSerializer(serializers.Serializer):choices=SignalReportAssignment.PrState.choices, help_text="Latest known GitHub state.")merged = serializers.BooleanField(help_text="Whether this PR merged.")+ review_decision = serializers.ChoiceField(+ choices=SignalReportPullRequest.ReviewDecision.choices,+ allow_null=True,+ help_text=(+ "Current GitHub code review decision: approved, changes_requested, or review_required. "+ "Null when GitHub does not provide a review decision."+ ),+ )+ merged_at = serializers.DateTimeField(+ allow_null=True,+ help_text="When GitHub reports that this pull request merged. Null when it has not merged or the time is unavailable.",+ )attached_by = serializers.SerializerMethodField(help_text="Who first attached this PR to the report, not necessarily its GitHub author. Task-output links identify the originating task.")diff --git a/products/signals/backend/tasks.py b/products/signals/backend/tasks.pyindex 6084a808a892..3654e57d17ed 100644--- a/products/signals/backend/tasks.py+++ b/products/signals/backend/tasks.py@@ -13,10 +13,12 @@ from slack_sdk.errors import SlackApiErrorfrom posthog.cloud_utils import get_cached_instance_licensefrom posthog.egress.github.transport import GitHubEgressBudgetExhausted, GitHubRateLimitError+from posthog.egress.limiter.policies import Priorityfrom posthog.event_usage import groupsfrom posthog.exceptions_capture import capture_exceptionfrom posthog.models import Team-from posthog.models.integration import SlackIntegration+from posthog.models.github_integration_base import GitHubIntegrationError+from posthog.models.integration import GitHubIntegration, SlackIntegrationfrom posthog.models.organization import BillingPeriodfrom posthog.models.scoping import with_team_scopefrom posthog.ph_client import ph_scoped_capture@@ -30,6 +32,7 @@ from products.signals.backend.implementation_dispatch_tasks import (from products.signals.backend.implementation_pr import PrCloseReason, close_implementation_pr_for_reportfrom products.signals.backend.models import (SignalReport,+ SignalReportPullRequest,SignalReportRefund,SignalReportTrackerIssue,SignalRepositoryAreaActivity,@@ -39,6 +42,7 @@ from products.signals.backend.models import ()from products.signals.backend.pr_origin import write_origin_sectionfrom products.signals.backend.pull_request_body import BodyEditOutcome+from products.signals.backend.pull_requests import update_pull_request_review_decisionfrom products.signals.backend.report_generation.repo_activity import (ACTIVITY_KEEP_WARM_WINDOW,rebuild_repository_activity,@@ -69,6 +73,51 @@ from products.tasks.backend.facade.repo_activity import RepositoryCommitActivitylogger = structlog.get_logger(__name__)+@shared_task(+ name="products.signals.backend.tasks.refresh_pull_request_review_decision",+ ignore_result=True,+ autoretry_for=(GitHubEgressBudgetExhausted, GitHubIntegrationError, GitHubRateLimitError),+ retry_backoff=True,+ max_retries=5,+)+@with_team_scope()+def refresh_pull_request_review_decision(team_id: int, repository: str, pr_number: int) -> None:+ pr = (+ SignalReportPullRequest.objects.for_team(team_id)+ .filter(repository=repository.lower(), number=pr_number)+ .first()+ )+ if pr is None:+ return++ github = GitHubIntegration.first_for_team_repository(+ team_id,+ repository,+ source="signals_pr_review_decision",+ priority=Priority.BATCH,+ )+ if github is None:+ return+ snapshot = github.get_pull_request_snapshot(pr.url)+ if not snapshot.get("success"):+ logger.warning(+ "signals_pr_review_decision_refresh_failed",+ team_id=team_id,+ repository=repository,+ pr_number=pr_number,+ error=snapshot.get("error"),+ )+ return+ raw_review_decision = snapshot.get("review_decision")+ review_decision = raw_review_decision if isinstance(raw_review_decision, str) else None+ update_pull_request_review_decision(+ team_id=team_id,+ repository=repository,+ number=pr_number,+ review_decision=review_decision,+ )++@shared_task(bind=True,ignore_result=True,diff --git a/products/signals/backend/test/test_backfill_report_pull_requests.py b/products/signals/backend/test/test_backfill_report_pull_requests.pyindex 44f617f9bbdc..5a2e4714359f 100644--- a/products/signals/backend/test/test_backfill_report_pull_requests.py+++ b/products/signals/backend/test/test_backfill_report_pull_requests.py@@ -1,7 +1,8 @@+from datetime import UTC, datetimefrom io import StringIOfrom posthog.test.base import BaseTest-from unittest.mock import patch+from unittest.mock import MagicMock, patchfrom django.core.management import call_command@@ -17,6 +18,25 @@ from products.tasks.backend.models import Task, TaskRunclass TestBackfillReportPullRequests(BaseTest):+ def test_refreshes_stored_review_decision(self) -> None:+ from products.signals.backend.tasks import refresh_pull_request_review_decision++ pr = SignalReportPullRequest.objects.for_team(self.team.id).create(+ team=self.team,+ repository="example/app",+ number=42,+ url="https://github.com/example/app/pull/42",+ state="open",+ )+ github = MagicMock()+ github.get_pull_request_snapshot.return_value = {"success": True, "review_decision": "approved"}++ with patch("posthog.models.integration.GitHubIntegration.first_for_team_repository", return_value=github):+ refresh_pull_request_review_decision(team_id=self.team.id, repository="example/app", pr_number=42)++ pr.refresh_from_db()+ assert pr.review_decision == "approved"+def test_backfill_is_resumable_and_preserves_verified_state_and_ownership(self) -> None:reports = [SignalReport.objects.create(team=self.team, status="ready", title="Report", summary="Summary")@@ -123,12 +143,18 @@ class TestBackfillReportPullRequests(BaseTest):with transaction.atomic():import_report_pull_requests(report)apply_report_completion(report)+ merged_at = datetime(2026, 6, 11, 10, tzinfo=UTC)+ SignalReportPullRequest.objects.for_team(self.team.id).filter(number=1).update(+ review_decision="approved", merged_at=merged_at+ )report.refresh_from_db()assert report.status == "ready"prs = fetch_implementation_prs_for_reports([str(report.id)], team_id=self.team.id)[str(report.id)]assert len(prs) == 2assert prs[0].state == "merged"assert prs[1].task_id == str(task.id)+ assert prs[0].review_decision == "approved"+ assert prs[0].merged_at == merged_atassert (prs[1].id== fetch_implementation_prs_for_reports([str(report.id)], team_id=self.team.id)[str(report.id)][1].id@@ -144,6 +170,8 @@ class TestBackfillReportPullRequests(BaseTest):view = SignalReportViewSet(request=Request(APIRequestFactory().get("/", {"pull_request_id": prs[1].id})))assert view._resolve_report_pr_reference(report) == ("example/sdk", 2)assert SignalReportPullRequestSerializer(prs[1]).data["attached_by"]["task_id"] == str(task.id)+ assert SignalReportPullRequestSerializer(prs[0]).data["review_decision"] == "approved"+ assert SignalReportPullRequestSerializer(prs[0]).data["merged_at"] == "2026-06-11T10:00:00Z"assert SignalReportArtefact.objects.filter(report=report, type="pull_request").count() == 1assert report_ids_for_implementation_pr(team_id=self.team.id, repository="example/sdk", pr_number=2) == [str(report.id)diff --git a/products/signals/backend/test/test_github_facade.py b/products/signals/backend/test/test_github_facade.pynew file mode 100644index 000000000000..b18288173236--- /dev/null+++ b/products/signals/backend/test/test_github_facade.py@@ -0,0 +1,24 @@+from unittest.mock import call, patch++from django.test import SimpleTestCase++from products.signals.backend.facade.github import refresh_pull_request_review_decisions+++class TestRefreshPullRequestReviewDecisions(SimpleTestCase):+ @patch("products.signals.backend.tasks.refresh_pull_request_review_decision.delay")+ @patch("products.signals.backend.facade.github.installation_team_ids", return_value=[1, 2])+ def test_enqueues_remaining_teams_after_one_failure(self, _team_ids, enqueue) -> None:+ enqueue.side_effect = [RuntimeError("queue unavailable"), None]++ refresh_pull_request_review_decisions(+ {+ "repository": {"full_name": "example/app"},+ "pull_request": {"number": 42},+ }+ )++ assert enqueue.call_args_list == [+ call(team_id=1, repository="example/app", pr_number=42),+ call(team_id=2, repository="example/app", pr_number=42),+ ]diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 1b07b79a1d0b..bcc14996697c 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -239,6 +239,20 @@ export const SignalReportAssignmentPrStateEnumApi = {Merged: 'merged',} as const+/**+ * * `approved` - Approved+ * * `changes_requested` - Changes requested+ * * `review_required` - Review required+ */+export type SignalReportPullRequestReviewDecisionEnumApi =+ (typeof SignalReportPullRequestReviewDecisionEnumApi)[keyof typeof SignalReportPullRequestReviewDecisionEnumApi]++export const SignalReportPullRequestReviewDecisionEnumApi = {+ Approved: 'approved',+ ChangesRequested: 'changes_requested',+ ReviewRequired: 'review_required',+} as const+export type SignalActorKindEnumApi = (typeof SignalActorKindEnumApi)[keyof typeof SignalActorKindEnumApi]export const SignalActorKindEnumApi = {@@ -296,6 +310,17 @@ export interface SignalReportPullRequestApi {state: SignalReportAssignmentPrStateEnumApi/** Whether this PR merged. */merged: boolean+ /** Current GitHub code review decision: approved, changes_requested, or review_required. Null when GitHub does not provide a review decision.+ *+ * * `approved` - Approved+ * * `changes_requested` - Changes requested+ * * `review_required` - Review required */+ review_decision: SignalReportPullRequestReviewDecisionEnumApi | null+ /**+ * When GitHub reports that this pull request merged. Null when it has not merged or the time is unavailable.+ * @nullable+ */+ merged_at: string | null/** Who first attached this PR to the report, not necessarily its GitHub author. Task-output links identify the originating task. */readonly attached_by: SignalReportPullRequestAttachedByApi | null/**diff --git a/products/signals/frontend/inbox/__mocks__/inboxMocks.ts b/products/signals/frontend/inbox/__mocks__/inboxMocks.tsindex 9c7f57b4cca9..f6487ee9e50f 100644--- a/products/signals/frontend/inbox/__mocks__/inboxMocks.ts+++ b/products/signals/frontend/inbox/__mocks__/inboxMocks.ts@@ -43,6 +43,8 @@ export function makeReport(overrides: Partial<SignalReport> = {}): SignalReportoverrides.implementation_pr_state ??(overrides.implementation_pr_merged ? 'merged' : 'unknown'),merged: overrides.implementation_pr_merged ?? false,+ review_decision: null,+ merged_at: null,claim_id: null,attached_at: BASE_DATE,attached_by: {diff --git a/products/signals/frontend/inbox/components/detail/ArtefactLogList.stories.tsx b/products/signals/frontend/inbox/components/detail/ArtefactLogList.stories.tsxindex 58d8bceaaa2d..1aacd80425ef 100644--- a/products/signals/frontend/inbox/components/detail/ArtefactLogList.stories.tsx+++ b/products/signals/frontend/inbox/components/detail/ArtefactLogList.stories.tsx@@ -30,6 +30,8 @@ const meta: Meta<typeof ArtefactLogList> = {url,state: index === 0 ? 'closed' : index === 1 ? 'unknown' : 'open',merged: false,+ review_decision: null,+ merged_at: null,claim_id: null,attached_at: null,attached_by: { kind: 'task', user: null, agent: null, task_id: index === 2 ? 'new-task' : 'old-task' },diff --git a/products/signals/frontend/inbox/components/detail/ArtefactLogList.test.tsx b/products/signals/frontend/inbox/components/detail/ArtefactLogList.test.tsxindex 7a3fae6e823f..9ff255a240d9 100644--- a/products/signals/frontend/inbox/components/detail/ArtefactLogList.test.tsx+++ b/products/signals/frontend/inbox/components/detail/ArtefactLogList.test.tsx@@ -139,6 +139,8 @@ describe('ArtefactLogList', () => {url,state: 'unknown',merged: false,+ review_decision: null,+ merged_at: null,claim_id: null,attached_at: null,attached_by: { kind: 'task', user: null, agent: null, task_id: 'task-3' },diff --git a/products/signals/frontend/inbox/components/detail/InboxDetail.stories.tsx b/products/signals/frontend/inbox/components/detail/InboxDetail.stories.tsxindex b469f0de07c1..b849a8295e52 100644--- a/products/signals/frontend/inbox/components/detail/InboxDetail.stories.tsx+++ b/products/signals/frontend/inbox/components/detail/InboxDetail.stories.tsx@@ -26,6 +26,7 @@ import { SignalReport, SignalReportStatus } from '../../types'import { AgentRunDetail } from './AgentRunDetail'import { ReportDetail } from './ReportDetail'import { ReportDetailLegacy } from './ReportDetailLegacy'+import { ReportStatusSection } from './ReportStatusSection'const mixedPrChecks = {checks: [@@ -150,6 +151,57 @@ function Frame({ children }: { children: React.ReactNode }): JSX.Element {return <div className="bg-primary min-h-screen py-4">{children}</div>}+export const StatusBlock: Story = {+ render: () => {+ const report = makeReport({+ status: SignalReportStatus.READY,+ priority: 'P1',+ actionability: 'immediately_actionable',+ implementation_pr_url: 'https://github.com/PostHog/posthog/pull/12002',+ implementation_pr_state: 'open',+ pull_requests: [+ {+ id: '019e64b8-0000-7000-8000-000000000101',+ url: 'https://github.com/PostHog/posthog/pull/12002',+ state: 'open',+ merged: false,+ review_decision: 'approved',+ merged_at: null,+ claim_id: null,+ attached_at: null,+ attached_by: null,+ },+ {+ id: '019e64b8-0000-7000-8000-000000000102',+ url: 'https://github.com/PostHog/posthog-js/pull/12003',+ state: 'merged',+ merged: true,+ review_decision: 'approved',+ merged_at: '2026-06-11T10:00:00Z',+ claim_id: null,+ attached_at: null,+ attached_by: null,+ },+ ],+ assignee: {+ claim_id: '019e64b8-0000-7000-8000-000000000099',+ kind: 'agent',+ user: null,+ task_id: null,+ agent: 'Build agent',+ claimed_at: '2026-06-11T10:00:00Z',+ },+ })+ return (+ <Frame>+ <div className="w-[26rem] border border-primary bg-surface-primary p-5">+ <ReportStatusSection report={report} />+ </div>+ </Frame>+ )+ },+}+export const Report: Story = {render: () => (<Frame>@@ -224,6 +276,8 @@ export const PullRequestStack: Story = {url: `https://github.com/example/app/pull/${number}`,state: number === 1 ? 'merged' : 'open',merged: number === 1,+ review_decision: number === 1 ? 'approved' : 'review_required',+ merged_at: number === 1 ? '2026-06-11T10:00:00Z' : null,claim_id: null,attached_at: null,attached_by: null,diff --git a/products/signals/frontend/inbox/components/detail/ReportDetail.tsx b/products/signals/frontend/inbox/components/detail/ReportDetail.tsxindex 993dff4c61d2..554ec19b92a4 100644--- a/products/signals/frontend/inbox/components/detail/ReportDetail.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportDetail.tsx@@ -7,9 +7,9 @@ import {IconEllipsis,IconExternal,IconSearch,- IconTrends,IconSidebarClose,IconSidebarOpen,+ IconTrends,} from '@posthog/icons'import { LemonButton, LemonTabs, LemonSelect } from '@posthog/lemon-ui'@@ -54,6 +54,7 @@ import { useReportDetailActions } from './ReportDetailActions'import { ReportFeedbackFooter } from './ReportFeedbackFooter'import { ReportImpactMetrics } from './ReportImpactMetrics'import { ReportPrimaryMetric } from './ReportPrimaryMetric'+import { ReportStatusSection } from './ReportStatusSection'import { ReportSummaryBody } from './ReportSummaryBody'import { ReportTasksSection } from './ReportTasksSection'import { SuggestedReviewersSection } from './SuggestedReviewersSection'@@ -192,11 +193,10 @@ interface InboxDetailFrameProps {* Shared chrome for the Report and Pull request detail bodies. A back link and the actions sit on* one row over a bordered container: the evidence rail on the left (Evidence first, then the PR* checks, reviewers, runs, and activity), and the report summary on the right under its own- * "Report summary" header. The summary's title stands alone; the priority, the size of the change, and- * the created/updated times head the "Files changed" tab, where a reviewer weighs the change. The- * status and actionability chips stay off the page because the inbox section the report came from- * already says what they said. The rail can be hidden (a persisted preference) so the report column,- * and above all the diff, takes the full width.+ * "Report summary" header. The status section collects the report and pull request state. The+ * summary's title stands alone; the priority, the size of the change, and the created/updated times+ * head the "Files changed" tab, where a reviewer weighs the change. The rail can be hidden (a+ * persisted preference) so the report column, and above all the diff, takes the full width.* AgentRunDetail keeps its own layout.*/export function InboxDetailFrame({@@ -409,6 +409,7 @@ export function InboxDetailFrame({<aside className={DETAIL_ASIDE_COLLAPSED_CLASS}>{showRailButton}</aside>) : (<aside className={DETAIL_ASIDE_CLASS}>+ <ReportStatusSection report={report} rightSlot={hideRailButton} />{/* The observation leads, then the evidence its claims rest on. */}{primaryMetric && (<DetailSection@@ -416,7 +417,6 @@ export function InboxDetailFrame({title="Observation"collapsibleonToggleCollapsed={captureSectionToggle('observation')}- rightSlot={hideRailButton}><ReportPrimaryMetric reportId={report.id} metric={primaryMetric} /></DetailSection>@@ -427,7 +427,6 @@ export function InboxDetailFrame({title="Evidence"collapsibleonToggleCollapsed={captureSectionToggle('evidence')}- rightSlot={primaryMetric ? undefined : hideRailButton}>{reportSignalsLoading && reportSignals === null ? (<EvidenceSkeleton count={evidenceCount} />diff --git a/products/signals/frontend/inbox/components/detail/ReportStatusSection.test.tsx b/products/signals/frontend/inbox/components/detail/ReportStatusSection.test.tsxnew file mode 100644index 000000000000..7f6b3c2f9890--- /dev/null+++ b/products/signals/frontend/inbox/components/detail/ReportStatusSection.test.tsx@@ -0,0 +1,115 @@+import '@testing-library/jest-dom'++import { render, screen } from '@testing-library/react'++import { makeReport } from '../../__mocks__/inboxMocks'+import { SignalReportStatus } from '../../types'+import { ReportStatusSection } from './ReportStatusSection'++describe('ReportStatusSection', () => {+ it('shows each pull request with one fact per row', () => {+ const report = makeReport({+ status: SignalReportStatus.READY,+ priority: 'P1',+ actionability: 'immediately_actionable',+ pull_requests: [+ {+ id: 'pr-1',+ url: 'https://github.com/example/app/pull/42',+ state: 'open',+ merged: false,+ review_decision: 'approved',+ merged_at: null,+ claim_id: null,+ attached_at: null,+ attached_by: null,+ },+ {+ id: 'pr-2',+ url: 'https://github.com/example/sdk/pull/7',+ state: 'merged',+ merged: true,+ review_decision: 'approved',+ merged_at: '2026-06-11T12:00:00Z',+ claim_id: null,+ attached_at: null,+ attached_by: null,+ },+ ],+ assignee: {+ claim_id: 'claim-1',+ kind: 'agent',+ user: null,+ task_id: null,+ agent: 'Build agent',+ claimed_at: '2026-06-11T10:00:00Z',+ },+ })++ render(<ReportStatusSection report={report} />)++ expect(screen.getByText('Report status')).toBeInTheDocument()+ expect(screen.getByText('Ready')).toBeInTheDocument()+ expect(screen.queryByText('Work')).not.toBeInTheDocument()+ expect(screen.queryByText('In review')).not.toBeInTheDocument()+ expect(screen.getByText('In progress by')).toBeInTheDocument()+ expect(screen.getByText('Build agent')).toBeInTheDocument()+ expect(screen.getByText('P1')).toBeInTheDocument()+ expect(screen.queryByText('Actionability')).not.toBeInTheDocument()+ expect(screen.getByText('example/app#42')).toBeInTheDocument()+ expect(screen.getByText('example/sdk#7')).toBeInTheDocument()+ expect(screen.getByText('Open')).toBeInTheDocument()+ expect(screen.getAllByText('Merged')).toHaveLength(2)+ expect(screen.getByText('Approved')).toBeInTheDocument()+ expect(screen.getByText(/Jun.*11.*2026/)).toBeInTheDocument()+ })++ it.each(['user', 'task', 'system'] as const)('hides %s claims', (kind) => {+ const { container } = render(+ <ReportStatusSection+ report={makeReport({+ assignee: {+ claim_id: 'claim-1',+ kind,+ user: null,+ task_id: null,+ agent: null,+ claimed_at: '2026-06-11T10:00:00Z',+ },+ })}+ />+ )++ expect(container).not.toHaveTextContent('In progress by')+ })++ it('hides pull request rows when the report has no pull request', () => {+ const { container } = render(<ReportStatusSection report={makeReport({ pull_requests: [] })} />)++ expect(container).not.toHaveTextContent('Pull request')+ })++ it('does not imply approval when GitHub has no review decision', () => {+ render(+ <ReportStatusSection+ report={makeReport({+ pull_requests: [+ {+ id: 'pr-1',+ url: 'https://github.com/example/app/pull/42',+ state: 'open',+ merged: false,+ review_decision: null,+ merged_at: null,+ claim_id: null,+ attached_at: null,+ attached_by: null,+ },+ ],+ })}+ />+ )++ expect(screen.getByText('Review unavailable')).toBeInTheDocument()+ })+})diff --git a/products/signals/frontend/inbox/components/detail/ReportStatusSection.tsx b/products/signals/frontend/inbox/components/detail/ReportStatusSection.tsxnew file mode 100644index 000000000000..368ece82fd5c--- /dev/null+++ b/products/signals/frontend/inbox/components/detail/ReportStatusSection.tsx@@ -0,0 +1,116 @@+import { type ReactNode } from 'react'++import { IconInfo } from '@posthog/icons'++import { TZLabel } from 'lib/components/TZLabel'+import { Link } from 'lib/lemon-ui/Link'++import { SignalReport } from '../../types'+import { parsePrUrlParts, safeHttpUrl } from '../../utils/reportPresentation'+import { ReportPullRequest, reportPullRequests } from '../../utils/reportPullRequests'+import { STATUS_LABELS } from '../badges/SignalReportStatusBadge'+import { DetailSection } from './DetailSection'++const PULL_REQUEST_STATES: Record<ReportPullRequest['state'], string> = {+ unknown: 'Status unavailable',+ draft: 'Draft',+ open: 'Open',+ closed: 'Closed',+ merged: 'Merged',+}++const REVIEW_DECISIONS: Record<NonNullable<ReportPullRequest['review_decision']>, string> = {+ approved: 'Approved',+ changes_requested: 'Changes requested',+ review_required: 'Review required',+}++function StatusRow({ label, children }: { label: string; children: ReactNode }): JSX.Element {+ return (+ <div className="flex min-h-6 items-center justify-between gap-3">+ <dt className="text-xs text-secondary">{label}</dt>+ <dd className="m-0 flex min-w-0 flex-wrap items-center justify-end gap-1.5 text-right text-xs">+ {children}+ </dd>+ </div>+ )+}++function externalClaimLabel(report: SignalReport): string | null {+ const assignee = report.assignee+ if (assignee?.kind !== 'agent') {+ return null+ }+ return assignee.agent?.trim() || 'External agent'+}++export function ReportStatusSection({+ report,+ rightSlot,+}: {+ report: SignalReport+ rightSlot?: ReactNode+}): JSX.Element {+ const externalClaim = externalClaimLabel(report)+ const pullRequests = reportPullRequests(report)+ const trackerUrl = safeHttpUrl(report.tracker_issue_url ?? '')++ return (+ <DetailSection icon={<IconInfo />} title="Status" rightSlot={rightSlot}>+ <dl className="m-0 flex flex-col gap-2">+ <StatusRow label="Report status">{STATUS_LABELS[report.status] ?? report.status}</StatusRow>+ {externalClaim && <StatusRow label="In progress by">{externalClaim}</StatusRow>}+ {report.priority && <StatusRow label="Priority">{report.priority}</StatusRow>}+ {pullRequests.map((pullRequest, index) => {+ const prUrl = safeHttpUrl(pullRequest.url)+ const prRef = prUrl ? parsePrUrlParts(prUrl) : null+ const reviewDecision = pullRequest.review_decision+ ? REVIEW_DECISIONS[pullRequest.review_decision]+ : 'Review unavailable'+ const isOpen = pullRequest.state === 'open' || pullRequest.state === 'draft'++ return (+ <div+ key={pullRequest.id ?? pullRequest.url}+ className={+ index === 0+ ? 'contents'+ : 'contents [&>div:first-child]:border-t [&>div:first-child]:border-primary [&>div:first-child]:pt-3'+ }+ >+ <StatusRow label="Pull request">+ {prRef && prUrl ? (+ <Link to={prUrl} target="_blank">+ {prRef.repoSlug}#{prRef.number}+ </Link>+ ) : (+ <span className="text-tertiary">Unavailable</span>+ )}+ </StatusRow>+ <StatusRow label="Status">+ {PULL_REQUEST_STATES[pullRequest.state] ?? PULL_REQUEST_STATES.unknown}+ </StatusRow>+ {isOpen && <StatusRow label="Review">{reviewDecision}</StatusRow>}+ {pullRequest.state === 'merged' && (+ <StatusRow label="Merged">+ {pullRequest.merged_at ? (+ <TZLabel time={pullRequest.merged_at} timestampStyle="absolute" />+ ) : (+ <span className="text-tertiary">Time unavailable</span>+ )}+ </StatusRow>+ )}+ </div>+ )+ })}+ {trackerUrl && (+ <StatusRow label="Tracker issue">+ <Link to={trackerUrl} target="_blank">+ {report.tracker_issue_reference || 'Open issue'}+ </Link>+ </StatusRow>+ )}+ </dl>+ </DetailSection>+ )+}diff --git a/products/signals/frontend/inbox/logics/inboxReportDetailLogic.test.ts b/products/signals/frontend/inbox/logics/inboxReportDetailLogic.test.tsindex 8d1c7b7a921a..e646cf97b647 100644--- a/products/signals/frontend/inbox/logics/inboxReportDetailLogic.test.ts+++ b/products/signals/frontend/inbox/logics/inboxReportDetailLogic.test.ts@@ -193,6 +193,8 @@ describe('inboxReportDetailLogic', () => {url: `https://github.com/example/repo/pull/${n}`,state: 'open',merged: false,+ review_decision: null,+ merged_at: null,claim_id: null,attached_at: null,attached_by: null,@@ -340,6 +342,8 @@ describe('inboxReportDetailLogic', () => {url: `https://github.com/example/app/pull/${n === 'a' ? 1 : 2}`,state: 'open',merged: false,+ review_decision: null,+ merged_at: null,claim_id: null,attached_at: null,attached_by: null,diff --git a/products/signals/frontend/inbox/utils/reportPullRequests.test.ts b/products/signals/frontend/inbox/utils/reportPullRequests.test.tsindex 2c9bf29be98a..7804e32f0f14 100644--- a/products/signals/frontend/inbox/utils/reportPullRequests.test.ts+++ b/products/signals/frontend/inbox/utils/reportPullRequests.test.ts@@ -13,6 +13,8 @@ describe('report pull request consumers', () => {url,state,merged: state === 'merged',+ review_decision: null,+ merged_at: state === 'merged' ? '2026-06-11T10:00:00Z' : null,claim_id: null,attached_at: null,attached_by: null,diff --git a/products/signals/frontend/inbox/utils/reportPullRequests.ts b/products/signals/frontend/inbox/utils/reportPullRequests.tsindex 84594fe677d1..ad9b5ffc769f 100644--- a/products/signals/frontend/inbox/utils/reportPullRequests.ts+++ b/products/signals/frontend/inbox/utils/reportPullRequests.ts@@ -1,3 +1,5 @@+import type { SignalReportPullRequestApi } from 'products/signals/frontend/generated/api.schemas'+import type { SignalReport } from '../types'type ReportWithPullRequests = Pick<@@ -10,6 +12,8 @@ export type ReportPullRequest = {url: stringstate: 'unknown' | 'draft' | 'open' | 'closed' | 'merged'merged: boolean+ review_decision: SignalReportPullRequestApi['review_decision']+ merged_at: SignalReportPullRequestApi['merged_at']}export function reportPullRequests(report: ReportWithPullRequests | null | undefined): readonly ReportPullRequest[] {@@ -23,6 +27,8 @@ export function reportPullRequests(report: ReportWithPullRequests | null | undefurl: report.implementation_pr_url,state: report.implementation_pr_state ?? (report.implementation_pr_merged ? 'merged' : 'unknown'),merged: report.implementation_pr_merged ?? false,+ review_decision: null,+ merged_at: null,},]: []@@ -33,7 +39,7 @@ export function primaryReportPullRequest(report: ReportWithPullRequests | null |return ([...reportPullRequests(report)].sort((a, b) => rank(a) - rank(b) || a.url.toLowerCase().localeCompare(b.url.toLowerCase())- )[0] ?? { id: null, url: '', state: 'unknown', merged: false }+ )[0] ?? { id: null, url: '', state: 'unknown', merged: false, review_decision: null, merged_at: null })}diff --git a/products/tasks/backend/tests/test_webhooks.py b/products/tasks/backend/tests/test_webhooks.pyindex 02d5af04a5a1..6a7bc4b1e35a 100644--- a/products/tasks/backend/tests/test_webhooks.py+++ b/products/tasks/backend/tests/test_webhooks.py@@ -994,8 +994,8 @@ class TestGitHubPRWebhook(TestCase):self.assertEqual(response.status_code, 202)@patch("posthog.ingress.github.provider.get_instance_setting")- def test_ignored_pr_actions(self, mock_get_secret):- """Test that PR actions other than opened/closed are acknowledged but ignored."""+ @patch("products.tasks.backend.webhooks.refresh_pull_request_review_decisions")+ def test_ignored_pr_actions(self, refresh_review_decisions, mock_get_secret):mock_get_secret.return_value = self.webhook_secretfor action in ["edited", "synchronize", "labeled"]:@@ -1010,6 +1010,9 @@ class TestGitHubPRWebhook(TestCase):response = self._make_webhook_request(payload)self.assertEqual(response.status_code, 202, f"Failed for action: {action}")+ self.assertEqual(refresh_review_decisions.call_count, 1)+ self.assertEqual(refresh_review_decisions.call_args.args[0]["action"], "synchronize")+def test_webhook_secret_not_configured(self):"""Test that webhook returns 500 if secret is not configured."""with patch("posthog.ingress.github.provider.get_instance_setting", return_value=None):@@ -1151,13 +1154,18 @@ class TestGitHubPRReviewWebhook(TestCase):)@patch("posthog.ingress.github.provider.get_instance_setting")@patch("posthog.github.pull_request_events.posthoganalytics.capture")- def test_review_events_not_captured(self, _name, reviewer, action, mock_capture, mock_get_secret):+ @patch("products.tasks.backend.webhooks.refresh_pull_request_review_decisions")+ def test_review_events_not_captured(+ self, _name, reviewer, action, refresh_review_decisions, mock_capture, mock_get_secret+ ):mock_get_secret.return_value = self.webhook_secret- response = self._make_review_webhook_request(self._review_payload(reviewer, action=action))+ payload = self._review_payload(reviewer, action=action)+ response = self._make_review_webhook_request(payload)self.assertEqual(response.status_code, 202)mock_capture.assert_not_called()+ refresh_review_decisions.assert_called_once_with(payload)class TestGitHubPRWebhookResolvesSignalReports(TestCase):@@ -1273,6 +1281,7 @@ class TestGitHubPRWebhookResolvesSignalReports(TestCase):"pull_request": {"html_url": pr_url,"merged": merged,+ "merged_at": "2026-09-20T12:30:00Z" if merged else None,"number": int(pr_url.rstrip("/").split("/")[-1]),},"repository": {"full_name": "posthog/posthog"},@@ -1343,17 +1352,14 @@ class TestGitHubPRWebhookResolvesSignalReports(TestCase):self.report.refresh_from_db()self.assignment.refresh_from_db()self.assertEqual(self.report.status, expected_status)+ implementation_pr = fetch_implementation_pr_state_for_reports([str(self.report.id)], team_id=self.team.id)[+ str(self.report.id)+ ]+ self.assertEqual(implementation_pr.state, expected_pr_state)+ self.assertIs(implementation_pr.merged, merged)self.assertEqual(- fetch_implementation_pr_state_for_reports([str(self.report.id)], team_id=self.team.id)[- str(self.report.id)- ].state,- expected_pr_state,- )- self.assertIs(- fetch_implementation_pr_state_for_reports([str(self.report.id)], team_id=self.team.id)[- str(self.report.id)- ].merged,- merged,+ implementation_pr.merged_at.isoformat() if implementation_pr.merged_at else None,+ "2026-09-20T12:30:00+00:00" if merged else None,)@patch("posthog.ingress.github.provider.get_instance_setting")diff --git a/products/tasks/backend/webhooks.py b/products/tasks/backend/webhooks.pyindex f370b3b536d8..00f949a9e40d 100644--- a/products/tasks/backend/webhooks.py+++ b/products/tasks/backend/webhooks.py@@ -11,7 +11,10 @@ from posthog.models.organization import OrganizationMembershipfrom posthog.models.team.team import Teamfrom posthog.models.user_integration import UserIntegration-from products.signals.backend.facade.github import update_pull_request_assignments+from products.signals.backend.facade.github import (+ refresh_pull_request_review_decisions,+ update_pull_request_assignments,+)from products.tasks.backend.constants import PR_LOOP_ENABLED_STATE_KEYfrom products.tasks.backend.facade.api import post_pr_created_thread_update, signal_workflow_completionfrom products.tasks.backend.facade.cancellation import cancel_task_run@@ -206,6 +209,16 @@ def handle_pull_request_event(payload: dict) -> None:logger.warning("github_pr_webhook_no_pr_url", action=action)return+ refresh_review_decision = action in {+ "opened",+ "reopened",+ "ready_for_review",+ "converted_to_draft",+ "synchronize",+ "review_requested",+ "review_request_removed",+ }+pr_state = pr_state_for_action(action, pull_request)analytics_event: GitHubWebhookAnalyticsEvent | None = Noneif action == "opened":@@ -224,6 +237,8 @@ def handle_pull_request_event(payload: dict) -> None:# not worth an analytics event.event_action = action or ""else:+ if refresh_review_decision:+ refresh_pull_request_review_decisions(payload)logger.debug("github_pr_webhook_ignored_action", action=action, pr_url=pr_url)return@@ -274,6 +289,8 @@ def handle_pull_request_event(payload: dict) -> None:_record_run_pr_state(task_run, pr_state)update_pull_request_assignments(payload, pr_state)+ if refresh_review_decision:+ refresh_pull_request_review_decisions(payload)if analytics_event is not None:_capture_task_pr_event(payload, task_run, analytics_event)@@ -299,7 +316,8 @@ def handle_pull_request_review_event(payload: dict) -> None:changes_requested, commented), attributed to the reviewer when their GitHublogin resolves to an org member."""- if payload.get("action") != "submitted":+ action = payload.get("action")+ if action not in {"submitted", "dismissed"}:returnreview = payload.get("review") or {}@@ -310,6 +328,11 @@ def handle_pull_request_review_event(payload: dict) -> None:logger.warning("github_pr_review_webhook_no_pr_url")return+ refresh_pull_request_review_decisions(payload)++ if action != "submitted":+ return+# StampHog, ReviewHog, and CI apps review every self-driving PR, so without this# filter the event stream is mostly bots and the human review signal drowns.if (reviewer.get("type") or "").lower() == "bot":diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex c5b772cd344a..d39f8e81834f 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -64601,6 +64601,20 @@ export namespace Schemas {Merged: 'merged',} as const;+ /**+ * * `approved` - Approved+ * * `changes_requested` - Changes requested+ * * `review_required` - Review required+ */+ export type SignalReportPullRequestReviewDecisionEnum = typeof SignalReportPullRequestReviewDecisionEnum[keyof typeof SignalReportPullRequestReviewDecisionEnum];+++ export const SignalReportPullRequestReviewDecisionEnum = {+ Approved: 'approved',+ ChangesRequested: 'changes_requested',+ ReviewRequired: 'review_required',+ } as const;+export interface SignalReportPullRequestAttachedBy {/** Kind of actor who attached the PR. Null when legacy attribution is unknown.*@@ -64641,6 +64655,17 @@ export namespace Schemas {state: SignalReportAssignmentPrStateEnum;/** Whether this PR merged. */merged: boolean;+ /** Current GitHub code review decision: approved, changes_requested, or review_required. Null when GitHub does not provide a review decision.+ *+ * * `approved` - Approved+ * * `changes_requested` - Changes requested+ * * `review_required` - Review required */+ review_decision: SignalReportPullRequestReviewDecisionEnum | null;+ /**+ * When GitHub reports that this pull request merged. Null when it has not merged or the time is unavailable.+ * @nullable+ */+ merged_at: string | null;/** Who first attached this PR to the report, not necessarily its GitHub author. Task-output links identify the originating task. */readonly attached_by: SignalReportPullRequestAttachedBy | null;/**