feat: add private help and feedback reports (#43)

Issue: #43
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-09-02 02:17:35 +03:00
parent 7490575799
commit 1e2e0fa61c
48 changed files with 3426 additions and 366 deletions
+11
View File
@@ -42,6 +42,7 @@ test('paths classify into A/B/C/D with the generated tree winning over source',
assert.equal(classify('demo/golden/baselines/view.png'), 'D');
assert.equal(classify('dist/houseplan-card.js'), 'D');
assert.equal(classify('test/canvas.test.mjs'), 'B');
assert.equal(classify('scripts/support-relay/relay.py'), 'B');
assert.equal(classify('.github/workflows/validate.yml'), 'B');
assert.equal(classify('package-lock.json'), 'B');
assert.equal(classify('docs/SCOPE.md'), 'C');
@@ -712,6 +713,16 @@ test('an infrastructure range is recognised by the absence of class A files (#20
assert.equal(isInfrastructureRange([]), false);
});
test('a support-relay-only change stays on the reviewed class-B track (#43)', () => {
const relay = makeCommit({
sha: 'd'.repeat(40), subject: 'Harden private support relay',
body: 'Issue: #43\nUser-Visible: no',
files: ['scripts/support-relay/hp_relay/app.py', 'scripts/support-relay/tests/test_relay.py'],
});
assert.deepEqual([...relay.classes], ['B']);
assert.equal(isInfrastructureRange([relay]), true);
});
test('statusOptional waives the status label but keeps every other rule-8 refusal (#207)', () => {
// Метки инфраструктурного issue по #118: тип, приоритет, тема — без S*.
const infraIssue = () => ({