ainex-project / wiki

Official wiki for the Ainex project.
http://ainex-project.github.io/wiki
Creative Commons Attribution Share Alike 4.0 International
1 stars 2 forks source link

Game Compatibility Enumeration #1

Open halotroop2288 opened 2 years ago

halotroop2288 commented 2 years ago

In lieu of a real dynamic game compatibility tracker that fits the theme of the website, I'd like to create a script that updates a progress bar on the wiki. It would update once per day through GitHub Actions.

This way we could have a semi-up-to-date view of Ainex's compatibility progress all the time, the same way RPCS3.net does. RPCS3 Compatibility Tracker Progress Bars Xenia Wiki Compatibility Tracker Progress Bars Mockup

halotroop2288 commented 2 years ago

To get issues with a certain label, first automatically add them to a project. Then, use GitHub's REST API to get the cards in the column of the project for that label GET /projects/columns/{column_id}/cards Enumerate the number of responses.

To get the total number of issues in a repository, use GitHub's REST API: GET /repos/ainex-project/game-compatibility/issues Enumerate the number of responses.

~~Divide the number of labeled issues by the total number of issues and normalize the result. percentage = labeled / total * 100~~ ProgressBar supports fractions

This requires authentication.