-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for tracking commits pushed directly to branch #373
Comments
I want to work on this issue. |
@rithviknishad Please review the logic and the method used to fetch the default branch name in the provided code snippet. |
Do events show If not, I don't think this will be a great value addition since most of the contributions are from forked repos. |
Okay, So I need to track also a commits from contributors forked repositories and also show them in profile page, right ? |
Yeah, but is it possible? |
Yup, It's possible
We can create these two functions or one by merging these two and call this from scrapper function. |
@rithviknishad Even if we utilize the |
@rithviknishad |
Yeah that'd be nice. That'd also bring ability to blend viewing of scrapped data with data from other sources |
Currently, the feed page only shows push activities for the core team with direct access. The issue is to display all commits for made by contributors(forked ones), including their individual commits. There are 3 cases
|
@rithviknishad I have designed an algo that allows contributions made from forked repos to be displayed on feed, Can i make a PR and work further on optimizing it? |
issue is about tracking commits in the flat data repo and not the feed page. |
so we need to have this algo in a scraper in github-scraper folder (fetchForkedCommits.ts) and a new ACTIVITY_TYPE "forked_commits", with new |
why do we need a new activity type called "forked_commits"? We should be tracking all types of commits via activity type: "pushed_commits" which includes forked or non forked ones |
exactly what i was thinking, |
yup, sounds good. and skip sorting. this is just a dump of data. if sorting is needed ever for any situation, it should be happening during the pre-build step when data from json is loaded for building the pages |
We can definitely do that. Could you please assign this issue to me? I’d like to move forward with implementing the discussed approach. |
How to test the changes made by adding new scraper in local data repo? (.json file of users) |
Just saw this. I believe you were able to figure out since you've already made the PR. |
not really, i tried deploying to vercel following the docs, but it failed |
you can test the scraper in your local. first you'll need to pre-load any existing data-repo (you can start from scratch too if you want). run this: https://github.com/ohcnetwork/leaderboard/blob/main/package.json#L12 second, you can
|
Thank You Sir, now i am able to test the scraper and debug the changes in terminal 🚀 |
feel free to make a PR to update the README 😄 |
yeah that'd be better 🙂 |
Problem
In certain cases, contributions are made to a project by pushing a commit to a branch. Leaderboard currently does not track such activities performed by the contributor.
Action Items
The text was updated successfully, but these errors were encountered: