Skip to content

v0.12.1

Choose a tag to compare

@ToRvaLDz ToRvaLDz released this 08 Oct 15:04
· 525 commits to main since this release

Changed / Fixed

  • Label guard filters at job level. The shipped trailhead-label-guard.yml now skips the job with a job-level if: (a trailhead: label, a sender other than the repo owner, not in TRAILHEAD_LABEL_ALLOWLIST) instead of returning early from the script. A skipped job is not billed, while every started one costs at least one Actions minute, so the old guard ran into thousands of billed runs a month on a repo trailhead labels all the time. The in-script permission check is unchanged and stays the real defence.
  • Outdated guards are migrated. A new templates/trailhead-label-guard-sync.js classifies a repo's guard (absent / current / outdated / custom / foreign) and, with --apply, installs or upgrades it from the template, never touching a foreign or customised workflow. The first-use setup (chart/adopt) and /trailhead:update run it and offer the upgrade when the committed guard lacks the job-level if:.
  • Session-start label guard check. Like the pinned-model review, the SessionStart hook (or the load-first check on a host with no hook bus) offers to upgrade an outdated guard in the current repo, every session until you answer; the answer is stored in the gitignored .trailhead/label-guard-ack and the offer returns only if the guard file changes.
  • Website (site only; not part of the npm package). /docs gained a guide per verb cluster (chart, work, view, capture, manage) with a sidebar group, the commands page became an index linking them, the configuration page documents model profiles, tier defaults and the pinned model review, and a hooks page covers the session-start check and the commit-msg hook. Site CI now checks cross-page fragments and the site's own canonical URLs against the fresh build. This repo's own label guard already carries the job-level filter.