Skip to content

feat(publish-gate): merge cyberuni's allow-list into the ack-based gate - #96

Merged
unional merged 1 commit into
mainfrom
feat/publish-gate-merge
Nov 15, 2026
Merged

unional merged 1 commit into
mainfrom
feat/publish-gate-merge

Conversation

@unional

@unional unional commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Part of #94, step 1. This PR covers merge plan items D3 and D5 and follows decision Q5. It is one of four PRs for this step.

D3: publish-gate scripts

  • Keeps repobuddy's .github/publish-gate.json acknowledgements as the base. An ack needs a reason, wildcards are rejected, and stale acks are reported.
  • Adds cyberuni's FIRST_PARTY allow-list and parseAllowList / isAllowed as an optional extra.
  • Adds stable-packages' two extra entries, global-store and stable-store.
  • Order: acks apply first and are reported with their reason. The allow-list then splits the remaining new dependencies into "allowed" (reported) and "blocked".
  • An invalid allowed-new-dependencies entry blocks the whole run, the same way a malformed ack file does. Previously, in cyberuni, it threw at module load.
  • Tests: cyberuni's allow-list tests are ported, plus an ack-and-allow-list case and a case for the stable entries. node --test .github/scripts/publish-gate.test.mjs passes 19 of 19 locally.

D5: pnpm-publish-gate.yml

  • Takes cyberuni's workflow, which repobuddy's was a port of, pointed at repobuddy/.github. This adds the allowed-new-dependencies input and uses setup-node-pnpm, so pnpm-version is now honoured.
  • Keeps ref: v2 for the scripts checkout, so released callers never load unreleased scripts.
  • README: adds a "first-party allow-list" subsection under Publish gate.

Merge order

This PR depends on #95, which imports actions/setup-node-pnpm. Both must be in the same release, because setup-node-pnpm@v2 resolves only once a v2 tag carries the action.

🤖 Generated with Claude Code

Part of #94, step 1 (merge plan D3 and D5, decision Q5).

- D3: keep repobuddy's .github/publish-gate.json acknowledgements as the
  base. Add cyberuni's FIRST_PARTY allow-list and its
  `allowed-new-dependencies` input as an optional extra. Fold in
  stable-packages' two extra FIRST_PARTY entries, global-store and
  stable-store. Acks apply first and are reported with their reason; the
  allow-list then splits the rest into allowed and blocked. An invalid
  allow-list entry blocks the whole run, like a malformed ack file.
- D5: take cyberuni's pnpm-publish-gate.yml (repobuddy's was a port of
  it), pointing at repobuddy/.github. Keep `ref: v2` for the scripts
  checkout, so released callers never load unreleased scripts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: unional <homawong@gmail.com>
@changeset-bot

changeset-bot Bot commented Nov 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a1cc811

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mergify

mergify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@unional
unional merged commit d9482ec into main Nov 15, 2026
3 checks passed
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.

1 participant