GitHup is a Stux.Group Service. Issues and pull requests are welcome; this document explains how to work on it consistently.
No installs are needed beyond Python 3.11+ (the action itself runs 3.12).
python -m unittest discover -s tests -t . # run the tests
./dev-server.sh [--no-dev-mode] [--lan] [port] # or dev-server.bat on Windowsdev-server generates example data, builds the status page into .dev/site with DEV_MODE
on and serves it at http://127.0.0.1:8000. Add --lan to open it from another device on your network
(it prints the addresses to use).
-
Standard library only. No third-party packages, ever: the action must run with nothing to install. That is why the config uses a home-grown YAML subset parser (
githup/yamlish.py). -
The page is self-contained. No external scripts, stylesheets or fonts; everything is inline in
githup/site.py. Keep colour paired with text, and keep ARIA labels in step with the markup. The one exception is the opt-insite.katblock, which loadshttps://kat.stuxie.dev/kat.jsand adds that origin toscript-srconly when it is set; the Privacy and Cookies texts mention it then. -
Don't promise a check interval. GitHub runs
schedule:workflows best-effort, so a*/5cron can run only a few times a day. Docs and default texts say what the workflow asks for and that checks run regularly; the page shows the real cadence measured from the data (summary.json→cadence). -
Data format is an API. Consumers' repos hold years of
data/files. Changes to the month files orsummary.jsonmust stay backwards compatible, or come with a migration and a new channel (v2). -
New behaviour needs a test in
tests/, and a config option needs a row in the README's config reference. -
Brand assets live in
assets/(icon.svg,logo.svg,logo-dark.svg). The status page inlines the icon asGITHUP_ICONingithup/site.py; keep the two in step.icon.png(512 × 512) andsocial-preview.png(1280 × 640, uploaded under Settings → General → Social preview) are rendered from the SVGs; re-render them if the SVGs change.
mainis what's live. Nothing is pushed to it directly: it only changes when a pull request fromstagingis merged. The floatingv1tag that status repos use followsmain(see below).stagingis the last check before live. It only changes when a pull request fromtestis merged.- Work happens on
test, or on a feature branch offtestthat's merged back into it. Releases are made ontesttoo;commit.sh/commit.batrefuse to run onstagingormain. - Going live: push
testwith its tag, open a pull request into staging (gh pr create --base staging --head test), check staging once it's merged, then open one from staging into main (gh pr create --base main --head staging). CI runs on all three branches and on every pull request. Only Leo merges.
GitHup uses Date Versioning: the UTC release date as YY.MM.DD, plus -1, -2...
for later releases the same UTC day. Never a future date.
-
Pick the version:
date -u +%y.%m.%d, adding-Nifgit tag -l "v<date>*"already lists that day. -
Add a
CHANGELOG.mdentry headed## vYY.MM.DDwith###subsections in this order: Added, Changed, Fixed, Removed, Security, Deprecated. Never a bare bullet list under a version. -
Set
VERSION.md(the bare version, nov) andgithup/__init__.pyto it; a test checks they match and that the changelog's newest heading is the same version. -
Update the README if relevant, then run
commit.sh(bash) orcommit.bat(Windows). They readVERSION.md, refuse to run onstagingormain, reject anything that is not a real, non-future Date Version, commit and create the annotatedvYY.MM.DDtag. They print the commands for the next steps. No need to edit them per release. -
Push the release and open a pull request into
staging; once staging is checked and merged, open one fromstagingintomain:git push origin test --tags gh pr create --base staging --head test gh pr create --base main --head staging # after the first one is merged
-
Once the pull request into
mainis merged, move the channel, so@v1users only ever get live releases:git fetch origin git tag -fa v1 -m "GitHup v1 (currently vYY.MM.DD)" "vYY.MM.DD^{commit}" git push --force origin v1 # consumers use StuxGroup/GitHup@v1
Only force-push
v1, never avYY.MM.DDtag.v1is a compatibility channel: a breaking change startsv2and leavesv1where it is.