Skip to content

: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.

feat(error-tracking): ask old linear connections to reconnect for webhooks (#127594)

Aleksander Błaszkiewiczfb64e6cb8a4a
diff --git a/frontend/src/lib/components/CyclotronJob/integrations/IntegrationChoice.tsx b/frontend/src/lib/components/CyclotronJob/integrations/IntegrationChoice.tsx
index 5cccb4cb20e2..7fd40c51b9bd 100644
--- a/frontend/src/lib/components/CyclotronJob/integrations/IntegrationChoice.tsx
+++ b/frontend/src/lib/components/CyclotronJob/integrations/IntegrationChoice.tsx
@@ -194,7 +194,7 @@ export function IntegrationChoice({
return (
<>
{integrationKind ? (
- <IntegrationView schema={schema} integration={integrationKind} suffix={button} />
+ <IntegrationView schema={schema} integration={integrationKind} suffix={button} hideWebhookReconnect />
) : valueIsMissing ? (
<div className="flex flex-col gap-2">
<LemonBanner type="warning">
diff --git a/frontend/src/lib/integrations/IntegrationView.tsx b/frontend/src/lib/integrations/IntegrationView.tsx
index 2b7317d43188..37f7bcdb69df 100644
--- a/frontend/src/lib/integrations/IntegrationView.tsx
+++ b/frontend/src/lib/integrations/IntegrationView.tsx
@@ -13,6 +13,7 @@ import { TeamMembershipLevel } from 'lib/constants'
import { dayjs } from 'lib/dayjs'
import { GitHubRepoSummary } from 'lib/integrations/GitHubRepoSummary'
import { IntegrationScopesWarning } from 'lib/integrations/IntegrationScopesWarning'
+import { LemonBannerAction } from 'lib/lemon-ui/LemonBanner/LemonBanner'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -20,16 +21,18 @@ import { urls } from 'scenes/urls'
import { IntegrationType } from '~/types'
import { integrationAuthorizeUrl, integrationsLogic, reconnectReturnUrl } from './integrationsLogic'
-import { DARK_MODE_INVERT_ICON_KINDS, getIntegrationNameFromKind } from './utils'
+import { DARK_MODE_INVERT_ICON_KINDS, IntegrationConnectSurface, getIntegrationNameFromKind } from './utils'
export function IntegrationView({
integration,
suffix,
schema,
+ hideWebhookReconnect,
}: {
integration: IntegrationType
suffix?: JSX.Element
schema?: { requiredScopes?: string }
+ hideWebhookReconnect?: boolean
}): JSX.Element {
const { deleteIntegration } = useActions(integrationsLogic)
const { reportIntegrationConnectClicked } = useActions(eventUsageLogic)
@@ -39,6 +42,17 @@ export function IntegrationView({
minimumAccessLevel: TeamMembershipLevel.Admin,
})
+ const reconnectAction = (surface: IntegrationConnectSurface): LemonBannerAction => ({
+ children: 'Reconnect',
+ disableClientSideRouting: true,
+ to: integrationAuthorizeUrl({
+ kind: integration.kind,
+ next: reconnectReturnUrl(window.location.pathname, window.location.search),
+ }),
+ onClick: () => reportIntegrationConnectClicked(integration.kind, integration.kind, surface),
+ disabledReason: restrictedReason,
+ })
+
const errors = (integration.errors && integration.errors?.split(',')) || []
const { githubRepositoriesLoading, getGitHubRepositories, getGitHubRepositoriesTotal } =
useValues(integrationsLogic)
@@ -195,29 +209,21 @@ export function IntegrationView({
</div>
) : errors.length > 0 ? (
<div className="p-2">
- <LemonBanner
- type="error"
- action={{
- children: 'Reconnect',
- disableClientSideRouting: true,
- to: integrationAuthorizeUrl({
- kind: integration.kind,
- next: reconnectReturnUrl(window.location.pathname, window.location.search),
- }),
- onClick: () =>
- reportIntegrationConnectClicked(
- integration.kind,
- integration.kind,
- 'error_banner_reconnect'
- ),
- disabledReason: restrictedReason,
- }}
- >
+ <LemonBanner type="error" action={reconnectAction('error_banner_reconnect')}>
{errors[0] === 'TOKEN_REFRESH_FAILED'
? 'Authentication token could not be refreshed. You can reconnect this account or disconnect it and connect a different one.'
: `There was an error with this integration: ${errors[0]}`}
</LemonBanner>
</div>
+ ) : integration.needs_webhook_reconnect && !hideWebhookReconnect ? (
+ <div className="p-2">
+ <LemonBanner type="info" action={reconnectAction('webhook_banner_reconnect')}>
+ <span>
+ Error tracking issues can now sync their status with linked Linear tickets. To turn this on,
+ switch to <strong>{integration.display_name}</strong> in Linear and reconnect.
+ </span>
+ </LemonBanner>
+ </div>
) : (
<IntegrationScopesWarning integration={integration} schema={schema} />
)}
diff --git a/frontend/src/lib/integrations/integrationsLogic.ts b/frontend/src/lib/integrations/integrationsLogic.ts
index 66cab074e540..9caf172dd604 100644
--- a/frontend/src/lib/integrations/integrationsLogic.ts
+++ b/frontend/src/lib/integrations/integrationsLogic.ts
@@ -446,6 +446,7 @@ export interface integrationsLogicActions {
| 'twitter-ads'
| 'vercel'
| 'youtube-analytics'
+ needs_webhook_reconnect?: boolean | null | undefined
}[],
payload?: {
callback: ((integration: IntegrationType) => void) | undefined
@@ -511,6 +512,7 @@ export interface integrationsLogicActions {
| 'twitter-ads'
| 'vercel'
| 'youtube-analytics'
+ needs_webhook_reconnect?: boolean | null | undefined
}[]
payload?: {
callback: ((integration: IntegrationType) => void) | undefined
diff --git a/frontend/src/lib/integrations/utils.ts b/frontend/src/lib/integrations/utils.ts
index 50277e330046..1aa35ee6fd5b 100644
--- a/frontend/src/lib/integrations/utils.ts
+++ b/frontend/src/lib/integrations/utils.ts
@@ -87,6 +87,7 @@ export type IntegrationConnectSurface =
| 'visual_review_settings'
| 'install_approved_banner'
| 'unavailable_banner_reconnect'
+ | 'webhook_banner_reconnect'
export const ICONS: Record<IntegrationKind, any> = {
slack: IconSlack,
diff --git a/frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts b/frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts
index b2a0db8c5794..7af4c84116d3 100644
--- a/frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts
+++ b/frontend/src/scenes/settings/organization/organizationIntegrationsLogic.ts
@@ -140,6 +140,7 @@ export interface organizationIntegrationsLogicActions {
| 'twitter-ads'
| 'vercel'
| 'youtube-analytics'
+ needs_webhook_reconnect?: boolean | null | undefined
}[],
payload?: any
) => {
@@ -201,6 +202,7 @@ export interface organizationIntegrationsLogicActions {
| 'twitter-ads'
| 'vercel'
| 'youtube-analytics'
+ needs_webhook_reconnect?: boolean | null | undefined
}[]
payload?: any
}
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index 61d98181739f..2d2ec9af1f61 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -5744,6 +5744,8 @@ export interface IntegrationType {
installation_shared?: IntegrationConfigApi['installation_shared']
/** GitHub only. `unavailable` once the App was removed or suspended on GitHub. */
installation_status?: IntegrationConfigApi['installation_status']
+ /** Linear only. True when the workspace last authorized PostHog before the app had webhooks. */
+ needs_webhook_reconnect?: IntegrationConfigApi['needs_webhook_reconnect']
}
export interface EmailIntegrationDomainGroupedType {
diff --git a/posthog/api/integration.py b/posthog/api/integration.py
index 70e54076944f..c5b59fa62202 100644
--- a/posthog/api/integration.py
+++ b/posthog/api/integration.py
@@ -848,6 +848,12 @@ class IntegrationSerializer(serializers.ModelSerializer, UserAccessControlSerial
"and PostHog can no longer mint tokens for it; `connected` otherwise."
)
)
+ needs_webhook_reconnect = serializers.SerializerMethodField(
+ help_text=(
+ "Linear only, null otherwise. True when the workspace last authorized PostHog before the Linear app "
+ "had webhooks, so linked error tracking issues may not follow their tickets until someone reconnects it."
+ )
+ )
class Meta:
model = Integration
@@ -863,6 +869,7 @@ class IntegrationSerializer(serializers.ModelSerializer, UserAccessControlSerial
"files_write_requestable",
"installation_shared",
"installation_status",
+ "needs_webhook_reconnect",
]
read_only_fields = [
"id",
@@ -874,6 +881,7 @@ class IntegrationSerializer(serializers.ModelSerializer, UserAccessControlSerial
"files_write_requestable",
"installation_shared",
"installation_status",
+ "needs_webhook_reconnect",
]
@extend_schema_field(serializers.BooleanField())
@@ -906,6 +914,13 @@ class IntegrationSerializer(serializers.ModelSerializer, UserAccessControlSerial
else "connected"
)
+ @extend_schema_field(serializers.BooleanField(allow_null=True))
+ def get_needs_webhook_reconnect(self, obj: Integration) -> bool | None:
+ # A self-hosted instance may never set up the Linear app, and then no reconnect brings webhooks.
+ if obj.kind != "linear" or obj.auth_type != IntegrationAuthType.OAUTH or not settings.LINEAR_APP_WEBHOOK_SECRET:
+ return None
+ return LinearIntegration(obj).authorized_before_webhooks()
+
def validate_kind(self, value: str) -> str:
if value == Integration.IntegrationKind.SLACK_POSTHOG_CODE.value:
raise ValidationError("This integration kind is deprecated and can no longer be created.")
diff --git a/posthog/api/test/test_integration.py b/posthog/api/test/test_integration.py
index aef9fd25770f..90168fcb3821 100644
--- a/posthog/api/test/test_integration.py
+++ b/posthog/api/test/test_integration.py
@@ -4,7 +4,7 @@ import time
import hashlib
from collections.abc import Callable
from contextlib import nullcontext
-from datetime import timedelta
+from datetime import UTC, datetime, timedelta
from typing import Any, cast
from urllib.parse import parse_qs, quote, urlencode, urlparse
from uuid import uuid4
@@ -7067,6 +7067,54 @@ class TestSlackPostHogCodeKindDeprecated:
assert "kind" in serializer.errors
+class TestLinearWebhookReconnectField:
+ @pytest.fixture(autouse=True)
+ def setup_integration(self, db):
+ self.organization = Organization.objects.create(name="Test Org")
+ self.team = Team.objects.create(organization=self.organization, name="Test Team")
+ self.user = User.objects.create_and_join(
+ self.organization, "[email protected]", "test", level=OrganizationMembership.Level.ADMIN
+ )
+
+ @pytest.mark.parametrize(
+ "created_at,config,webhook_secret,expected",
+ [
+ pytest.param("2026-01-01T00:00:00Z", {}, "secret", True, id="connected_before_webhooks"),
+ pytest.param("2026-11-01T00:00:00Z", {}, "secret", False, id="connected_after_webhooks"),
+ pytest.param(
+ "2026-01-01T00:00:00Z",
+ {"authorized_at": int(datetime(2026, 11, 1, tzinfo=UTC).timestamp())},
+ "secret",
+ False,
+ id="reconnected_after_webhooks",
+ ),
+ pytest.param(
+ "2026-01-01T00:00:00Z",
+ {"authorized_at": int(datetime(2026, 2, 1, tzinfo=UTC).timestamp())},
+ "secret",
+ True,
+ id="reconnected_before_webhooks",
+ ),
+ pytest.param("2026-01-01T00:00:00Z", {}, "", None, id="instance_without_the_linear_app_webhook"),
+ ],
+ )
+ def test_needs_webhook_reconnect(
+ self, created_at: str, config: dict, webhook_secret: str, expected: bool | None, client: HttpClient
+ ):
+ with time_machine.travel(created_at, tick=False):
+ integration = Integration.objects.create(
+ team=self.team, kind="linear", integration_id="linear-org-1", config=config, sensitive_config={}
+ )
+
+ client.force_login(self.user)
+ with override_settings(LINEAR_APP_WEBHOOK_SECRET=webhook_secret):
+ response = client.get(f"/api/environments/{self.team.pk}/integrations/?kind=linear")
+
+ assert response.status_code == status.HTTP_200_OK
+ row = next(row for row in response.json()["results"] if row["id"] == integration.id)
+ assert row["needs_webhook_reconnect"] is expected
+
+
class TestGitHubIntegrationListStatusFields:
@pytest.fixture(autouse=True)
def setup_integration(self, db):
@@ -7153,6 +7201,7 @@ class TestGitHubIntegrationListStatusFields:
row = next(row for row in response.json()["results"] if row["id"] == integration.id)
assert row["installation_shared"] is None
assert row["installation_status"] is None
+ assert row["needs_webhook_reconnect"] is None
@patch("posthog.models.github_integration_base.GitHubIntegrationBase.client_request")
def test_list_heals_a_placeholder_account_name(self, mock_client_request, client: HttpClient):
diff --git a/posthog/ingress/linear/README.md b/posthog/ingress/linear/README.md
index fb9acd45c437..c9b5b11c7b0d 100644
--- a/posthog/ingress/linear/README.md
+++ b/posthog/ingress/linear/README.md
@@ -38,6 +38,7 @@ It stays off the credentials service, because every deployment that holds a call
The App's webhook settings subscribe to the `Issue` resource type.
Linear creates the webhook for a workspace when the workspace authorizes the App, so a workspace that authorized it before the webhook settings existed gets deliveries only after it connects again.
+The integration API reports such a connection as `needs_webhook_reconnect`, and the settings page asks for the reconnect.
One Linear App serves both regions.
Its webhook URL names the primary region, `https://eu.posthog.com/webhooks/linear`, so every delivery arrives there first.
diff --git a/posthog/models/integration/linear.py b/posthog/models/integration/linear.py
index 192683808976..ec950c01b9d8 100644
--- a/posthog/models/integration/linear.py
+++ b/posthog/models/integration/linear.py
@@ -4,6 +4,7 @@ import re
import math
import time
from collections.abc import Sequence
+from datetime import UTC, datetime
from typing import Any
import requests
@@ -23,6 +24,13 @@ _ISSUE_IDENTIFIER = re.compile(r"([A-Za-z0-9]+)-([0-9]+)")
_RATE_LIMIT_WINDOW_SECONDS = 3600
_RATE_LIMIT_DEFAULT_WAIT_SECONDS = 60
+# Linear creates a workspace's webhook when the workspace authorizes the app, so an authorization from
+# before the app had webhooks never gets one. Reading webhooks needs the `admin` scope, which this app
+# does not request, so the authorization date is the only signal. Deliveries were arriving by this
+# time, so an authorization after it has a webhook. An earlier one may have one too, and reconnecting
+# it costs the person one click.
+_WEBHOOKS_AVAILABLE_SINCE = datetime(2026, 10, 30, 16, 0, tzinfo=UTC)
+
class LinearIntegrationError(Exception):
"""A Linear read that failed, so the caller retries instead of acting on a guessed answer."""
@@ -54,6 +62,14 @@ class LinearIntegration:
self.integration = model.integration_model(integration)
+ def authorized_before_webhooks(self) -> bool:
+ # A connection without `authorized_at` last authorized before the field existed, so `created_at`
+ # is the only date it has. One that reconnected after `_WEBHOOKS_AVAILABLE_SINCE` but before this
+ # field existed still shows the banner, and its next reconnect writes `authorized_at`.
+ authorized_at = self.integration.config.get("authorized_at")
+ last_authorized = datetime.fromtimestamp(authorized_at, UTC) if authorized_at else self.integration.created_at
+ return last_authorized < _WEBHOOKS_AVAILABLE_SINCE
+
def url_key(self) -> str:
return common.dot_get(self.integration.config, "data.viewer.organization.urlKey")
diff --git a/posthog/models/integration/oauth.py b/posthog/models/integration/oauth.py
index cd947b9fcb20..990b6853e428 100644
--- a/posthog/models/integration/oauth.py
+++ b/posthog/models/integration/oauth.py
@@ -1504,6 +1504,10 @@ class OauthIntegration:
config["expires_in"] = 3600
config["refreshed_at"] = int(time.time())
+ if kind == "linear":
+ # A token refresh rewrites `refreshed_at` and a reconnect keeps `created_at`, so neither says
+ # when the workspace last authorized the app. See `LinearIntegration.authorized_before_webhooks`.
+ config["authorized_at"] = config["refreshed_at"]
integration, created = model.Integration.objects.update_or_create(
team_id=team_id,
diff --git a/posthog/models/test/integration/test_oauth.py b/posthog/models/test/integration/test_oauth.py
index d9af436539bd..4f286bdd339b 100644
--- a/posthog/models/test/integration/test_oauth.py
+++ b/posthog/models/test/integration/test_oauth.py
@@ -33,6 +33,7 @@ from posthog.models.integration import (
POSTHOG_CONNECT_DEFAULT_SCOPES,
POSTHOG_CONNECT_IDENTITY_SCOPES,
Integration,
+ LinearIntegration,
OauthClientCredentials,
OauthIntegration,
oauth_refresh_failure_reason,
@@ -597,6 +598,37 @@ class TestOauthIntegrationModel(BaseTest):
# After the threshold it is expired
assert OauthIntegration(integration).access_token_expired()
+ @patch("posthog.models.integration.oauth.reload_integrations_on_workers")
+ @patch("posthog.models.integration.oauth.requests.post")
+ def test_only_a_reconnect_moves_a_linear_connection_past_the_webhooks_date(self, mock_post, mock_reload):
+ mock_post.return_value.status_code = 200
+ # The token exchange pops fields from the body, so each request needs its own copy.
+ mock_post.return_value.json.side_effect = lambda: {
+ "access_token": "FAKES_ACCESS_TOKEN",
+ "refresh_token": "FAKE_REFRESH_TOKEN",
+ "expires_in": 3600,
+ "data": {"viewer": {"organization": {"id": "linear-org-1", "name": "Acme", "urlKey": "acme"}}},
+ }
+ params = {"code": "code", "state": "next=/projects/test"}
+
+ with self.settings(**self.mock_settings):
+ with time_machine.travel("2026-01-01T12:00:00Z", tick=False):
+ connected = OauthIntegration.integration_from_oauth_response("linear", self.team.id, self.user, params)
+ assert LinearIntegration(connected).authorized_before_webhooks() is True
+
+ with time_machine.travel("2026-11-03T12:00:00Z", tick=False):
+ OauthIntegration(connected).refresh_access_token()
+ connected.refresh_from_db()
+ assert LinearIntegration(connected).authorized_before_webhooks() is True
+
+ with time_machine.travel("2026-11-03T13:00:00Z", tick=False):
+ reconnected = OauthIntegration.integration_from_oauth_response(
+ "linear", self.team.id, self.user, params
+ )
+
+ assert reconnected.id == connected.id
+ assert LinearIntegration(reconnected).authorized_before_webhooks() is False
+
@patch("posthog.models.integration.oauth.reload_integrations_on_workers")
@patch("posthog.models.integration.oauth.requests.post")
def test_refresh_access_token(self, mock_post, mock_reload):
diff --git a/products/desktop/packages/api-client/src/generated.ts b/products/desktop/packages/api-client/src/generated.ts
index 0c97d6dbfa8b..6a3fef4953f6 100644
--- a/products/desktop/packages/api-client/src/generated.ts
+++ b/products/desktop/packages/api-client/src/generated.ts
@@ -12381,6 +12381,10 @@ export namespace Schemas {
* GitHub only, null otherwise. `unavailable` means the App was uninstalled or suspended on GitHub and PostHog can no longer mint tokens for it; `connected` otherwise.
*/
installation_status: InstallationStatusEnum | NullEnum;
+ /**
+ * Linear only, null otherwise. True when the workspace last authorized PostHog before the Linear app had webhooks, so linked error tracking issues may not follow their tickets until someone reconnects it.
+ */
+ needs_webhook_reconnect: boolean | null;
};
/**
* * `burst` - burst
diff --git a/products/integrations/frontend/generated/api.schemas.ts b/products/integrations/frontend/generated/api.schemas.ts
index 06cf71e3a134..485886477f1f 100644
--- a/products/integrations/frontend/generated/api.schemas.ts
+++ b/products/integrations/frontend/generated/api.schemas.ts
@@ -204,6 +204,11 @@ export interface IntegrationConfigApi {
readonly installation_shared: boolean | null
/** GitHub only, null otherwise. `unavailable` means the App was uninstalled or suspended on GitHub and PostHog can no longer mint tokens for it; `connected` otherwise. */
readonly installation_status: InstallationStatusEnumApi | null
+ /**
+ * Linear only, null otherwise. True when the workspace last authorized PostHog before the Linear app had webhooks, so linked error tracking issues may not follow their tickets until someone reconnects it.
+ * @nullable
+ */
+ readonly needs_webhook_reconnect: boolean | null
}
export interface PaginatedIntegrationConfigListApi {
@@ -400,6 +405,11 @@ export interface IntegrationConfigCreateApi {
readonly installation_shared: boolean | null
/** GitHub only, null otherwise. `unavailable` means the App was uninstalled or suspended on GitHub and PostHog can no longer mint tokens for it; `connected` otherwise. */
readonly installation_status: InstallationStatusEnumApi | null
+ /**
+ * Linear only, null otherwise. True when the workspace last authorized PostHog before the Linear app had webhooks, so linked error tracking issues may not follow their tickets until someone reconnects it.
+ * @nullable
+ */
+ readonly needs_webhook_reconnect: boolean | null
}
export interface SlackChannelApi {
@@ -472,6 +482,11 @@ export interface PatchedIntegrationConfigApi {
readonly installation_shared?: boolean | null
/** GitHub only, null otherwise. `unavailable` means the App was uninstalled or suspended on GitHub and PostHog can no longer mint tokens for it; `connected` otherwise. */
readonly installation_status?: InstallationStatusEnumApi | null
+ /**
+ * Linear only, null otherwise. True when the workspace last authorized PostHog before the Linear app had webhooks, so linked error tracking issues may not follow their tickets until someone reconnects it.
+ * @nullable
+ */
+ readonly needs_webhook_reconnect?: boolean | null
}
/**
diff --git a/products/workflows/frontend/Channels/EmailDomain/__mocks__/fakeEmailDomainBackend.ts b/products/workflows/frontend/Channels/EmailDomain/__mocks__/fakeEmailDomainBackend.ts
index e79acef8067f..b1215fc4894e 100644
--- a/products/workflows/frontend/Channels/EmailDomain/__mocks__/fakeEmailDomainBackend.ts
+++ b/products/workflows/frontend/Channels/EmailDomain/__mocks__/fakeEmailDomainBackend.ts
@@ -207,6 +207,7 @@ export class FakeEmailDomainBackend {
files_write_requestable: false,
installation_shared: null,
installation_status: null,
+ needs_webhook_reconnect: null,
}
this.senders.set(sender.id, sender)
if (!this.domains.has(domain)) {
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 0a107e1f122b..8ec925d31867 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -58441,6 +58441,11 @@ export namespace Schemas {
readonly installation_shared: boolean | null;
/** GitHub only, null otherwise. `unavailable` means the App was uninstalled or suspended on GitHub and PostHog can no longer mint tokens for it; `connected` otherwise. */
readonly installation_status: InstallationStatusEnum | null;
+ /**
+ * Linear only, null otherwise. True when the workspace last authorized PostHog before the Linear app had webhooks, so linked error tracking issues may not follow their tickets until someone reconnects it.
+ * @nullable
+ */
+ readonly needs_webhook_reconnect: boolean | null;
}
/**
@@ -58521,6 +58526,11 @@ export namespace Schemas {
readonly installation_shared: boolean | null;
/** GitHub only, null otherwise. `unavailable` means the App was uninstalled or suspended on GitHub and PostHog can no longer mint tokens for it; `connected` otherwise. */
readonly installation_status: InstallationStatusEnum | null;
+ /**
+ * Linear only, null otherwise. True when the workspace last authorized PostHog before the Linear app had webhooks, so linked error tracking issues may not follow their tickets until someone reconnects it.
+ * @nullable
+ */
+ readonly needs_webhook_reconnect: boolean | null;
}
export interface RecommendedAction {
@@ -82186,6 +82196,11 @@ export namespace Schemas {
readonly installation_shared?: boolean | null;
/** GitHub only, null otherwise. `unavailable` means the App was uninstalled or suspended on GitHub and PostHog can no longer mint tokens for it; `connected` otherwise. */
readonly installation_status?: InstallationStatusEnum | null;
+ /**
+ * Linear only, null otherwise. True when the workspace last authorized PostHog before the Linear app had webhooks, so linked error tracking issues may not follow their tickets until someone reconnects it.
+ * @nullable
+ */
+ readonly needs_webhook_reconnect?: boolean | null;
}
export interface PatchedJsSnippetVersion {