-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Bug
@orgloop/connector-github-webhook@0.1.0 imports named normalizer functions from @orgloop/connector-github:
import {
normalizeCheckSuiteCompleted,
normalizeIssueComment,
normalizePullRequestClosed,
normalizePullRequestOpened,
normalizePullRequestReadyForReview,
normalizePullRequestReview,
normalizePullRequestReviewComment,
normalizeWorkflowRunFailed,
} from '@orgloop/connector-github';However, @orgloop/connector-github@0.1.10's dist/index.js only has a default export (the register() function). The normalizer functions exist in dist/normalizer.js but are not re-exported from the barrel.
Impact
orgloop start fails with:
Failed to import connector "@orgloop/connector-github-webhook":
The requested module '@orgloop/connector-github' does not provide an export named 'normalizeCheckSuiteCompleted'
Workaround
Manually patch connector-github/dist/index.js to add:
export {
normalizePullRequestReview,
normalizePullRequestReviewComment,
normalizeIssueComment,
normalizePullRequestClosed,
normalizeWorkflowRunFailed,
normalizePullRequestOpened,
normalizePullRequestReadyForReview,
normalizeCheckSuiteCompleted,
} from './normalizer.js';This patch breaks on any npm install that refreshes the package.
Fix
Add the normalizer re-exports to connector-github's src/index.ts and publish as 0.1.11.
Environment
- orgloop CLI: 0.7.0
- connector-github-webhook: 0.1.0
- connector-github: 0.1.10
- Node: v24.13.0
- macOS (arm64)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels