feat(#4): CSV/JSON export for all pulse data #6

Merged
ti-paul merged 1 commit from feature/4-export-csv-json into main 2026-06-11 21:40:02 +00:00
Member

Feature: Export

Closes #4

New module: src/export.js

  • exportAllJSON: full JSON with summary, health, contributors, bursts
  • exportSummaryCSV: metrics as CSV
  • exportContributorsCSV: contributor stats
  • exportHealthCSV: health scores/grade
  • exportBurstsCSV: burst periods
  • exportDailyActivityCSV: Grafana/InfluxDB compatible

CLI usage

git-pulse --export json
git-pulse --export csv --metric contributors
git-pulse --export json --output pulse-data.json

Tests

21 new tests. 76 total tests pass.

## Feature: Export Closes #4 ### New module: src/export.js - `exportAllJSON`: full JSON with summary, health, contributors, bursts - `exportSummaryCSV`: metrics as CSV - `exportContributorsCSV`: contributor stats - `exportHealthCSV`: health scores/grade - `exportBurstsCSV`: burst periods - `exportDailyActivityCSV`: Grafana/InfluxDB compatible ### CLI usage ``` git-pulse --export json git-pulse --export csv --metric contributors git-pulse --export json --output pulse-data.json ``` ### Tests 21 new tests. **76 total tests pass.**
feat(#4): add CSV/JSON export for all pulse data
Some checks failed
CI / test (pull_request) Failing after 0s
2477547d38
New export module (src/export.js):
- exportAllJSON: full structured JSON with summary, health, contributors, bursts
- exportSummaryCSV: summary metrics as CSV
- exportContributorsCSV: contributor stats sorted by commits
- exportHealthCSV: health scores and grade as CSV
- exportBurstsCSV: burst periods as CSV
- exportDailyActivityCSV: daily activity for Grafana/InfluxDB

CLI integration:
- git-pulse --export json (default, all data)
- git-pulse --export csv --metric summary
- git-pulse --export csv --metric contributors
- git-pulse --export csv --metric health
- git-pulse --export csv --metric bursts
- git-pulse --export csv --metric daily
- git-pulse --export json --output pulse-data.json

21 new tests for export module. All 76 tests pass.
ti-paul left a comment
No description provided.
Feature complete. 21 tests, 76 total. Export JSON/CSV propre, CLI integre, Grafana-compatible. LGTM.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/git-pulse!6
No description provided.