Repository navigation
feat: add draft Segment schema PR workflow - #46897
Conversation
Propose, create, and close a Consensys/segment-schema draft from analytics TypeScript changes after the author agrees. Co-authored-by: Cursor <cursoragent@cursor.com>
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Remove DraftSchemaPrWorkflowTest before merging this pull request. Co-authored-by: Cursor <cursoragent@cursor.com>
GitHub rejects paths and paths-ignore on the same pull_request event, so the workflow never queued. Co-authored-by: Cursor <cursoragent@cursor.com>
Builds ready [5f8241a]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)
Bundle Size Diffs
|
Schema reads and writes use this token, so it must be that installation. Co-authored-by: Cursor <cursoragent@cursor.com>
Builds ready [f2cb34d]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 4 warn · 🔴 2 fail)
Bundle Size Diffs
|
actionlint 1.7.12 checks create-github-app-token for app-id. This workflow uses client-id. Co-authored-by: Cursor <cursoragent@cursor.com>
Builds ready [2096b79] [reused from 731673e]
⚡ Performance Benchmarks (Total: 🟢 8 pass · 🟡 2 warn · 🔴 3 fail)
Bundle Size Diffs
|
create minted the App token from the agreement comment alone, including when the client PR was closed or labeled no-schema-pr. Co-authored-by: Cursor <cursoragent@cursor.com>
Builds ready [602bf69] [reused from f1a2598]
⚡ Performance Benchmarks (Total: 🟢 4 pass · 🟡 1 warn · 🔴 0 fail)
Bundle Size Diffs
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 602bf69. Configure here.
actionlint flags separate redirects to GITHUB_OUTPUT. Co-authored-by: Cursor <cursoragent@cursor.com>
Builds ready [3e43335]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 2 warn · 🔴 2 fail)
Bundle Size Diffs [🚨 Warning! Bundle size has increased!]
|
|
The action is released, so the workflow uses that commit instead of the pre-release pin. Co-authored-by: Cursor <cursoragent@cursor.com>
Builds ready [d929f01] [reused from 3fe977d]
⚡ Performance Benchmarks (Total: 🟢 8 pass · 🟡 3 warn · 🔴 2 fail)
Bundle Size Diffs
|




Description
Adds a helper workflow that reads analytics TypeScript changes on a pull request and can open one draft pull request on Consensys/segment-schema after the author agrees. It is not a merge gate.
The action is pinned to github-tools v1.21.0 (
5d993ac935eff3f248d2213bb2d6922ce9cb3510).proposeandcloserun for changes underui/,app/scripts/, orshared/constants/metametrics.ts, excluding tests and snapshots.createruns only after this file is on the default branch.Changelog
CHANGELOG entry: null
Related issues
Fixes MCWP-911
related to MCWP-575
Shipped in github-tools v1.21.0.
Manual testing steps
This pull request only adds a workflow file, so
proposedoes not run here.After merge:
ui/orapp/scripts/, orshared/constants/metametrics.ts, and includes an analytics event change.proposejob posts one sticky comment and does not open a schema pull request yet.I agree to open a draft Segment schema PR.did-user-agree-to-create-pr, thenis-cross-repo-pr, thencreateopen one draft on Consensys/segment-schema.Pre-merge author checklist
Pre-merge reviewer checklist
Made with Cursor
Note
Medium Risk
Introduces GitHub App credentials and cross-repo PR writes to segment-schema, but creation is author opt-in and gated by labels, fork checks, and protected environments—not a merge blocker.
Reviewed by Cursor Bugbot for commit d929f01. Bugbot is set up for automated code reviews on this repo. Configure here.