Ship the GitHub receiver and och-import-github in every server package (#538)
Free, open-source timeline editor for exact dates at any scale.
Brought to you by:
athanclark
Originally created by: athanclark
Ships the GitHub receiver and och-import-github (#538) in every server package, mirroring the syslog receiver and och-import-logs. This is stacked on [#543], and I'll retarget it as the stack merges.
openchronology-github (OpenChronologyGitHub on Windows, openchronology_github on FreeBSD). Like syslog's:openchronology-logs (Local Service on Windows);openchronology-migrate restarts it only when it is enabled.och-import-github, and an example github.env.GITHUB_STATE to remember each item's board column, so each package gives it a folder of its own:| Platform | State folder |
|---|---|
| systemd and NixOS | StateDirectory=openchronology-github |
| FreeBSD | /var/db/openchronology-github |
| Homebrew | $(brew --prefix)/var/openchronology |
| Windows | C:\ProgramData\OpenChronology\github-state |
| Compose | a github-state volume |
scripts/aur-packages.mjs.build.sh and the pre/post-install scripts..cmd wrapper, build.ps1, setup, remove and the installer.nix/server.nix wrappers, and services.openchronology.github in nix/module.nix, which warns when environmentFile is unset.Dockerfile.app adds the symlink and a state folder.github service under the github profile, on host loopback only..env.example lists its variables.och-import-github --help in the image.docs/github.md gains "Running it as a service". The install, administration and Nix docs list the GitHub receiver wherever syslog appears.server-deb, server-rpm, server-arch, server-freebsd, server-homebrew and server-windows now check:--help;The new unit also joins the systemd-analyze verify list.
npm test passes;node --check passes on every changed JS file, and sh -n / bash -n on every changed script;GITHUB_RECEIVER_API_URL and GITHUB_RECEIVER_API_KEY. GITHUB_API_URL already names GitHub Enterprise's API, and GITHUB_API_KEY would read like a GitHub credential.🤖 Generated with Claude Code