Skip to content

[FEAT] GitLab — contribution graph data #10

@Priyanshu-byte-coder

Description

@Priyanshu-byte-coder

Part of the GitLab integration (#6). Requires #9 (GitLab OAuth) to be merged first.

What Needs to Be Done

Fetch GitLab commit events and pipe them into the existing ContributionGraph component. The graph should merge GitHub + GitLab commits into one unified view.

Files to Look At

  • src/app/api/metrics/contributions/route.ts — add GitLab commits fetch logic
  • src/components/ContributionGraph.tsx — merge both data sources in display

Acceptance Criteria

  • Contributions route also fetches GitLab events when `session.gitlabToken` is present
  • ContributionGraph shows combined GitHub + GitLab commits
  • Falls back to GitHub-only if no GitLab token in session
  • No TypeScript errors, lint passes

Tech Context

GitLab Events API: `https://gitlab.com/api/v4/events?action=pushed&per_page=100\`
Auth header: `Authorization: Bearer `

The project is a single Next.js app deployed on Vercel — all API logic lives in `src/app/api/` route handlers.

Metadata

Metadata

Labels

enhancementNew feature or requestgssoc26GSSoC 2026 contributionlevel2GSSoC Level 2 - Medium complexity (25 points)mediumMedium difficulty task~4hEstimated 4 hours

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions