Skip to content

Two way sync between Orbit and GitHub Issues #224

Open

Description

@imshashank

Orbit is a task manager whose own development is tracked in GitHub Issues, while a hosted Orbit instance runs at orbit.noveum.ai. The project does not use its own product to build itself.

That is a missed opportunity twice over: it is the best possible bug-finding exercise, and it is the most convincing demonstration the project can offer.

What to build

Two way sync between an Orbit workspace and a GitHub repository's issues.

  • A GitHub issue creates or updates the linked Orbit issue, and the reverse
  • Comments sync both ways
  • Labels map, with a configurable mapping, since GitHub labels and Orbit labels will not be identical
  • State maps: GitHub open and closed against Orbit's workflow states, which are per team and richer than two values, so this needs a mapping rather than a rule
  • Assignees map where accounts can be matched
  • Milestones map to Orbit milestones or sprints, and which one is a decision

What already exists

More than it looks like. The GitHub App integration is built and working:

  • github_installation, github_repository, github_repository_link, github_repository_sync, github_issue_sync, github_comment_sync and github_pr_state_mapping are all in packages/db/src/schema/comms.ts
  • github_issue_sync and github_comment_sync exist specifically for this and are barely referenced in application code
  • apps/web/src/app/api/webhooks/github/route.ts receives events with signature verification
  • Pull request linking works end to end

So the schema anticipated this. Check exactly how much of github_issue_sync is wired before starting, because the answer may be more than zero.

The hard parts

Loops. Orbit writes to GitHub, GitHub sends a webhook, Orbit writes the change again, and so on. Same problem as the Slack thread sync issue, and the same requirement: an origin marker and a skip. This is the single most common way these integrations fail.

Conflicts. The same issue edited in both places between syncs. Last write wins is defensible and has to be stated rather than assumed.

State mapping. Orbit's workflow states are per team, user defined, and have a category. GitHub has open and closed, plus a state reason. The mapping has to be configured per repository link and it has to handle a state being deleted.

Rate limits. A backfill of a busy repository will hit GitHub's limits. Queue and back off.

Permissions and privacy. A public GitHub repository syncing into a private Orbit team means anything written in Orbit may become public. This has to be impossible to do by accident. Make the direction and the visibility consequences explicit at configuration time, and refuse combinations that leak.

Scale of the first version. One repository to one team is enough. Do not build many to many first.

Why this is worth doing even though it is hard

Beyond the demonstration value, it is the most requested kind of integration for a tracker used by open source projects, where the contributors live in GitHub Issues and the maintainers want a real board. Orbit is well placed for it because the GitHub App is already there.

Files

  • packages/db/src/schema/comms.ts
  • apps/web/src/app/api/webhooks/github/route.ts
  • apps/web/src/app/api/integrations/github/
  • packages/services/src/ for the GitHub client
  • packages/core/src/work/

Comment first

Post your answer to the loop prevention and state mapping questions before writing code.

Activity

  1. added
    enhancement
    needs design
    p1 high
    area: integrations
    on Aug 8, 2026
  2. added
    size: extra large
    points: 13
    schema change
    on Aug 8, 2026
  3. imshashank commented on Aug 8, 2026

    @imshashank
    ContributorAuthor

    Distinct from #229, though both involve GitHub Issues. #229 is a one time import. This issue is ongoing bidirectional sync, which is considerably harder because of loop prevention, conflicts and state mapping.

    Building the importer in #229 first is a reasonable path into this, and the two should not be built blind to each other.

    Moved to The extension surface milestone. It was filed under Community and repo health because dogfooding this repository is the motivation, but it is a product integration feature and belongs with the rest of them.

  4. moved this to Needs design in Orbit roadmapon Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: integrationsenhancementneeds designp1 highpoints: 13schema changesize: extra large

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions