chore: drop upstream gsd issue and pr governance
Some checks failed
Tests / lint-tests (push) Has been cancelled
Tests / plugin-validate (push) Has been cancelled
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Has been cancelled
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Has been cancelled
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Has been cancelled
Tests / test (ubuntu-latest, 24) (push) Has been cancelled
Tests / test (inert CI) (push) Has been cancelled
Tests / conformance test (macos-latest, 24) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 1/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 2/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 3/3) (push) Has been cancelled
Tests / Coverage gate (merged shards) (push) Has been cancelled
Tests / QA loop walk (smell ratchet) (push) Has been cancelled
Tests / Required tests (push) Has been cancelled
Tests / Publish emitted-baseline artifact (push) Has been cancelled
Tests / PR mergeability (push) Has been cancelled
Tests / Base branch health (push) Has been cancelled
Tests / Detect test scope (push) Has been cancelled
Some checks failed
Tests / lint-tests (push) Has been cancelled
Tests / plugin-validate (push) Has been cancelled
Tests / test (ubuntu-latest, 24, shard 1/3) (push) Has been cancelled
Tests / test (ubuntu-latest, 24, shard 2/3) (push) Has been cancelled
Tests / test (ubuntu-latest, 24, shard 3/3) (push) Has been cancelled
Tests / test (ubuntu-latest, 24) (push) Has been cancelled
Tests / test (inert CI) (push) Has been cancelled
Tests / conformance test (macos-latest, 24) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 1/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 2/3) (push) Has been cancelled
Tests / conformance test (windows-latest, 24, shard 3/3) (push) Has been cancelled
Tests / Coverage gate (merged shards) (push) Has been cancelled
Tests / QA loop walk (smell ratchet) (push) Has been cancelled
Tests / Required tests (push) Has been cancelled
Tests / Publish emitted-baseline artifact (push) Has been cancelled
Tests / PR mergeability (push) Has been cancelled
Tests / Base branch health (push) Has been cancelled
Tests / Detect test scope (push) Has been cancelled
MSD does not use an issue tracker, and the inherited GSD community gates auto-closed PR #1 for lacking an issue-numbered title. Remove them: - workflows: require-issue-link, pr-title-validator, auto-close-unsolicited-prs, pr-template-format, close-draft-prs(-sweep), auto-label-issues, auto-branch, duplicate-check, duplicate-sweep, remove-duplicate-label - GSD PR and issue templates, plus the scripts only they used (require-issue-link-policy, pr-template-policy, pr-changed-files) and their tests - workflow lists in ci-test-scope, ci-pr-mergeability, workflow-maintainer-skip, lint-pr-check-project-dir, the docs-guard baseline and the conformance tiers - CONTRIBUTING: PR-against-next flow with no issue or template; PR titles are conventional without an issue ref; ADR/PRD files use the PR number - CONTEXT.md: drop the PR-template predicates (k328, templates-mandatory)
This commit is contained in:
@@ -462,50 +462,6 @@ describe('#4709 no shipped surface mints a retired runtime id', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('PR template runtime checklists name only supported runtimes', () => {
|
||||
// #1928's follow-up dropped Gemini CLI from .github/ISSUE_TEMPLATE/*.yml but missed the PR
|
||||
// templates, which kept offering it under "Runtimes tested" -- a contributor-facing surface
|
||||
// still advertising a retired runtime two releases later. Labels here are DISPLAY names
|
||||
// ("Claude Code", not "claude"), so they are checked against the label table, not the id set.
|
||||
const labels = new Set(
|
||||
Object.keys(registry.runtimes).map((id) => getRuntimeLabel(id)),
|
||||
);
|
||||
// Non-runtime checklist entries that legitimately appear in the same list.
|
||||
const NON_RUNTIME = /^(Other:|N\/A\b)/;
|
||||
const offenders = [];
|
||||
|
||||
const templateDir = path.join(ROOT, '.github', 'PULL_REQUEST_TEMPLATE');
|
||||
for (const name of fs.readdirSync(templateDir).filter((f) => f.endsWith('.md'))) {
|
||||
const file = path.join(templateDir, name);
|
||||
const fileLines = fs.readFileSync(file, 'utf8').split(/\r?\n/);
|
||||
let inRuntimeSection = false;
|
||||
fileLines.forEach((line, i) => {
|
||||
if (/^#+\s*Runtimes tested/i.test(line)) {
|
||||
inRuntimeSection = true;
|
||||
return;
|
||||
}
|
||||
// The section ends at the next heading or horizontal rule.
|
||||
if (inRuntimeSection && /^(#+\s|---\s*$)/.test(line)) {
|
||||
inRuntimeSection = false;
|
||||
return;
|
||||
}
|
||||
if (!inRuntimeSection) return;
|
||||
const m = /^\s*-\s*\[\s*\]\s*(.+?)\s*$/.exec(line);
|
||||
if (!m) return;
|
||||
const label = m[1];
|
||||
if (NON_RUNTIME.test(label)) return;
|
||||
if (!labels.has(label)) {
|
||||
offenders.push(`.github/PULL_REQUEST_TEMPLATE/${name}:${i + 1} offers "${label}"`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
assert.deepStrictEqual(offenders, [],
|
||||
'a PR template asks contributors which runtime they tested and lists one MSD does not '
|
||||
+ 'support. Labels must match the runtime label table (src/runtime-name-policy.cts '
|
||||
+ `RUNTIME_LABELS), so a retired runtime cannot linger here. Offenders:\n ${offenders.join('\n ')}`);
|
||||
});
|
||||
|
||||
/**
|
||||
* #4709 Phase 3 — the Gemini CLI reviewer lane is retired.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user