Skip to content

fix: upgrade github-comment-specific for semantic-release 25#1160

Merged
ericcrosson-bitgo merged 1 commit into
masterfrom
AI-744-upgrade-github-comment-specific
Jul 21, 2026
Merged

fix: upgrade github-comment-specific for semantic-release 25#1160
ericcrosson-bitgo merged 1 commit into
masterfrom
AI-744-upgrade-github-comment-specific

Conversation

@ericcrosson-bitgo

Copy link
Copy Markdown
Contributor

Problem

Release run 29865224942 published all six packages successfully (trusted publishing + provenance now work end-to-end), but the workflow failed afterward in the success hook of @semantic-release-extras/github-comment-specific:

TypeError: _b.apply is not a function
    at .../github-comment-specific/dist/index.js:178:49

Version 1.0.7 calls require("p-filter") without declaring it — a phantom dependency satisfied by the CJS p-filter@2 that @semantic-release/github@8 used to hoist. The semantic-release 25 upgrade hoists ESM-only p-filter@4 instead, so require() returns a module namespace object and the call throws. Side effect: release-notification comments for that run were skipped (published packages were unaffected).

Fix

Upgrade the plugin to 2.0.7, which targets @semantic-release/github@12 / @octokit/rest@22 (the semantic-release 25 stack) and no longer uses p-filter. Verified locally that the plugin imports cleanly and exposes all five hooks.

Note: multi-semantic-release filters commits per package directory, so this root-only fix: commit may not cut new package versions by itself — but the release workflow should now complete green, and the next package-touching release will exercise the comment hooks.

Ticket: AI-744

🤖 Generated with Claude Code

github-comment-specific 1.0.7 requires p-filter without declaring it,
relying on the CJS p-filter@2 that @semantic-release/github@8 hoisted
to the top level. semantic-release 25 hoists ESM-only p-filter@4
instead, so the plugin's require() returns a namespace object and the
success step throws 'TypeError: _b.apply is not a function' after
publishing. Version 2.0.7 is built against @semantic-release/github@12
and no longer depends on p-filter.

Ticket: AI-744

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ericcrosson-bitgo
ericcrosson-bitgo requested a review from a team as a code owner July 21, 2026 20:28
@linear-code

linear-code Bot commented Jul 21, 2026

Copy link
Copy Markdown

AI-744

@ericcrosson-bitgo
ericcrosson-bitgo merged commit ff4accc into master Jul 21, 2026
6 checks passed
@ericcrosson-bitgo
ericcrosson-bitgo deleted the AI-744-upgrade-github-comment-specific branch July 21, 2026 20:30
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