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.

chore(ci): map desktop scope to feature/desktop label (#76398)

Charles Vien96e243726db1
diff --git a/.github/auto-assign-labels.json b/.github/auto-assign-labels.json
index 25f5ba83d500..c635fd511e37 100644
--- a/.github/auto-assign-labels.json
+++ b/.github/auto-assign-labels.json
@@ -8,6 +8,10 @@
{
"scopes": ["cohort", "cohorts"],
"labels": ["team/feature-flags", "feature/cohorts"]
+ },
+ {
+ "scopes": ["desktop", "tasks", "agent-proxy"],
+ "labels": ["feature/desktop"]
}
]
}
diff --git a/.github/scripts/label-pr-from-title.test.js b/.github/scripts/label-pr-from-title.test.js
index 3cefff7a71c2..9d7261c31226 100644
--- a/.github/scripts/label-pr-from-title.test.js
+++ b/.github/scripts/label-pr-from-title.test.js
@@ -136,3 +136,16 @@ for (const scope of ['flag', 'feature-flag', 'feature_flags', 'feature_flag']) {
assert.ok(labelsForTitle(`feat(${scope}): x`, loadRules()).length > 0, `${scope} scope maps to no labels`)
})
}
+
+// Desktop PRs rely on these scopes for the `feature/desktop` label; bind each
+// to the shipped config so an edit that drops or mislabels one regresses
+// loudly here. Asserts containment rather than the exact list so the rule can
+// gain labels without breaking.
+for (const scope of ['desktop', 'tasks', 'agent-proxy']) {
+ test(`the shipped config maps the ${scope} scope to the desktop label`, () => {
+ assert.ok(
+ labelsForTitle(`feat(${scope}): x`, loadRules()).includes('feature/desktop'),
+ `${scope} scope does not map to feature/desktop`
+ )
+ })
+}