I'm trying to achieve something in the vein of Staticman: a static website on GitHub Pages that can use javascript and the GitHub API in order to commit to the repository it is based on, thereby acting somewhat as though it were a non-static site.
Accessing the underlying repository obviously requires the name of that repository. I could hard-code this, but that's not ideal, as I intend to fork/clone this repository, and I'd have to change that hard-code in each fork.
So I want to know if there's some way for JavaScript in a GitHub Pages website to automatically determine which repository it's been built from. Or, alternatively, to use Jekyll to insert the repository name during the static site construction.