mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
* fix(ci): labeler no longer fails when a PR already has 100 labels PR #137637 taught the size-label step to tolerate GitHub's HTTP 422 "Issues cannot have more than 100 labels", but every other label-adding step still threw it. On the 2026.9.1 closeout PR #137506 the maintainer author-role step failed that way and turned the cosmetic Labeler check red. Move the cap handling into one owner, scripts/github/labeler-label-cap.mjs, and route all eight addLabels sites across the label, label-issues, and backfill-pr-labels jobs through it: warn naming the skipped label, succeed, rethrow anything else. Each job checks out the trusted base commit (ref: github.sha, persist-credentials: false) like auto-response.yml so the github-script steps can import the module; no PR code runs. Delete the size step's pre-count guard so the 422 is the single canonical cap path. Rename test/scripts/labeler-size-label.test.ts to labeler-label-cap.test.ts; it executes the real step scripts with the real helper and adds maintainer step cap coverage plus a workflow-wide invariant that no script calls issues.addLabels directly. * test(ci): cover labeler cap helper return value and keep knip aware of it The knip full-tree unused-file scan flagged scripts/github/labeler-label-cap.mjs because only the workflow loads it dynamically. Import it from its owner test, like every other scripts/github module, with a case for the boolean result the backfill job's label bookkeeping depends on. |
||
|---|---|---|
| .. | ||
| barnacle-auto-response.mjs | ||
| dated-todo-upsert.mjs | ||
| dependency-guard.mjs | ||
| find-reusable-release-validation.sh | ||
| guard-shared.mjs | ||
| labeler-label-cap.mjs | ||
| pr-ci-sweeper.mjs | ||
| real-behavior-proof-check.mjs | ||
| real-behavior-proof-policy.mjs | ||
| release-validation-campaign.d.mts | ||
| release-validation-campaign.mjs | ||
| resolve-openclaw-ref.sh | ||
| resolve-release-check-artifacts.sh | ||
| run-openclaw-cross-os-release-checks.sh | ||
| security-sensitive-guard.mjs | ||
| validate-release-suite-filters.sh | ||