mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-03 13:18:58 +00:00
feat: add private help and feedback reports (#43)
Issue: #43 User-Visible: yes
This commit is contained in:
@@ -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 = () => ({
|
||||
|
||||
Reference in New Issue
Block a user