Skip to content

Support moderation.state_changed webhook even - #10

Open
andrei-zybin wants to merge 1 commit into
mainfrom
feature/moderation-webhook-event
Open

andrei-zybin wants to merge 1 commit into
mainfrom
feature/moderation-webhook-event

Conversation

@andrei-zybin

@andrei-zybin andrei-zybin commented Sep 18, 2026

Copy link
Copy Markdown

Description

Checklist

Summary by CodeRabbit

  • New Features

    • Added support for the moderation.state_changed webhook event.
    • Webhook creation and update workflows now accept this event.
    • Added a moderation-specific example to webhook command documentation.
  • Tests

    • Added coverage confirming the event is accepted and forwarded correctly.

Co-authored-by: Claude <noreply@anthropic.com>
@andrei-zybin
andrei-zybin requested a review from alxgsv September 18, 2026 18:01
@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: 3f18375a-9d2c-4893-abb5-38c1d31e4f36

📥 Commits

Reviewing files that changed from the base of the PR and between 0520a60 and d242c14.

📒 Files selected for processing (2)
  • internal/cmd/webhook.go
  • internal/cmd/webhook_test.go

Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


Walkthrough

The webhook commands now accept moderation.state_changed. Documentation and a create example describe the event. Tests verify that create and update commands forward the event.

Changes

Webhook moderation event support

Layer / File(s) Summary
Event validation and documentation
internal/cmd/webhook.go
The valid event list and webhook command documentation now include moderation.state_changed. The create documentation includes a moderation example.
Create and update coverage
internal/cmd/webhook_test.go
Tests verify that create and update commands forward moderation.state_changed to their API parameters.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Feature

Suggested reviewers: alxgsv

Merge Risk: ⚪ Minimal · up to d242c

The new webhook event is accepted and forwarded by both create and update commands, with matching documentation and tests. No merge-blocking issue remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title identifies the main change: support for the moderation.state_changed webhook event. It is concise and directly related to the pull request.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

PR Build Artifacts

Commit Build Time (UTC)
d242c14 Download 2026-09-18 18:03:29 UTC
Available platforms
  • uploadcare-cli_0.3.0-SNAPSHOT-bc5bf8c_darwin_amd64.tar.gz
  • uploadcare-cli_0.3.0-SNAPSHOT-bc5bf8c_darwin_arm64.tar.gz
  • uploadcare-cli_0.3.0-SNAPSHOT-bc5bf8c_linux_amd64.tar.gz
  • uploadcare-cli_0.3.0-SNAPSHOT-bc5bf8c_linux_arm64.tar.gz
  • uploadcare-cli_0.3.0-SNAPSHOT-bc5bf8c_linux_armv7.tar.gz
  • uploadcare-cli_0.3.0-SNAPSHOT-bc5bf8c_windows_amd64.zip
  • uploadcare-cli_0.3.0-SNAPSHOT-bc5bf8c_windows_arm64.zip
How to install
  1. Click Download for the build you want
  2. Download uploadcare-cli-binaries zip
  3. Unzip it — you'll find per-platform archives inside
  4. Extract the archive for your platform (e.g. tar xzf uploadcare-cli_*_darwin_arm64.tar.gz)
  5. Run ./uploadcare

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