Skip to content

Implement GitHub webhook sync and repo sync logic #89

@kivo360

Description

@kivo360

Problem

The GitHub integration routes have incomplete sync logic:

  • backend/omoi_os/api/routes/github.py line ~156: Webhook secret hardcoded to None instead of being read from project settings
  • backend/omoi_os/api/routes/github.py line ~206: TODO: Implement sync logic — the GitHub repo sync endpoint is a stub
  • backend/omoi_os/api/routes/github_repos.py line ~323: TODO: Check if webhook is configured — always returns false

What to do

  1. Load webhook secret from project settings or config
  2. Implement the sync logic — pull latest commits, branches, PRs from GitHub API
  3. Wire up webhook configuration check to return actual status

The GitHubIntegrationService and GitHubApiService already handle most GitHub API interactions.

Difficulty: Medium | Skill: Python (FastAPI, GitHub API)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions