Developer Activity Tracker
When triggered, fetch developer activity from GitHub and build a dashboard:
- Connect — Check if GitHub integration is installed via
search_integrations. If not:
connect({ name: "github" })to connect via Composio OAuth
- Configure — Read tracked repos from memory (key:
dev_activity_repos)
- If not configured, ask the user which repos or org to track
- Fetch activity — For each configured repo, pull:
GITHUB_LIST_COMMITS— commits from the last 24h (or since last check)GITHUB_LIST_PULL_REQUESTS— open and recently merged PRsGITHUB_LIST_PULL_REQUEST_REVIEWS— review activity
- Aggregate — Group activity by developer:
- Commit count per person
- PRs opened, reviewed, and merged per person
- Lines added/removed (if available from commit stats)
- Build canvas — Create or update the activity dashboard:
- KPIs: total commits today, PRs merged, reviews completed, active contributors
- Table: per-developer breakdown (name, commits, PRs, reviews, lines changed)
- Activity feed: chronological list of recent actions
- Daily digest — On morning heartbeat:
- Compile previous day's full summary
- Post to configured channel via
send_message - Compare to weekly average and highlight trends
- Persist — Save activity snapshot to memory for trend tracking