Skip to content

feat: add organization-scoped contribution filtering#8046

Merged
JhaSourav07 merged 2 commits into
JhaSourav07:mainfrom
sureshsuriya:feat/7483-org-contribution-filtering
Jul 15, 2026
Merged

feat: add organization-scoped contribution filtering#8046
JhaSourav07 merged 2 commits into
JhaSourav07:mainfrom
sureshsuriya:feat/7483-org-contribution-filtering

Conversation

@sureshsuriya

Copy link
Copy Markdown
Contributor

Description

Fixes #7483

This PR adds support for organization-scoped contribution filtering.

Summary

  • Added an optional org query parameter to the GitHub and Wrapped API endpoints.
  • Added validation for the org parameter.
  • Updated the GitHub contribution fetching logic to support organization-scoped queries.
  • Updated cache keys to include the organization filter and avoid cache collisions.
  • Added unit and integration tests covering the new functionality while preserving existing behavior when org is not provided.

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

N/A (API/backend feature with no visual UI changes)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have started the repo.
  • I have made sure that I have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

@sureshsuriya is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

Asset PR Size Base Size Difference Status
static/chunks/9389-[hash].js 6.80 KB 6.79 KB +0.01 KB (+0.19%) 🔴 Regression

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3910.77 KB 3910.49 KB +0.28 KB (+0.01%)
Total CSS 326.92 KB 326.92 KB 0 B

@Aamod007 Aamod007 added level:intermediate Moderate complexity tasks quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements mentor:Aamod007 labels Jul 15, 2026

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work implementing organization-scoped contribution filtering! Updating the GraphQL queries to use organizationID, resolving the Node ID correctly, and safely adjusting the cache keys to prevent collisions were all handled perfectly. The tests look solid too. Approved!

@JhaSourav07 JhaSourav07 added the gssoc:approved PR has been reviewed and accepted for valid contribution points label Jul 15, 2026
@JhaSourav07 JhaSourav07 merged commit f427d12 into JhaSourav07:main Jul 15, 2026
9 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Congratulations @sureshsuriya! Your PR has been successfully merged. 🚀

Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.

⚠️ Important for GSSoC Contributors:
You are strictly advised to join our Discord Server as it is mandatory for all GSSoC participants. All important announcements, point claims, and community discussions happen there.

Keep building! 💻✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points level:intermediate Moderate complexity tasks mentor:Aamod007 quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add support for organization-scoped contribution filtering

3 participants