Skip to content

[codex] Add GitHub App backend event relay#51

Merged
Daliys merged 3 commits into
developfrom
changes-vm-updates
Jun 15, 2026
Merged

[codex] Add GitHub App backend event relay#51
Daliys merged 3 commits into
developfrom
changes-vm-updates

Conversation

@Daliys

@Daliys Daliys commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Adds an event-driven GitHub App backend path so CI Scope can consume GitHub Actions state from webhooks and an outbound SSE stream instead of constantly polling GitHub from the Mac.

What changed

  • Added a small FastAPI/SQLite backend under backend/ with webhook signature verification, normalized workflow run/job storage, snapshot reads, and SSE streaming.
  • Updated the local broker to prefer backend snapshots/SSE and use slow GitHub polling only as fallback.
  • Mirrored backend snapshots into the existing local broker state files so the Swift UI contract stays intact.
  • Added Swift-side caching and broker-feed-first workflow run loading to avoid GitHub calls for fresh empty state.
  • Added LaunchAgent pass-through for backend URL/token environment settings.
  • Documented backend setup and added backend/broker tests.

Validation

  • python3 -m py_compile backend/ci_scope_backend/*.py 'CI Scope/Broker/CI Scope Broker'
  • python3 -m unittest discover tests
  • xcodebuild -project 'CI Scope.xcodeproj' -scheme 'CI Scope' -configuration Debug -destination 'platform=macOS' build

Notes

The requested dev branch does not exist on the remote, so this PR targets develop.

@Daliys Daliys marked this pull request as ready for review June 15, 2026 23:45
@Daliys Daliys merged commit f6b9f09 into develop Jun 15, 2026
3 checks passed
@Daliys Daliys deleted the changes-vm-updates branch June 15, 2026 23:59
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.

1 participant