fix(triage): never clear needs-human or mark such a PR ready

needs-human is a maintainer gate (e.g. a project held for using the V1 SDK); re-running triage on a push used to replace it with ready.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
John SmithandClaude Opus 5.5 committed 2026-10-17 13:43:31 -04:00
1 parent c44dfd91d8
commit e2da1ec685
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ A weekly scout searches npm for packages published since V2 shipped that depend
| Workflow | When | What |
| :--- | :--- | :--- |
| `validate-pr.yml` | every PR | Required `validate` check |
| `triage.yml` | PR opened/updated | Labels and a results comment (base-branch code only) |
| `triage.yml` | PR opened/updated | Labels and a results comment (base-branch code only). `needs-human` is only ever removed by a maintainer |
| `generate-readme.yml` | push to main | README.md and dist/registry.json; fails without writing on any invalid entry. The regenerated commit goes through a bot PR (`bot/readme-*`) that merges itself once `validate` passes |
| `site.yml` | push to main, daily | Search site on GitHub Pages |
| `health.yml` | daily | Health report issue, rename and removal PRs |
+5 -1
View File
@@ -34,7 +34,11 @@ async function main() {
console.log('labels:', result.labels.join(', ') || '(none)');
if (dryRun) return;
await setTriageLabels(number, result.labels, current);
// needs-human is a maintainer gate: the bot may add it but never clears it or marks the PR ready
const labels = current.includes('needs-human')
? [...new Set([...result.labels.filter(l => l !== 'ready'), 'needs-human'])]
: result.labels;
await setTriageLabels(number, labels, current);
await addLabels(number, result.categories.map(c => `category: ${c}`).filter(l => !current.includes(l)));
if (result.dataChanged || result.errors.length) {
await upsertComment(number, MARKER, report);