up-for-grabs.net
up-for-grabs.net copied to clipboard
Show repo activity
Sometimes when you go to a project´s repo you see that the repo as a very low level of activity. The issues were opened to far back in time or are already closed, lot´s of PR´s to be approved, etc It would be useful to be able to see some information about the repo´s activity. Something like:
- Newest issue opened;
- Number of issues;
- Number of issues with the tag;
- Number of pending PR´s;
- Etc...
In #163 I'm working on showing the number of tagged issues. Getting repo-level stats would require an extra API call (so we'd hit the rate limit twice as fast), but we could probably glean a lot from just the tagged request: https://api.github.com/repos/dahlbyk/up-for-grabs.net/issues?labels=up-for-grabs.
Better yet, by querying with state=all
we could show count for closed tagged issues as well: https://api.github.com/repos/dahlbyk/up-for-grabs.net/issues?labels=up-for-grabs&state=all.
+1
Now that #163 is merged this up for grabs!
Does anyone know the related API calls for this request?
@304NotModified I'd start with what you can find by appending &state=all
to the current GitHub call. It won't give repo-wide stats, but we can probably show activity for the new contributor label.
Im working on adding some repo overview data here. @304NotModified are you still working on this as well?
I don't work at this. I was only trying to get more info in this thread, so others can easily start with it.
Anyone know if I should just be caching the new data along with the issue count? seems like the right place to utilize the existing github API call
Sounds good to me :)
I am working on this and I am saving the info to local storage but am not sure how to access it form the template. Do I need to compile and insert the html from the main.js file? or is there a way I can access the local storage data directly in the index template?
The most relevant would be the average time before a pull request is merged/closed.
Is there interest in this still? What would be a good metric to display?
Still interested! Good metrics to show:
- Number of pull requests merged in the last 6 months (preferably excluding self-merged ones),
- Number of different contributors who have had anything added to the version control system in the last 6 moths,
- Number of people who have posted anything (issue, comment, wiki, etc) to the project in the last 6 months,
- Medium time before a pull request is merged/closed, for pull requests merged/closed in the last 6 months.
All of these metrics could be combined into a global score (stars) by comparing them to the medium value for all registered projects.
Is this still up for grabs?
YEah @pherwanikar
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.