Skip to content

feat: make GitHub token optional for graceful degradation#7

Merged
skylenet merged 1 commit into
masterfrom
fix-gh-token-requirement
Jan 9, 2026
Merged

feat: make GitHub token optional for graceful degradation#7
skylenet merged 1 commit into
masterfrom
fix-gh-token-requirement

Conversation

@skylenet
Copy link
Copy Markdown
Member

@skylenet skylenet commented Jan 9, 2026

Allow the API to start without a GitHub token or with an invalid token. The server will operate in degraded mode with GitHub-dependent features disabled (polling, dispatching, job cancellation).

Changes:

  • Remove github.token requirement from config validation
  • Add IsConnected() and ConnectionError() methods to GitHub client
  • Start() catches auth failures gracefully instead of returning error
  • Conditional initialization of poller and dispatcher based on connection
  • Status endpoint shows GitHub connection state with error details
  • Cancel job endpoint returns 503 when GitHub is unavailable

Allow the API to start without a GitHub token or with an invalid token.
The server will operate in degraded mode with GitHub-dependent features
disabled (polling, dispatching, job cancellation).

Changes:
- Remove github.token requirement from config validation
- Add IsConnected() and ConnectionError() methods to GitHub client
- Start() catches auth failures gracefully instead of returning error
- Conditional initialization of poller and dispatcher based on connection
- Status endpoint shows GitHub connection state with error details
- Cancel job endpoint returns 503 when GitHub is unavailable
@skylenet skylenet merged commit fb0f56a into master Jan 9, 2026
3 checks passed
@skylenet skylenet deleted the fix-gh-token-requirement branch January 9, 2026 10:20
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