- 
                Notifications
    
You must be signed in to change notification settings  - Fork 5.5k
 
Trustpilot - public endpoints #18113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
  | 
    
| 
          
 Caution Review failedThe pull request is closed. WalkthroughVersion metadata bumped to 0.0.3 across Trustpilot actions and sources. Two new public product review endpoints added to constants. trustpilot.app updated to use public review endpoints for product and service reviews. Package version bumped to 0.1.2. No other logic changed. Changes
 Sequence Diagram(s)sequenceDiagram
  autonumber
  participant Client
  participant TrustpilotApp
  participant URLBuilder as buildUrl
  participant API as Trustpilot API
  rect rgba(230, 245, 255, 0.5)
  note over TrustpilotApp: getServiceReviews (updated to use PUBLIC_REVIEWS)
  Client->>TrustpilotApp: getServiceReviews(businessUnitId, opts)
  TrustpilotApp->>URLBuilder: buildUrl(ENDPOINTS.PUBLIC_REVIEWS, { businessUnitId })
  URLBuilder-->>TrustpilotApp: public reviews URL
  TrustpilotApp->>API: _getReviews(URL, opts)
  API-->>TrustpilotApp: Reviews
  TrustpilotApp-->>Client: Reviews
  end
  rect rgba(235, 255, 235, 0.5)
  note over TrustpilotApp: getProductReviews (updated to use PUBLIC_PRODUCT_REVIEWS)
  Client->>TrustpilotApp: getProductReviews(businessUnitId, opts)
  TrustpilotApp->>URLBuilder: buildUrl(ENDPOINTS.PUBLIC_PRODUCT_REVIEWS, { businessUnitId })
  URLBuilder-->>TrustpilotApp: public product reviews URL
  TrustpilotApp->>API: _getReviews(URL, opts)
  API-->>TrustpilotApp: Product Reviews
  TrustpilotApp-->>Client: Product Reviews
  end
    Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
 Poem
 Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration: 
 You can enable these sources in your CodeRabbit configuration. ⛔ Files ignored due to path filters (1)
 📒 Files selected for processing (17)
 ✨ Finishing Touches
 🧪 Generate unit tests
 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit: 
 SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type  Other keywords and placeholders
 CodeRabbit Configuration File (
 | 
    
WHY
Summary by CodeRabbit