Skip to content

Vendor @pegma/webhooks for GitHub release webhook Phase A - #17

Merged
FlyOverCoderKY merged 5 commits into
mainfrom
claude/a-github-release-webhook-deps
Jul 28, 2026
Merged

FlyOverCoderKY merged 5 commits into
mainfrom
claude/a-github-release-webhook-deps

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Summary

  • Land docs/GITHUB_RELEASE_WEBHOOK_PLAN.md and complete Phase A: vendor the exact @pegma/webhooks pack from webhooks commit 416db2fbafc48060fddedf4153924a1de987cc7b with provenance (SHA-256 + npm integrity).
  • Prove the ledger over createMemoryStore() and the production D1 composition (createSchemaIfMissing: false) via node + Workers-pool tests.
  • No GitHub webhook route, secret, or UI yet (Phases B–E).

Depends on: pegma-dev/webhooks#4

Test plan

  • npm run check
  • npm run test:node
  • npm run test:d1
  • npm run build
  • Confirm nested @pegma/storage-core@0.3.0 under health/rate-limit/sessions remains pre-existing host debt (documented in the plan)

Plan: docs/GITHUB_RELEASE_WEBHOOK_PLAN.md

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings July 28, 2026 20:56
@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 createWebhookLedger against memory and D1-backed stores.
  • Added vitest.config.ts and vitest.d1.config.ts and updated npm scripts to run both suites.
  • Added the Phase A plan documentation and provenance for the vendored @pegma/webhooks artifact, and recorded Phase A completion in docs/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.

Comment thread worker/src/webhooks-ledger.d1.test.ts Resolved
Comment thread docs/GITHUB_RELEASE_WEBHOOK_PLAN.md Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread docs/GITHUB_RELEASE_WEBHOOK_PLAN.md Resolved
Comment thread docs/GITHUB_RELEASE_WEBHOOK_PLAN.md Resolved
Co-authored-by: Cursor <cursoragent@cursor.com>
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread package.json Resolved
Co-authored-by: Cursor <cursoragent@cursor.com>
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

Co-authored-by: Cursor <cursoragent@cursor.com>
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 6008559eaf

ℹ️ 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>
@FlyOverCoderKY

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 2486cfde99

ℹ️ 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".

@FlyOverCoderKY
FlyOverCoderKY merged commit 1c3027a into main Jul 28, 2026
1 check passed
@FlyOverCoderKY
FlyOverCoderKY deleted the claude/a-github-release-webhook-deps branch July 28, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants