Skip to content

fix(repos): include organization-created repositories in user repo li…#71

Open
Ahtisham992 wants to merge 1 commit into
Younesfdj:masterfrom
Ahtisham992:fix/org-repos-stars
Open

fix(repos): include organization-created repositories in user repo li…#71
Ahtisham992 wants to merge 1 commit into
Younesfdj:masterfrom
Ahtisham992:fix/org-repos-stars

Conversation

@Ahtisham992

Copy link
Copy Markdown

Closes #31

Changed ownerAffiliations from OWNER to [OWNER, ORGANIZATION_MEMBER] in the GraphQL profile query so org-created repositories (e.g. fastapi by tiangolo) are included in the star count.

Changes: client.ts (1 line), client.test.ts (new test verifying the query).

✅ npm run lint · npm run build · npm test — all green.

@ArtyomVancyan

ArtyomVancyan commented Jul 17, 2026

Copy link
Copy Markdown

This would be a neat solution; however, I've read the ORGANIZATION_MEMBER description, and it doesn't address the #31 issue - being a member of an organization doesn't mean owning all the repositories in it.

For example, I am a member of @jazzband, and about 78k stars are shown as mine while I haven't created or transferred any repositories to the organization, so I'm not the owner, and those 78k stars shouldn't be summed up with the stars of my owned repositories.

GitHub doesn't provide a one-query way to address this issue, so you can find my solution at #32 and see how I handled this.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The organization-created repositories are ignored

2 participants