Space Commit is a simple, side-scroller, open-source game where contributors become the heroes and can experience their contributions right inside the game!
When a PR with a contribution is merged, it triggers a GitHub Actions Workflow. This workflow extracts the following information from the PR:
- The author's username
- The author's avatar
- The PR title
- The commit hash!
The workflow then overrides the file Contributor.ts
with this information and builds and deploys the whole project to GitHub Pages. Then, the game uses the data from Contributor.ts
to put the player's avatar inside our astronaut hero's helmet. Finally, the other info is used in the main menu to detail the latest contribution as if it was part of a space exploration program.
The latest contribution from each user is stored in the archive
folder, so you can still access it from the site after a new PR is merged.
If you wish to get involved with our space exploration program, please read our contributing docs.