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): skip Desktop cloud commits in email nudge (#92251)

Alessandro Pogliaghi2d7e89dc4846
diff --git a/.github/workflows/pr-opened.yml b/.github/workflows/pr-opened.yml
index c5cbeaa99ee7..96203d882aba 100644
--- a/.github/workflows/pr-opened.yml
+++ b/.github/workflows/pr-opened.yml
@@ -169,6 +169,17 @@ jobs:
if (c.author?.login !== author) {
continue;
}
+ const messageLines = (c.commit?.message || '').split(/\r?\n/).map((line) => line.trim());
+ const isDesktopCloudCommit =
+ c.committer?.login === 'web-flow' &&
+ (c.commit?.committer?.email || '').toLowerCase() === '[email protected]' &&
+ c.commit?.verification?.verified === true &&
+ messageLines.includes('Generated-By: PostHog Desktop') &&
+ messageLines.some((line) => /^Task-Id:\s+\S+$/.test(line));
+ if (isDesktopCloudCommit) {
+ console.log(`Skipping PostHog Desktop cloud commit ${c.sha}.`);
+ continue;
+ }
const email = (c.commit?.author?.email || '').toLowerCase();
// Skip GitHub noreply addresses (`[email protected]`):
// the commit stays attributable to a real account, and it's a
@@ -183,7 +194,7 @@ jobs:
}
if (offendingEmails.size === 0) {
- console.log('All author commits use a @posthog.com email — nothing to nudge.');
+ console.log('No actionable non-PostHog author emails found — nothing to nudge.');
return;
}