os-ucsd / ideas

Have an idea for something Open Source @ UCSD can do? Send it here!
MIT License
0 stars 0 forks source link

A "stream" of open source @ ucsd activity #10

Open asg017 opened 4 years ago

asg017 commented 4 years ago

We were talking about this at our meeting yesterday, of having a "stream" of different events relating to open source of our club. For example:

Alex Garcia just accepted Pull Request Fix footer on front page on os-ucsd/website 2 hours ago Chau Vu just pushed 7 commits to os-ucsd/messenger-bot 12 hours ago Vivian Lee just created the Issue Posts fail to load on mobile in os-ucsd/tutorials 3 days ago

"Stream" events

What repositories should be included:

Here's an idea: Let's create a github topic called os-ucsd, that we can put on all of our repositories. Then, if someone wants their own repository to show up in the stream, they just have to put the os-ucsd topic on their repo. For example, if someone creates a ucsd class scraper or something, and it's owned by them and not the os-ucsd org, they just add the label os-ucsd and all the PRs/issues/releases/whatever would show up in the stream.

Technical Stuff

Github has an API we can use to get info about public repos. We could either use it client-side, meaning we have some javascript code on the website that does fetching on someones browser everytime they open the site, or server-side, meaning we scrape the data once on a server we own, they serve that data to the website.

Client-side has more rate-limiting, only ~60 calls i think. Server side means we have to set up a server, and that we'd have to continuously collect the data (on a cronjob, maybe every 15mins or so). If we have a lot of repos and commits/prs/issues to fetch, then server side may be our only option.

Design

There are a ton of cool ways we could display this. Timelines, profile pictures or project pictures, showing snippets of code or text. Let me know what you all think below, post some mockups or designs!

cc @blau0123 @BrandonFoey @cqvu @viviaann

cqvu commented 4 years ago

Me and @blau0123 are working on how to use the Github API to get the most recent PRs of all of the repos within an organization!