Actions can react to issues and comments, so you could probably build a text-based RPG around that. For example, each player gets a branch and comment on the latest commit to trigger the next action (which is a commit). Or comment on an issue.
Anything else than text-based seems difficult though.
Anything else than text-based seems difficult though.