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.

fix(github): tell users to connect an account, not reconnect (#81669)

Tom Owers3223f4c23f63
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/github/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/github/source.py
index a52517b57b75..cf963096a2b3 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/github/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/github/source.py
@@ -293,7 +293,7 @@ If automatic creation failed with a permissions error, the fix depends on how yo
"This installation has been suspended": "Your GitHub App installation has been suspended. Re-enable it from your GitHub organization's installed GitHub Apps settings, then reconnect your GitHub account.",
# Deterministic credential/config errors from _get_access_token and OAuthMixin.
# These never resolve on retry — the source needs reconfiguring or reconnecting.
- "Missing GitHub integration ID": "No GitHub account is connected. Please reconnect your GitHub account.",
+ "Missing GitHub integration ID": "No GitHub account is connected. Connect a GitHub account and try again.",
"Missing personal access token": "GitHub personal access token is not configured. Please update the source configuration.",
"No repositories configured": "No repositories are selected for this source. Please update the source configuration.",
"resolve to the same warehouse table": "Two selected repositories resolve to the same warehouse table. Please remove or rename one.",
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/github/tests/test_github_source_class.py b/products/warehouse_sources/backend/temporal/data_imports/sources/github/tests/test_github_source_class.py
index 9053e758e54b..8aeb305ba1f1 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/github/tests/test_github_source_class.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/github/tests/test_github_source_class.py
@@ -236,7 +236,7 @@ class TestGithubSource:
result = self.source.get_endpoint_permissions(config, self.team_id, ["teams", "team_members", "issues"])
assert result["issues"] is None
- assert result["teams"] == "No GitHub account is connected. Please reconnect your GitHub account."
+ assert result["teams"] == "No GitHub account is connected. Connect a GitHub account and try again."
assert result["team_members"] == result["teams"]
@pytest.mark.parametrize(
@@ -447,7 +447,7 @@ class TestGithubSource:
@pytest.mark.parametrize(
"selection,expected_message",
[
- ("oauth", "No GitHub account is connected. Please reconnect your GitHub account."),
+ ("oauth", "No GitHub account is connected. Connect a GitHub account and try again."),
("pat", "GitHub personal access token is not configured. Please update the source configuration."),
],
)