Skip to content

feat: add GitHub Analytics integration#81

Merged
Empreiteiro merged 1 commit intomainfrom
feature/github-analytics-integration
Mar 18, 2026
Merged

feat: add GitHub Analytics integration#81
Empreiteiro merged 1 commit intomainfrom
feature/github-analytics-integration

Conversation

@Empreiteiro
Copy link
Copy Markdown
Owner

Summary

  • Add new GitHub Analytics data source type (github_analytics) distinct from the existing github_file source
  • Backend: ask_github_analytics.py script that fetches 8 tables (repositories, pull_requests, issues, commits, releases, workflows, workflow_runs, contributors) via GitHub REST API with Link header pagination, loads into temporary SQLite, and uses LLM + SQL for Q&A
  • Backend: github_analytics_router.py with test-connection, discover, and refresh-metadata endpoints
  • Frontend: GithubAnalyticsSourceForm.tsx with token/owner/repo inputs, connection testing, and resource discovery panel
  • Includes 5 report templates: PR Metrics, Issue Tracking, Commit Activity, CI/CD Health, Release Cadence
  • Updated all integration points: ask.py routing, crud.py valid types, main.py router registration, AddSourceModal.tsx, apiClient.ts, and LanguageContext.tsx (EN/PT/ES)

Test plan

  • Test connection with a valid GitHub PAT and public repo
  • Verify resource discovery shows repo stats (stars, forks, issues, language)
  • Connect a GitHub Analytics source and verify metadata refresh populates table schemas
  • Ask natural language questions about PRs, issues, commits, workflows, and contributors
  • Verify chart generation works with GitHub Analytics query results
  • Test with private repos (requires PAT with repo scope)
  • Verify i18n strings render correctly in PT and ES

Closes #70

🤖 Generated with Claude Code

@Empreiteiro Empreiteiro force-pushed the feature/github-analytics-integration branch from 169ca21 to 70c2a42 Compare March 18, 2026 21:54
…plates

Closes #70

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Empreiteiro Empreiteiro force-pushed the feature/github-analytics-integration branch from 70c2a42 to 5d8d9ec Compare March 18, 2026 22:05
@Empreiteiro Empreiteiro merged commit 6e843c8 into main Mar 18, 2026
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.

feat: GitHub Repository Analytics integration with fixed schema and report templates

1 participant