Commit Graph

12 Commits

Author SHA1 Message Date
Michael Daniels
60d4d34426 ci/github-script: convert to ES modules
ES modules work better with TypeScript than CommonJS modules do.

Assisted-by: GPT 5.6 Luna & Terra (Codex)
(cherry picked from commit eb501c45ae)
2026-09-01 00:24:43 +00:00
Ihar Hrachyshka
bec0b0629c ci/github-script/check-target-branch: add policy tests
Tests reflect status quo. They establish baseline for later policy
changes. Some test cases are obvious bugs (e.g. mass rebuild checks are
skipped on staging-nixos), others may also be questionable.

Assisted-by: Codex gpt-5.6-sol medium
(cherry picked from commit e1aa8c4d16)
2026-08-28 08:10:43 +00:00
Ihar Hrachyshka
7c2242edbc ci/github-script: add npm scripts
Allows running `npm run typecheck` or `npm test`.

(cherry picked from commit 198d0cd473)
2026-08-28 08:10:43 +00:00
Michael Daniels
8e8424fbf0 ci/github-script: check types by default
(cherry picked from commit 7045e3afe1)
2026-08-11 00:45:05 +00:00
Michael Daniels
e6d3bf57d6 workflows: appease zizmor by installing npm pkgs from lockfile
(cherry picked from commit 4a45de05bd)
2026-07-24 21:46:01 -04:00
Michael Daniels
8a89d7a286 ci/github-script: update npm versions 2026-05-17 14:41:57 -04:00
Michael Daniels
3a4282bc13 ci/github-script: add instructions for dependency updates 2026-02-15 10:21:31 -05:00
Michael Daniels
d70a72500c ci/github-script: update dependencies, npm audit fix
`@actions/artifact` and `commander` now match the versions
used in `.github/workflows/bot.yml`.
2026-02-15 09:39:57 -05:00
Wolfgang Walther
2433050fb7 ci/github-script: use real @actions/core
This allows building markdown summaries, which is hard to mock.
2025-07-15 15:09:02 +02:00
Wolfgang Walther
d11eba1e1d ci/github-script: default to commonjs
Since all github-scripts need to be written in commonjs, we now default
to it by not setting package.json. Support from editors for .js files is
slightly better than .cjs. To still allow using module imports in the
test runner script, we trick node into loading the script itself as a
module again via `--import ./run`.
2025-07-14 10:35:18 +02:00
Wolfgang Walther
aaaabe0cb7 ci/github-script: add commander CLI interface
This makes it easier to add additional features.
2025-07-14 10:35:17 +02:00
Wolfgang Walther
6f6c625026 ci/github-script: move from ci/labels
This just moves things around to use less specific naming - `labels` is
only *one* script that can potentially be run locally while still being
written in github-script. Later, we can add more.
2025-07-14 10:35:13 +02:00