Skip to content
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

Game Compatibility Enumeration #1

Open
halotroop2288 opened this issue Jan 31, 2022 · 1 comment
Open

Game Compatibility Enumeration #1

halotroop2288 opened this issue Jan 31, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@halotroop2288
Copy link
Collaborator

halotroop2288 commented Jan 31, 2022

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 halotroop2288 added the enhancement New feature or request label Jan 31, 2022
@halotroop2288
Copy link
Collaborator Author

halotroop2288 commented Jan 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant