Skip to content

Feat/gitlab mr metrics#592

Open
Akanksha-020 wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Akanksha-020:feat/gitlab-mr-metrics
Open

Feat/gitlab mr metrics#592
Akanksha-020 wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Akanksha-020:feat/gitlab-mr-metrics

Conversation

@Akanksha-020
Copy link
Copy Markdown

Summary

Add optional GitLab MR analytics to PR Metrics (API + UI), with pagination and caching.
Closes #11

Note: GitLab stats appear only when session.gitlabToken is present (depends on GitLab OAuth PR).

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

Changes Made

  • Add GitLab MR fetch with pagination and caching in PR metrics API
  • Return optional gitlab metrics alongside GitHub stats when token is present
  • Render a GitLab MR section + donut chart in PR Analytics UI

How to Test

Steps for the reviewer to verify this works:

  1. Load the dashboard without a GitLab token; PR Analytics shows GitHub-only stats.
  2. With a GitLab token in session, hit /api/metrics/prs?refresh=1 and confirm GitLab stats render.
  3. Verify pagination by checking a user with >100 MRs (if available).

Screenshots (if UI change)

N/A

Checklist

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

@Akanksha-020 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature labels May 21, 2026
@github-actions
Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@Akanksha-020 Akanksha-020 force-pushed the feat/gitlab-mr-metrics branch from dffdd53 to 7f139d1 Compare May 21, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] GitLab — Merge Request analytics

1 participant