Skip to content

fix(linear): correct webhook URL — router origin and /linear/webhook path#1166

Merged
zbigniewsobiecki merged 1 commit intomainfrom
dev
Apr 23, 2026
Merged

fix(linear): correct webhook URL — router origin and /linear/webhook path#1166
zbigniewsobiecki merged 1 commit intomainfrom
dev

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • Linear wizard was showing {dashboard-origin}/webhooks/{projectId}/linear as the webhook URL — wrong on both counts: wrong server (dashboard vs router) and wrong path structure.
  • Now uses API_URL (the router's origin, VITE_API_URL in prod) with path /linear/webhook, matching the actual route and the pattern JIRA/Trello use.
  • Source-level regression guard added to linear-wizard-generator.test.ts.

Since Linear's API forbids programmatic webhook registration, users copy this URL manually into linear.app — it has to be exactly right.

🤖 Generated with Claude Code

The Linear wizard was constructing the webhook URL from
window.location.origin (the dashboard) instead of API_URL (the router),
and using the path /webhooks/{projectId}/linear instead of the actual
route /linear/webhook. Since Linear's API forbids programmatic webhook
registration the user copies this URL manually — it has to be right.

Fixed to match the pattern used by JIRA and Trello: derive base from
API_URL with a dev-port fallback, then append /linear/webhook.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit c1f3bcc into main Apr 23, 2026
13 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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