Skip to content

Conversation

@danielaboost
Copy link
Contributor

@danielaboost danielaboost commented Aug 13, 2025

This PR introduces webhook-based syncing from Contentful.

Key changes include:

  • Webhook endpoint & controller – added to handle incoming Contentful webhook events.
  • SyncRunner service – encapsulates the logic for running syncs, triggered by webhook calls.
  • Authentication & security – webhook requests require basic auth (with configurable credentials).
  • Configuration options – supports setting sync mode (:poll or :webhook) via environment or initializer.
  • Documentation – updated README with setup instructions (creating webhook in Contentful, configuring secrets, running sync).
  • Testing & CI – added RSpec coverage for webhook handling

This allows Contentful to push changes to us in real time, rather than waiting for scheduled syncs. The gem also doesn't require rails - meaning the existing polling functionality works by default, and rails will need added to applications which want to use the webhook mode.

Copy link

@richardmatthewsdev richardmatthewsdev left a comment

Choose a reason for hiding this comment

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

Exciting! Thanks @danielaboost :)

@danielaboost danielaboost merged commit 69fb31e into main Aug 19, 2025
6 checks 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.

4 participants