Skip to content

feat: add contributions range mapping logic

Banuri Koushik Reddy requested to merge Koushik into feat-date-range-mapping

Description

This MR introduces a dedicated GitLab contributions data layer to retrieve events and commits within a selected date range, with automatic pagination and timezone-aware datetime validation. It also includes utilities to aggregate and format contribution summaries.

Includes:

  • ContributionsAPIClient with:

    • get_events() and get_commits()
    • Automatic pagination handling
    • Timezone-aware datetime validation
  • build_contribution_map() to aggregate contributions by author and day

  • format_contribution_summary() to output results in table or CSV format

Uses official GitLab API v4 endpoints and handles empty responses gracefully.

No breaking changes.

Edited by Banuri Koushik Reddy

Merge request reports

Loading