Skip to content

Fix: [for cherry-picking] Documented the new WebhooksAPI in the Unrelea - #94

Closed
qodo-code-review[bot] wants to merge 2 commits into
feat/webhooks-registerfrom
fix/remediation-bda4b6df-8e8afa
Closed

Fix: [for cherry-picking] Documented the new WebhooksAPI in the Unrelea#94
qodo-code-review[bot] wants to merge 2 commits into
feat/webhooks-registerfrom
fix/remediation-bda4b6df-8e8afa

Conversation

@qodo-code-review

@qodo-code-review qodo-code-review Bot commented Aug 24, 2026

Copy link
Copy Markdown

Fixed Findings

  • Document webhooks in the unreleased changelog
  • Support a dedicated webhooks client

Automated fix from agentic review of #93

Qodo Logo


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by Sourcery

Enable the Wave client to use dedicated credentials and endpoints for webhook operations.

New Features:

  • Support configuring a dedicated WebhooksAPI endpoint and API key through the Wave client.
  • Document tenant webhook registration through the WebhooksAPI in the unreleased changelog.

Review in cubic

@codeant-ai

codeant-ai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Your free trial PR review limit of 300 PRs has been reached. Please upgrade your plan to continue using CodeAnt AI.

@greptile-apps

greptile-apps Bot commented Aug 24, 2026

Copy link
Copy Markdown

PR author is in the excluded authors list.

@qodo-code-review qodo-code-review Bot closed this Aug 24, 2026
@sourcery-ai

sourcery-ai Bot commented Aug 24, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds unreleased changelog documentation for WebhooksAPI and wires the Wave client to use a dedicated webhooks client with optional endpoint and API-key overrides, while preserving existing configuration fallbacks.

Flow diagram for dedicated WebhooksAPI client configuration

flowchart TD
    Config[WaveClientConfig]
    Wave[Wave]
    WebhooksClient[WaveClient for webhooks]
    WebhooksAPI[WebhooksAPI]

    Config --> Wave
    Wave -->|apiKey: webhooksApiKey or apiKey| WebhooksClient
    Wave -->|baseUrl: webhooksBaseUrl or baseUrl| WebhooksClient
    WebhooksClient --> WebhooksAPI
Loading

File-Level Changes

Change Details Files
Document the new dedicated webhooks client and its unreleased API support.
  • Add the WebhooksAPI tenant webhook registration capability to the unreleased changelog.
CHANGELOG.md
Allow webhook requests to use independently configured endpoint and credentials.
  • Add optional webhooksBaseUrl and webhooksApiKey client configuration.
  • Construct WebhooksAPI with a separate WaveClient, falling back to the standard base URL and API key when overrides are absent.
src/client-types.ts
src/index.ts

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codeant-ai

codeant-ai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Your free trial PR review limit of 300 PRs has been reached. Please upgrade your plan to continue using CodeAnt AI.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Approved; Cursor Bugbot and Cursor Security Agent were not running after the first poll, and this bounded webhook client/config change stays within the approval threshold. No reviewers assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. The new client selects a separate webhook endpoint and API key, so a misconfigured override could send the webhook API credential to the wrong host or create registrations under the wrong account. Reverting stops future requests but does not undo registrations or recover a credential that was exposed, though the impact is bounded to the affected configuration and can be repaired by removing registrations or rotating the key.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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.

0 participants