Add Linear worker sync example - #14
Open
thisisgoldman wants to merge 1 commit into
Open
Conversation
Replaces the placeholder with a working Notion worker that syncs Linear issues into a managed Notion database using a backfill+delta pair: - issuesBackfill (replace, manual) paginates every issue via Linear's GraphQL connection and lets the runtime mark-and-sweep deletes. - issuesDelta (incremental, 5m) advances an updatedAt watermark with a 15s consistency buffer, paginates within a cycle, and carries maxSeen across pages to avoid losing records. Includes a Diataxis how-to README covering API key creation, secrets, deploy, backfill trigger, and customization tips. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
morelectric-max
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the placeholder at
examples/workers/syncs/linear/with a working Notion worker that one-way syncs Linear issues into a managed Notion database.issuesBackfill(replace, manual) reconciles by mark-and-sweep;issuesDelta(incremental, every 5m) advances anupdatedAtwatermark with a 15s consistency buffer.{ since, after, maxSeen }so multi-page catch-up cycles never lose records.updatedAtfilter handles change detection cleanly.Test plan
npm install && npm run checkinexamples/workers/syncs/linear/ntn workers env set LINEAR_API_KEY=...ntn workers deploy --name linear-syncntn workers sync trigger issuesBackfilland confirm rows appear in the auto-created "Linear Issues" databaseissuesDeltamanually), confirm Notion row updates🤖 Generated with Claude Code