Skip to content

Conversation

@Aviatorscode2
Copy link
Contributor

@Aviatorscode2 Aviatorscode2 commented Oct 23, 2025

Summary by CodeRabbit

  • Documentation
    • Clarified Push Webhook documentation for improved clarity on direct webhook delivery and user control.
    • Restructured configuration guide with enhanced step-by-step instructions and subsections.
    • Expanded setup guidance with detailed field descriptions and dashboard navigation steps.
    • Added practical examples for sending notifications and validating webhook authenticity.
    • Improved payload explanation with detailed structure examples.

@linear
Copy link

linear bot commented Oct 23, 2025

MRK-1094 Push Webhook

@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for docs-novu failed. Why did it fail? →

Name Link
🔨 Latest commit 5b3e7dc
🔍 Latest deploy log https://app.netlify.com/projects/docs-novu/deploys/68fa56742decd700089ef569

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 23, 2025

Walkthrough

Documentation restructuring and expansion for the Push Webhook integration guide. Changes include rewording for clarity on direct webhook delivery, restructuring the configuration flow into detailed steps with subsections, adding comprehensive examples for authentication validation and notification sending, and enhancing the payload explanation with detailed structure information.

Changes

Cohort / File(s) Change Summary
Push Webhook Documentation
content/docs/platform/integrations/push/(providers)/push-webhook.mdx
Clarified direct webhook delivery mechanism and user control; restructured configuration guide with new titled flow "How to configure Push Webhook with Novu"; expanded "Set Device Token" into two-step process covering Webhook URL/Secret Key setup and dashboard connection; added new "Using Push Webhook with Novu" section with subscriber device token and notification sending examples; replaced API reference with notification sending flow and SDK trigger code example; enhanced "Checking Authenticity" section with x-novu-signature header description and hash validation code block; updated payload explanation with detailed structure example

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

The changes are documentation-focused with restructuring, rewording, and expansion of existing content. No code logic changes are involved. Review complexity is limited to verifying content accuracy, clarity of technical descriptions, and appropriateness of code examples provided.

Suggested reviewers

  • djabarovgeorge
  • jainpawan21
  • DianaHackmamba

Poem

🐰 A rabbit hops through webhook flows so clear,
Configuration steps now appear year by year,
With signatures checked and examples so bright,
Push notifications now feel just right! 🚀

Pre-merge checks and finishing touches

❌ 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%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "Update content for Push webhook guide" directly aligns with the main changes in the changeset. The raw summary shows that all modifications are focused on a single file (push-webhook.mdx), with comprehensive content improvements including restructuring the configuration guide, expanding sections, adding new workflow guidance, and enhancing the authenticity checking section. The title accurately conveys that this is a content update to the Push webhook documentation, and is sufficiently specific to enable readers scanning commit history to understand the primary change without being vague or generic.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch MRK-1094

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between be6cc4c and 5b3e7dc.

⛔ Files ignored due to path filters (1)
  • public/images/channels-and-providers/push/push-webhook/push-webhook-integration.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • content/docs/platform/integrations/push/(providers)/push-webhook.mdx (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Redirect rules - docs-novu
  • GitHub Check: Header rules - docs-novu
  • GitHub Check: Pages changed - docs-novu
  • GitHub Check: Build and Lint
🔇 Additional comments (7)
content/docs/platform/integrations/push/(providers)/push-webhook.mdx (7)

8-10: Clear and effective rewriting of the introduction. The new wording effectively communicates that Push Webhook provides direct webhook delivery without a third-party service and emphasizes user control. This framing sets appropriate expectations for the integration.


12-37: Well-structured configuration flow with clear step-by-step guidance. The two-step process (preparing webhook URL/secret key, then connecting to Novu) is logical and easy to follow. The inline descriptions of required fields and the dashboard UI steps are helpful. The reference to webhook.site for testing and the link to HMAC generation documentation are practical touches.


49-49: Inconsistent Tab component attributes. Line 49 uses value="Node.js" while line 74 uses title="cURL". Verify that the fumadocs-ui Tabs component accepts both attributes interchangeably, or standardize on one attribute name to ensure consistent rendering.

Also applies to: 74-74


39-87: Device token registration example is practical and complete. The two code examples (Node.js SDK and cURL) clearly demonstrate how to register device tokens. The explanation that any random string can be used as a device token is helpful context. The use of integrationIdentifier is well-documented in the comments.


89-110: Clear notification trigger example with good inline documentation. The example effectively demonstrates triggering a workflow with a subscriber ID and custom payload. The comments explain that payload data is included in the webhook request, which helps users understand the data flow.


113-168: Comprehensive payload example with detailed structure. The JSON example effectively illustrates the complete payload structure including target device tokens, title, content, overrides, and nested subscriber profile data. The inline comments explaining what each section represents (e.g., "subscriber fields", "digest variables") enhance clarity. The example is realistic and includes multiple data types to demonstrate the full range of data included.


170-199: Correct and practical authentication validation example. The code example accurately demonstrates HMAC SHA256 signature verification using Node.js's crypto module. The logic correctly compares the provided x-novu-signature header against the computed hash of the payload. The explanation of the x-novu-signature header is clear, and the code structure (extracting header, computing hash, comparing) follows security best practices.

});
```

## Paylod sent by Novu to webhook url
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Typo in section heading. "Paylod" should be "Payload".

Apply this diff to fix the typo:

-## Paylod sent by Novu to webhook url
+## Payload sent by Novu to webhook url
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
## Paylod sent by Novu to webhook url
## Payload sent by Novu to webhook url
🤖 Prompt for AI Agents
In content/docs/platform/integrations/push/(providers)/push-webhook.mdx around
line 112, the section heading has a typo "Paylod sent by Novu to webhook url";
change "Paylod" to "Payload" so the heading reads "Payload sent by Novu to
webhook url".

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