Skip to content

fix(external-webhooks): accept provider from input instead of hardcoding make - #900

Merged
sung17 merged 1 commit into
mainfrom
fix/external-webhooks-provider-input
Aug 5, 2026
Merged

fix(external-webhooks): accept provider from input instead of hardcoding make#900
sung17 merged 1 commit into
mainfrom
fix/external-webhooks-provider-input

Conversation

@sung17

@sung17 sung17 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • POST /v1/external-webhooks always stamped provider: "make" server-side, even though the field is pure metadata (nothing in the codebase branches on its value).
  • Accepts provider from the request body as z.enum(["make", "n8n"]).default("make"), so other automation platforms (e.g. n8n) registering a webhook get an accurate label instead of being mislabeled as Make.

Changes

  • apps/builder/src/features/external-webhooks/api/workspace-token.tscreateExternalWebhookWorkspaceTokenAPI input now includes provider, handler passes input.provider through instead of the hardcoded string.

Test plan

  • pnpm lint — clean
  • pnpm --filter builder check-types — clean
  • Backward compatibility verified: existing Make callers never send provider, so the .default("make") preserves current behavior exactly; confirmed no code anywhere branches on provider's value (grepped apps/builder, apps/worker, packages/business).

…ing make

POST /v1/external-webhooks always stamped provider: "make" server-side,
even though the field is just metadata (nothing branches on its value).
Accept it from the request body as an enum(["make", "n8n"]) defaulting
to "make", so other automation platforms (e.g. n8n) registering a
webhook get an accurate provider label instead of being mislabeled as
Make. Existing Make callers are unaffected since they never sent this
field and the default preserves current behavior exactly.
@github-actions github-actions Bot added the bug Something isn't working as expected label Aug 5, 2026
@sung17
sung17 merged commit 81148e6 into main Aug 5, 2026
7 checks passed
viethung0o0 pushed a commit that referenced this pull request Sep 7, 2026
…ing make (#900)

POST /v1/external-webhooks always stamped provider: "make" server-side,
even though the field is just metadata (nothing branches on its value).
Accept it from the request body as an enum(["make", "n8n"]) defaulting
to "make", so other automation platforms (e.g. n8n) registering a
webhook get an accurate provider label instead of being mislabeled as
Make. Existing Make callers are unaffected since they never sent this
field and the default preserves current behavior exactly.

Co-authored-by: Deathgiver <anonymous@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant