/space-commit

The game where contributors become literal heroes! 🏆 Winner of the GitHub Actions Hackathon 2021

Primary LanguageTypeScriptMIT LicenseMIT

Space Commit is a simple, side-scroller, open-source game where contributors become the heroes and can experience their contributions right inside the game!

demo1

Check the game out here!.

How it works

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!

Image showing how the info is used in the game's main menu

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.

I want to contribute

If you wish to get involved with our space exploration program, please read our contributing docs.