formbricks / oss.gg

Gamify Open Source Contributions
https://oss.gg
MIT License
44 stars 25 forks source link

[BUG] Fix Contributions Display on Profile Page #90

Closed jobenjada closed 3 months ago

jobenjada commented 4 months ago

Issue Summary

Every person registered on oss.gg has their own profile page following this schema:

oss.gg/githubid

On these pages, we want to show all of this users contributions to the different repos, their current level and later on rank, etc.

Currently, the contributions are not pulled in correctly. We have a few odd cases:

Manish: Contributed to both oss.gg and Formbricks, but none of this shows up here: https://oss.gg/manish-singh-bisht

image

Johannes: I have contributed to both oss.gg and Formbricks but only the Formbricks contributions show up: https://oss.gg/jobenjada

image

Steps to Reproduce

check out the pages I shared :)

Expected behavior

Make sure everyones contributions to the repos they are enrolled for are listed on the Profile page 💪

Other information

No response

Screenshots

No response

Desktop (please complete the following information)

- OS:
- Node:
- npm:
RA9 commented 4 months ago

/assign

oss-gg[bot] commented 4 months ago

With your current level, you are not yet able to work on this issue. Please have a look on oss.gg to see which levels can work on which issues 🤓

RA9 commented 4 months ago

I have the skills though, lol.

RA9 commented 4 months ago

/assign

RA9 commented 4 months ago

@jobenjada, this issue is persisting because of these lines:

getMergedPullRequestsByGithubLogin("formbricks/formbricks", githubLogin),
getOpenPullRequestsByGithubLogin("formbricks/formbricks", githubLogin),

We are hard coding the repo info instead of it being dynamic and tie to all the user's enrolled repos.