Skip to content

fix(builds): invoke webhooks with PUT to match the API route - #21

Merged
vigneshrajsb merged 2 commits into
mainfrom
fix-webhooks-invoke-method
Oct 29, 2026
Merged

vigneshrajsb merged 2 commits into
mainfrom
fix-webhooks-invoke-method

Conversation

@vigneshrajsb

@vigneshrajsb vigneshrajsb commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

  • lfc builds webhooks <uuid> --invoke failed with 405 Method Not Allowed: the CLI sent POST, but the v2 builds webhooks route only handles GET (list) and PUT (invoke).
  • Switch invokeWebhooks to PUT.
  • Bump version to 0.7.2.

Verifying Changes

  • Added unit tests for the list (GET) and invoke (PUT) requests; the PUT test fails without the fix.
  • Lint, typecheck and tests pass.

The v2 builds webhooks route exports only GET and PUT, so `lfc builds webhooks <uuid> --invoke` sent POST and got a 405.
@vigneshrajsb
vigneshrajsb marked this pull request as ready for review October 29, 2026 22:29
@vigneshrajsb
vigneshrajsb merged commit c2cff83 into main Oct 29, 2026
1 check 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