Skip to content

Commit 25fea31

Browse files
Merge branch 'main' into monorepo
2 parents 59a84e0 + 8821e8a commit 25fea31

File tree

8 files changed

+109
-12
lines changed

8 files changed

+109
-12
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Notify Slack for wizard issues
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
jobs:
7+
notify:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: read
11+
repository-projects: read
12+
steps:
13+
- name: Check issue and build payload
14+
id: check
15+
uses: actions/github-script@v7
16+
with:
17+
script: |
18+
const issue = context.payload.issue;
19+
20+
// Check if the issue belongs to integration autonomy
21+
const EXCLUDED_PROJECTS = ['Integration autonomy'];
22+
23+
const { node } = await github.graphql(`
24+
query($issueId: ID!) {
25+
node(id: $issueId) {
26+
... on Issue {
27+
projectItems(first: 10) {
28+
nodes {
29+
project { title }
30+
}
31+
}
32+
}
33+
}
34+
}
35+
`, { issueId: issue.node_id });
36+
37+
const projects = (node?.projectItems?.nodes || []).map(n => n.project.title);
38+
const isExcluded = projects.some(p => EXCLUDED_PROJECTS.includes(p));
39+
40+
if (isExcluded) {
41+
core.info(`Skipping: issue belongs to excluded project (${projects.join(', ')})`);
42+
core.setOutput('notify', 'false');
43+
return;
44+
}
45+
46+
const labels = (issue.labels || []).map(l => l.name).join(', ');
47+
const payload = {
48+
text: `New wizard issue: <${issue.html_url}|${issue.title}>\nBy: ${issue.user.login}\nLabels: ${labels || 'none'}`
49+
};
50+
core.setOutput('notify', 'true');
51+
core.setOutput('payload', JSON.stringify(payload));
52+
53+
- name: Notify Slack
54+
if: steps.check.outputs.notify == 'true'
55+
uses: slackapi/slack-github-action@v2.0.0
56+
with:
57+
webhook: ${{ secrets.SLACK_WEBHOOK_WIZARD_CHANNEL }}
58+
webhook-type: incoming-webhook
59+
payload: ${{ steps.check.outputs.payload }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ plugins
3636

3737
e2e-tests/fixtures/.tracking/*
3838

39-
CLAUDE.local.md
39+
CLAUDE.local.md
40+
41+
# Generated at build time by scripts/generate-version.js
42+
src/lib/version.ts

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## [1.35.2](https://github.com/PostHog/wizard/compare/v1.35.1...v1.35.2) (2026-02-26)
4+
5+
6+
### Bug Fixes
7+
8+
* Fix release link ([#298](https://github.com/PostHog/wizard/issues/298)) ([8ecabff](https://github.com/PostHog/wizard/commit/8ecabffadb162b08df7ac66d32c7ee257e617e31))
9+
10+
## [1.35.1](https://github.com/PostHog/wizard/compare/v1.35.0...v1.35.1) (2026-02-26)
11+
12+
13+
### Bug Fixes
14+
15+
* revert agent sdk ([#294](https://github.com/PostHog/wizard/issues/294)) ([03eea97](https://github.com/PostHog/wizard/commit/03eea971c92d0cdb85c3aeb483c5a85fc5b913a7))
16+
17+
## [1.35.0](https://github.com/PostHog/wizard/compare/v1.34.0...v1.35.0) (2026-02-26)
18+
19+
20+
### Features
21+
22+
* add Node.js skill ([#283](https://github.com/PostHog/wizard/issues/283)) ([12a2a29](https://github.com/PostHog/wizard/commit/12a2a295be31720a291131a9bb4faba7a244c948))
23+
* benchmark tools ([#280](https://github.com/PostHog/wizard/issues/280)) ([0f79a24](https://github.com/PostHog/wizard/commit/0f79a24a7c76c0e11e679c56924cca96731db7eb))
24+
* js-web skill ([#272](https://github.com/PostHog/wizard/issues/272)) ([8435eb9](https://github.com/PostHog/wizard/commit/8435eb97fb05f03528bf45db7c1385fb04dde6b9))
25+
* pass project id ([#285](https://github.com/PostHog/wizard/issues/285)) ([c9d05c9](https://github.com/PostHog/wizard/commit/c9d05c9293448a66b43678afb559b8f859a87434))
26+
* **wizard:** Add User-Agent header to wizard HTTP requests ([#291](https://github.com/PostHog/wizard/issues/291)) ([edae68f](https://github.com/PostHog/wizard/commit/edae68f567986249d149bb0fcd90b9c83ed369b0))
27+
328
## [1.34.0](https://github.com/PostHog/wizard/compare/v1.33.0...v1.34.0) (2026-02-20)
429

530

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@posthog/wizard",
3-
"version": "1.34.0",
3+
"version": "1.35.2",
44
"homepage": "https://github.com/PostHog/wizard",
55
"repository": "https://github.com/PostHog/wizard",
66
"description": "The PostHog wizard helps you to configure your project",
@@ -92,7 +92,7 @@
9292
"packageManager": "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b",
9393
"scripts": {
9494
"clean": "rm -rf ./dist",
95-
"prebuild": "pnpm clean",
95+
"prebuild": "pnpm clean && node scripts/generate-version.js",
9696
"build:watch": "pnpm tsc -w",
9797
"build": "pnpm tsc",
9898
"postbuild": "chmod +x ./dist/bin.js && cp -r scripts/** dist && cp -r src/utils/rules dist/src/utils && pnpm test:smoke",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/generate-version.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const pkg = JSON.parse(
5+
fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf-8'),
6+
);
7+
const output = `// Auto-generated by scripts/generate-version.js — do not edit\nexport const VERSION = '${pkg.version}';\n`;
8+
fs.writeFileSync(
9+
path.join(__dirname, '..', 'src', 'lib', 'version.ts'),
10+
output,
11+
);

src/lib/agent-interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function isSkillInstallCommand(command: string): boolean {
152152

153153
const url = urlMatch[1];
154154
return (
155-
url.startsWith('https://github.com/PostHog/examples/releases/') ||
155+
url.startsWith('https://github.com/PostHog/context-mill/releases/') ||
156156
/^http:\/\/localhost:\d+\//.test(url)
157157
);
158158
}

src/lib/constants.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,5 @@ export const OAUTH_PORT = 8239;
5858
export const WIZARD_INTERACTION_EVENT_NAME = 'wizard interaction';
5959
export const WIZARD_REMARK_EVENT_NAME = 'wizard remark';
6060

61-
/** User-Agent string for wizard HTTP requests. */
62-
import packageJson from '../../package.json';
63-
export const WIZARD_USER_AGENT = `posthog/wizard; version: ${packageJson.version}`;
61+
import { VERSION } from './version';
62+
export const WIZARD_USER_AGENT = `posthog/wizard; version: ${VERSION}`;

0 commit comments

Comments
 (0)