0.1.1: the reviewer has no built-in name

- Board text, timelines, the sign-in page and notifications use the name in
  reviewer.json; nothing says Pandu any more.
- Examples and docs use the brand: reviewer "Labuh", bot "labuh-bot",
  mentions "@labuh".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 19:52:49 +07:00
parent 112923640d
commit b8986003c9
14 changed files with 45 additions and 44 deletions

View File

@@ -13,7 +13,7 @@ import { viewAjuan } from '../src/boardview.ts';
import type { Note } from '../src/gitlab.ts';
import type { Checked } from '../src/contract.ts';
const reviewer: Reviewer = { name: 'Pandu', codexBin: '', model: 'm', effort: 'medium', rubric: 'rubric/rubric.md', budgetTokensPerAjuan: 1000, pricingPer1MTokens: null, knowledge: null };
const reviewer: Reviewer = { name: 'Labuh', codexBin: '', model: 'm', effort: 'medium', rubric: 'rubric/rubric.md', budgetTokensPerAjuan: 1000, pricingPer1MTokens: null, knowledge: null };
const PROJECT = 'acme/api';
const checked = (verdict: Checked['verdict'], reason: string): Checked => ({
verdict,
@@ -125,7 +125,7 @@ const ok = (c: Checked) => () => ({ ok: true, checked: c, attempts: 1, turns: []
test('labelled MR is reviewed once, a new commit updates the same comment in the same thread', async () => {
const w = world();
w.gl.mrs.set(5, { sha: 'aaaa1111', state: 'opened', labels: ['labuh'] });
w.gl.notes.set(5, [{ id: 1, body: '@pandu old question before Labuh', author: 'dev', system: false, createdAt: '' }]);
w.gl.notes.set(5, [{ id: 1, body: '@labuh old question before Labuh', author: 'dev', system: false, createdAt: '' }]);
w.script(ok(checked('no_go', 'API naik sebelum migrasi')), ok(checked('go', 'Urutan sudah benar')));
await w.hub.poll();
@@ -165,13 +165,13 @@ test('mentions are answered in the thread without changing the verdict; own note
await w.hub.poll();
await w.hub.drain();
w.gl.notes.set(6, [
{ id: 10, body: `${VERDICT_MARKER}\n### 🔴 Tahan — @pandu`, author: 'someone', system: false, createdAt: '' },
{ id: 11, body: 'added 1 commit @pandu', author: 'dev', system: true, createdAt: '' },
{ id: 12, body: '@Pandu kenapa ini tahan?', author: 'dev', system: false, createdAt: '' },
{ id: 10, body: `${VERDICT_MARKER}\n### 🔴 Tahan — @labuh`, author: 'someone', system: false, createdAt: '' },
{ id: 11, body: 'added 1 commit @labuh', author: 'dev', system: true, createdAt: '' },
{ id: 12, body: '@Labuh kenapa ini tahan?', author: 'dev', system: false, createdAt: '' },
]);
await w.hub.poll();
await w.hub.drain();
assert.deepEqual(w.calls.ask, ['@Pandu kenapa ini tahan?']);
assert.deepEqual(w.calls.ask, ['@Labuh kenapa ini tahan?']);
const a = w.store.ajuan(PROJECT, 6)!;
assert.equal(a.status, 'no_go');
const reply = w.store.outbox(a.id).find((o) => o.kind === 'reply')!;
@@ -267,7 +267,7 @@ test('merged MRs and removed labels close the ajuan; budget stops further review
});
test('live mode posts one verdict comment and edits it afterwards', async () => {
const w = world({ mode: 'live', botUsername: 'pandu_bot' });
const w = world({ mode: 'live', botUsername: 'labuh_bot' });
w.gl.mrs.set(14, { sha: 'a1', state: 'opened', labels: ['labuh'] });
w.script(ok(checked('no_go', 'Tahan')), ok(checked('go', 'Aman')));
await w.hub.poll();