Repository navigation
Vendor @pegma/webhooks for GitHub release webhook Phase A - #17
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
There was a problem hiding this comment.
Pull request overview
Vendors an unpublished, byte-reproducible @pegma/webhooks npm pack artifact into pegma.dev (Phase A of the GitHub Release Webhook plan), and adds smoke tests to prove the webhook ledger works over both createMemoryStore() and the production-style Cloudflare D1 store composition (createSchemaIfMissing: false). It also introduces separate Vitest configurations to run Node-only tests and Workers/D1 pool tests.
Changes:
- Added Node + Workers-pool D1 smoke tests for
createWebhookLedgeragainst memory and D1-backed stores. - Added
vitest.config.tsandvitest.d1.config.tsand updated npm scripts to run both suites. - Added the Phase A plan documentation and provenance for the vendored
@pegma/webhooksartifact, and recorded Phase A completion indocs/PROJECT_PLAN.md.
Reviewed changes
Copilot reviewed 7 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| worker/src/webhooks-ledger.test.ts | Node smoke test proving the vendored webhooks ledger works over createMemoryStore(). |
| worker/src/webhooks-ledger.d1.test.ts | Workers/D1 smoke test proving the ledger works over the D1 store with createSchemaIfMissing: false. |
| vitest.config.ts | Node-focused Vitest config (excludes *.d1.test.ts). |
| vitest.d1.config.ts | Workers-pool Vitest config for running *.d1.test.ts with Wrangler/Miniflare. |
| vendor/@pegma/webhooks/PROVENANCE.md | Records provenance and reproduction steps for the vendored @pegma/webhooks artifact. |
| package.json | Adds the vendored @pegma/webhooks file dependency and splits test scripts into node vs D1 runs. |
| package-lock.json | Locks @pegma/webhooks (file dependency) and adds @cloudflare/vitest-pool-workers. |
| docs/PROJECT_PLAN.md | Records completion of Phase A for the GitHub release webhook effort. |
| docs/GITHUB_RELEASE_WEBHOOK_PLAN.md | Adds the multi-phase plan and Phase A reconciliation notes for the webhook-driven release freshness feature. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b5c59871e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e1874890e1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@codex review |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
docs/GITHUB_RELEASE_WEBHOOK_PLAN.mdand complete Phase A: vendor the exact@pegma/webhookspack from webhooks commit416db2fbafc48060fddedf4153924a1de987cc7bwith provenance (SHA-256 + npm integrity).createMemoryStore()and the production D1 composition (createSchemaIfMissing: false) via node + Workers-pool tests.Depends on: pegma-dev/webhooks#4
Test plan
npm run checknpm run test:nodenpm run test:d1npm run build@pegma/storage-core@0.3.0under health/rate-limit/sessions remains pre-existing host debt (documented in the plan)Plan:
docs/GITHUB_RELEASE_WEBHOOK_PLAN.md