scientific-python / scientific-python.org

Source for the Scientific Python Project homepage.
https://scientific-python.org
BSD 3-Clause "New" or "Revised" License
38 stars 34 forks source link

Feature/Easter egg: incorporate random.codes #116

Closed rossbar closed 1 year ago

rossbar commented 2 years ago

@MridulS has made a really fun feature at randomsource.codes that drops you into a web editor in a random source file from one of the core scientific Python ecosystem projects. It's sort of like a "review a random file" feature akin to Wikipedia's "random article" button.

This might be a fun feature to add to the site somewhere!

MridulS commented 2 years ago

https://github.com/MridulS/randomsource.codes this is the repo.

randomsource.codes currently redirects you to a random file (and opens it using github.dev) in one of the SPEC core projects :)

stefanv commented 2 years ago

I was chatting to Ross about this, and I think it would be great if we could redirect to a random issue or PR. That way, the person does not generate a new PR but helps us handle old ones! Thoughts?

MridulS commented 2 years ago

I like this idea too! I have deployed a new app to review random open issues/pr, it redirects to a random issue or PR

Can be accessed via review.randomsource.codes. It currently only fetches the latest 300 open issues/PR for a project as GitHub API limits to 100 responses in one call and with some projects this means it needs to make 30-35 calls, which takes up a lot of time. I'll work on it to make the user experience (wrt time to redirection) a bit better.

stefanv commented 2 years ago

Nice, I enjoyed playing with the latest version!

MridulS commented 2 years ago

Also I think this kind of goes along what folks at https://closember.org want to do too (?), maybe I should chat with them too.

Also now folks can randomise issues in one specific repo if they want to specifically look at one project, like https://review.randomsource.codes/numpy/numpy

stefanv commented 2 years ago

@MridulS Could we add an option to only do issues or PRs? Say https://review.randomsource.codes/numpy/numpy/issues vs https://review.randomsource.codes/numpy/numpy/pulls Translating to "Solve a random problem" vs "Review a random piece of work"

MridulS commented 1 year ago

Don't have the domain name anymore :/ It was 60$ to renew 🤷‍♂️