Dough Git

commit

Track is-a.bot alongside is-a.dev with a combined dashboard

commit
6f08994382213c368b1e35b2de3c9a4ed3bf6644
author
Clove Twilight <[email protected]>
date
2026-11-20 07:18
GITHUB_REPOS lists the tracked repositories and replaces
GITHUB_REPO_OWNER/GITHUB_REPO_NAME. Every table gains a repo column and
pull requests are keyed on (repo, number). A one-time migration tags
existing rows and scanner state as is-a-dev/register.

The dashboard combines all repositories, with an All / per-repo filter
in the header that applies to every page.

Co-Authored-By: Sandrone <[email protected]>

diff --git a/.env.example b/.env.example
index 7ce5134..ee77cd7 100644
--- a/.env.example
+++ b/.env.example
@@ -6,8 +6,8 @@
 # Create one at https://github.com/settings/tokens (Tokens (classic))
 GITHUB_TOKEN=
 
-GITHUB_REPO_OWNER=is-a-dev
-GITHUB_REPO_NAME=register
+# Repositories to track, comma separated owner/name
+GITHUB_REPOS=is-a-dev/register,free-domains/is-a.bot
 
 # Discord bot token, and your own Discord user id (the only id allowed to press buttons)
 DISCORD_BOT_TOKEN=
diff --git a/README.md b/README.md
index 538e5d4..ed51e37 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,10 @@
 # is-a-tracker
 
-A personal moderation assistant for pull requests on `is-a-dev/register`.
+A personal moderation assistant for pull requests on `is-a-dev/register` and
+`free-domains/is-a.bot`. Set the list in `GITHUB_REPOS` (comma separated, `owner/name`).
+
+The dashboard combines every repository. Use the **All / is-a.dev / is-a.bot** filter in the
+header to narrow any page to one repository.
 
 It detects two violations, pings you on Discord, and acts **only** when you press a button.
 
@@ -21,17 +25,17 @@ One Deno process runs the scanner, the Discord bot, and the SvelteKit dashboard.
 
 ### GitHub token
 
-Use a **classic** personal access token. Fine-grained tokens cannot select `is-a-dev/register`
-unless the organisation allows it.
+Use a **classic** personal access token. Fine-grained tokens cannot select the tracked
+repositories unless their organisations allow it.
 
 1. Open <https://github.com/settings/tokens> and choose **Tokens (classic)**.
 2. Generate a new token and tick only **`public_repo`**.
 3. Paste it into `GITHUB_TOKEN`.
 
 - A classic token reaches every public repository your account can write to. The tool only
-  ever calls the repository set in `GITHUB_REPO_OWNER` and `GITHUB_REPO_NAME`.
+  ever calls the repositories set in `GITHUB_REPOS`.
 - At startup the tool checks the token and logs its account, its scopes, and whether that
-  account may close pull requests on the repository.
+  account may close pull requests on each repository.
 - If the organisation enforces single sign-on, authorise the token under **Configure SSO**.
 
 ### Discord bot
@@ -53,6 +57,7 @@ done, and nothing is sent to GitHub.
 ## Wording
 
 Edit `config/messages.jp` ([JPCL](https://www.npmjs.com/package/jpcl-lang)). Changes apply on the next action, with no restart.
+`{service}` in the NS close comment becomes the repository's service name, such as `is-a.bot`.
 
 Once a contributor fixes a change request, the next scan dismisses that review with the rule's
 `reviewDismissal` wording and marks the finding resolved.
diff --git a/config/messages.jp b/config/messages.jp
index 48f7f8f..751d019 100644
--- a/config/messages.jp
+++ b/config/messages.jp
@@ -1,7 +1,7 @@
 # config/messages.jp
 
 [nsRecords]
-closeComment: "Thanks for your interest in is-a.dev!\n\nThis pull request requests `NS` records. We do not grant nameserver records to first-time contributors, so I am closing this pull request.\n\nYou are welcome to open a new pull request using other record types, such as `A`, `AAAA`, `CNAME`, `MX` or `TXT`. Once you have an accepted registration, you can request `NS` records with a clear justification for why they are needed.\n\nPlease see the [Docs](https://docs.is-a.dev/faq/#who-can-use-ns-records) for more information.\n<sub>This comment was sent with an [automated tool](https://doughmination.gay/automated), and approved by a human. I do not see replies.</sub>"
+closeComment: "Thanks for your interest in {service}!\n\nThis pull request requests `NS` records. We do not grant nameserver records to first-time contributors, so I am closing this pull request.\n\nYou are welcome to open a new pull request using other record types, such as `A`, `AAAA`, `CNAME`, `MX` or `TXT`. Once you have an accepted registration, you can request `NS` records with a clear justification for why they are needed.\n\nPlease see the [Docs](https://docs.is-a.dev/faq/#who-can-use-ns-records) for more information.\n<sub>This comment was sent with an [automated tool](https://doughmination.gay/automated), and approved by a human. I do not see replies.</sub>"
 
 [unsupportedCname]
 reviewComment: "Your `CNAME` record points at a host that we do not support. Please point it at a supported host, or use another record type such as `A` or `AAAA`.\n\nIf you have requested a CloudFlare Worker, please use a legacy CloudFlare Pages project."
diff --git a/src/lib/labels.ts b/src/lib/labels.ts
index 5f0929f..e58c73d 100644
--- a/src/lib/labels.ts
+++ b/src/lib/labels.ts
@@ -30,6 +30,14 @@ export const statusLabels: Record<string, string> = {
 	dryRun: 'Dry run'
 };
 
+// is-a-dev/register -> is-a.dev, free-domains/is-a.bot -> is-a.bot
+export function repoLabel(repo: string): string {
+	const [owner, name] = repo.split('/');
+
+	// shortcut: guesses the service from the repo name, fine for the is-a family
+	return name.includes('.') ? name : owner.replace(/-([^-]+)$/, '.$1');
+}
+
 export function labelFor(labels: Record<string, string>, key: string): string {
 	return labels[key] ?? key;
 }
diff --git a/src/lib/server/config.ts b/src/lib/server/config.ts
index 20b1bc4..8f6b0cb 100644
--- a/src/lib/server/config.ts
+++ b/src/lib/server/config.ts
@@ -4,8 +4,8 @@
 
 export interface AppConfig {
 	githubToken: string;
-	repoOwner: string;
-	repoName: string;
+	// Each entry is owner/name
+	repos: string[];
 	discordToken: string;
 	discordUserId: string;
 	discordChannelId: string;
@@ -49,8 +49,10 @@ let cachedConfig: AppConfig | undefined;
 export function getConfig(): AppConfig {
 	cachedConfig ??= {
 		githubToken: readText('GITHUB_TOKEN'),
-		repoOwner: readText('GITHUB_REPO_OWNER', 'is-a-dev'),
-		repoName: readText('GITHUB_REPO_NAME', 'register'),
+		repos: readText('GITHUB_REPOS', 'is-a-dev/register,free-domains/is-a.bot')
+			.split(',')
+			.map((repo) => repo.trim())
+			.filter((repo) => repo !== ''),
 		discordToken: readText('DISCORD_BOT_TOKEN'),
 		discordUserId: readText('DISCORD_USER_ID'),
 		discordChannelId: readText('DISCORD_CHANNEL_ID'),
@@ -71,8 +73,13 @@ export function getConfig(): AppConfig {
 	return cachedConfig;
 }
 
-export function getRepoPath(): string {
-	const { repoOwner, repoName } = getConfig();
+export function getRepoPath(repo: string): string {
+	return `/repos/${repo}`;
+}
+
+// The dashboard's ?repo= filter; anything not configured means every repository
+export function readRepoFilter(url: URL): string | null {
+	const repo = url.searchParams.get('repo');
 
-	return `/repos/${repoOwner}/${repoName}`;
+	return repo !== null && getConfig().repos.includes(repo) ? repo : null;
 }
diff --git a/src/lib/server/db/auditLog.ts b/src/lib/server/db/auditLog.ts
index 14cfaac..51ed70d 100644
--- a/src/lib/server/db/auditLog.ts
+++ b/src/lib/server/db/auditLog.ts
@@ -12,6 +12,7 @@ export function recordAction(action: NewAction): void {
 		.query(
 			`INSERT INTO actions (
 				findingId,
+				repo,
 				prNumber,
 				contributor,
 				ruleId,
@@ -22,10 +23,11 @@ export function recordAction(action: NewAction): void {
 				githubUrl,
 				createdAt
 			)
-			VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
+			VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
 		)
 		.run(
 			action.findingId,
+			action.repo,
 			action.prNumber,
 			action.contributor,
 			action.ruleId,
@@ -38,21 +40,32 @@ export function recordAction(action: NewAction): void {
 		);
 }
 
-export function searchActions(searchText: string, limit = 200): ActionRow[] {
+// repo null = every repository
+export function searchActions(
+	searchText: string,
+	repo: string | null = null,
+	limit = 200
+): ActionRow[] {
 	const pattern = `%${searchText.trim().replace(/^#/, '')}%`;
 
 	return getDatabase()
-		.query<ActionRow, [string, string, string, string, string, number]>(
+		.query<
+			ActionRow,
+			[string | null, string | null, string, string, string, string, string, number]
+		>(
 			`SELECT * FROM actions
-			 WHERE CAST(prNumber AS TEXT) LIKE ?
-				OR contributor LIKE ?
-				OR ruleId LIKE ?
-				OR actionType LIKE ?
-				OR status LIKE ?
+			 WHERE (? IS NULL OR repo = ?)
+				AND (
+					CAST(prNumber AS TEXT) LIKE ?
+					OR contributor LIKE ?
+					OR ruleId LIKE ?
+					OR actionType LIKE ?
+					OR status LIKE ?
+				)
 			 ORDER BY id DESC
 			 LIMIT ?`
 		)
-		.all(pattern, pattern, pattern, pattern, pattern, limit);
+		.all(repo, repo, pattern, pattern, pattern, pattern, pattern, limit);
 }
 
 export interface DailyActionCount {
@@ -69,29 +82,33 @@ export interface ModerationStats {
 	daily: DailyActionCount[];
 }
 
-function countWhere(table: 'actions' | 'findings', condition: string): number {
+function countWhere(table: 'actions' | 'findings', condition: string, repo: string | null): number {
 	const row = getDatabase()
-		.query<{ total: number }, []>(`SELECT COUNT(*) AS total FROM ${table} WHERE ${condition}`)
-		.get();
+		.query<{ total: number }, [string | null, string | null]>(
+			`SELECT COUNT(*) AS total FROM ${table}
+			 WHERE (? IS NULL OR repo = ?) AND ${condition}`
+		)
+		.get(repo, repo);
 
 	return row?.total ?? 0;
 }
 
-// Only successful actions count towards statistics
-export function getModerationStats(dayCount = 30): ModerationStats {
+// Only successful actions count towards statistics; repo null = every repository
+export function getModerationStats(dayCount = 30, repo: string | null = null): ModerationStats {
 	const rows = getDatabase()
-		.query<DailyActionCount, [string]>(
+		.query<DailyActionCount, [string | null, string | null, string]>(
 			`SELECT
 				substr(createdAt, 1, 10) AS day,
 				SUM(actionType = 'closePr') AS closures,
 				SUM(actionType = 'requestChanges') AS reviews
 			 FROM actions
-			 WHERE status = 'success'
+			 WHERE (? IS NULL OR repo = ?)
+				AND status = 'success'
 				AND actionType IN ('closePr', 'requestChanges')
 				AND createdAt >= ?
 			 GROUP BY day`
 		)
-		.all(new Date(Date.now() - dayCount * 86_400_000).toISOString());
+		.all(repo, repo, new Date(Date.now() - dayCount * 86_400_000).toISOString());
 
 	const countsByDay = new Map(rows.map((row) => [row.day, row]));
 	const daily: DailyActionCount[] = [];
@@ -108,13 +125,18 @@ export function getModerationStats(dayCount = 30): ModerationStats {
 	}
 
 	return {
-		closedTotal: countWhere('actions', `status = 'success' AND actionType = 'closePr'`),
+		closedTotal: countWhere('actions', `status = 'success' AND actionType = 'closePr'`, repo),
 		nsClosures: countWhere(
 			'actions',
-			`status = 'success' AND actionType = 'closePr' AND ruleId = 'nsRecords'`
+			`status = 'success' AND actionType = 'closePr' AND ruleId = 'nsRecords'`,
+			repo
+		),
+		reviewsTotal: countWhere(
+			'actions',
+			`status = 'success' AND actionType = 'requestChanges'`,
+			repo
 		),
-		reviewsTotal: countWhere('actions', `status = 'success' AND actionType = 'requestChanges'`),
-		pendingTotal: countWhere('findings', `status IN ('pending', 'acting')`),
+		pendingTotal: countWhere('findings', `status IN ('pending', 'acting')`, repo),
 		daily
 	};
 }
diff --git a/src/lib/server/db/contributors.ts b/src/lib/server/db/contributors.ts
index 6496bb8..b74cf9a 100644
--- a/src/lib/server/db/contributors.ts
+++ b/src/lib/server/db/contributors.ts
@@ -5,24 +5,28 @@
 import { getDatabase, nowIso } from './database.ts';
 
 export interface ContributorRow {
+	repo: string;
 	login: string;
 	mergedPrCount: number;
 	checkedAt: string;
 }
 
-export function getContributor(login: string): ContributorRow | null {
+// Merged PR counts are per repository
+export function getContributor(repo: string, login: string): ContributorRow | null {
 	return getDatabase()
-		.query<ContributorRow, [string]>('SELECT * FROM contributors WHERE login = ?')
-		.get(login.toLowerCase());
+		.query<ContributorRow, [string, string]>(
+			'SELECT * FROM contributors WHERE repo = ? AND login = ?'
+		)
+		.get(repo, login.toLowerCase());
 }
 
-export function saveContributor(login: string, mergedPrCount: number): void {
+export function saveContributor(repo: string, login: string, mergedPrCount: number): void {
 	getDatabase()
 		.query(
-			`INSERT INTO contributors (login, mergedPrCount, checkedAt) VALUES (?, ?, ?)
-			 ON CONFLICT (login) DO UPDATE SET
+			`INSERT INTO contributors (repo, login, mergedPrCount, checkedAt) VALUES (?, ?, ?, ?)
+			 ON CONFLICT (repo, login) DO UPDATE SET
 				mergedPrCount = excluded.mergedPrCount,
 				checkedAt = excluded.checkedAt`
 		)
-		.run(login.toLowerCase(), mergedPrCount, nowIso());
+		.run(repo, login.toLowerCase(), mergedPrCount, nowIso());
 }
diff --git a/src/lib/server/db/database.test.ts b/src/lib/server/db/database.test.ts
new file mode 100644
index 0000000..5b804fc
--- /dev/null
+++ b/src/lib/server/db/database.test.ts
@@ -0,0 +1,83 @@
+/* src/lib/server/db/database.test.ts
+ * MIT — (c) Doughmination System®
+ */
+
+import assert from 'node:assert/strict';
+import { DatabaseSync } from 'node:sqlite';
+import { describe, test } from 'node:test';
+
+import { legacyRepo, migrateToRepositories } from './database.ts';
+
+// The single-repo schema as it was before the repo column
+const legacySchema = `
+CREATE TABLE pullRequests (
+	number INTEGER PRIMARY KEY, title TEXT NOT NULL, author TEXT NOT NULL,
+	authorAssociation TEXT NOT NULL, url TEXT NOT NULL, state TEXT NOT NULL,
+	headSha TEXT NOT NULL, updatedAt TEXT NOT NULL, scannedSha TEXT, scannedAt TEXT
+);
+CREATE TABLE findings (
+	id INTEGER PRIMARY KEY AUTOINCREMENT,
+	prNumber INTEGER NOT NULL REFERENCES pullRequests(number),
+	ruleId TEXT NOT NULL, filePath TEXT NOT NULL, headSha TEXT NOT NULL,
+	reason TEXT NOT NULL, status TEXT NOT NULL, lastOutcome TEXT, commentId INTEGER,
+	discordChannelId TEXT, discordMessageId TEXT, createdAt TEXT NOT NULL,
+	updatedAt TEXT NOT NULL, UNIQUE (prNumber, ruleId, filePath)
+);
+CREATE INDEX findingsByStatus ON findings (status);
+CREATE TABLE actions (
+	id INTEGER PRIMARY KEY AUTOINCREMENT, findingId INTEGER REFERENCES findings(id),
+	prNumber INTEGER NOT NULL, contributor TEXT NOT NULL, ruleId TEXT NOT NULL,
+	actionType TEXT NOT NULL, source TEXT NOT NULL, status TEXT NOT NULL,
+	detail TEXT NOT NULL, githubUrl TEXT, createdAt TEXT NOT NULL
+);
+CREATE INDEX actionsByCreatedAt ON actions (createdAt);
+CREATE TABLE contributors (
+	login TEXT PRIMARY KEY, mergedPrCount INTEGER NOT NULL, checkedAt TEXT NOT NULL
+);
+CREATE TABLE keyValue (key TEXT PRIMARY KEY, value TEXT NOT NULL);
+
+INSERT INTO pullRequests VALUES (7, 't', 'a', 'NONE', 'u', 'open', 's', 'd', NULL, NULL);
+INSERT INTO findings VALUES (3, 7, 'nsRecords', 'f', 's', 'r', 'pending', NULL, NULL, NULL, NULL, 'c', 'c');
+INSERT INTO actions VALUES (1, 3, 7, 'a', 'nsRecords', 'ignore', 'discord', 'success', 'd', NULL, 'c');
+INSERT INTO contributors VALUES ('a', 2, 'c');
+INSERT INTO keyValue VALUES ('scanner.watermark', 'w'), ('discordAvatarHash', 'h');
+`;
+
+describe('repository migration', () => {
+	test('keeps every row, tags it with the legacy repo, and allows a second repo', () => {
+		const connection = new DatabaseSync(':memory:');
+
+		connection.exec(legacySchema);
+		migrateToRepositories(connection);
+
+		const finding = connection.prepare('SELECT id, repo, prNumber FROM findings').get();
+		const action = connection.prepare('SELECT findingId, repo FROM actions').get();
+		const contributor = connection.prepare('SELECT repo, login FROM contributors').get();
+		const keys = connection.prepare('SELECT key FROM keyValue ORDER BY key').all();
+
+		assert.deepEqual({ ...finding }, { id: 3, repo: legacyRepo, prNumber: 7 });
+		assert.deepEqual({ ...action }, { findingId: 3, repo: legacyRepo });
+		assert.deepEqual({ ...contributor }, { repo: legacyRepo, login: 'a' });
+		assert.deepEqual(
+			keys.map((row) => row.key),
+			['discordAvatarHash', `scanner.watermark:${legacyRepo}`]
+		);
+
+		const indexes = connection
+			.prepare(`SELECT name FROM sqlite_master WHERE type = 'index' AND name LIKE '%By%'`)
+			.all();
+
+		assert.equal(indexes.length, 2);
+
+		// The same PR number in another repository no longer collides
+		connection.exec(
+			`INSERT INTO pullRequests (repo, number, title, author, authorAssociation, url, state, headSha, updatedAt)
+			 VALUES ('free-domains/is-a.bot', 7, 't', 'a', 'NONE', 'u', 'open', 's', 'd')`
+		);
+
+		// A second run is a no-op
+		migrateToRepositories(connection);
+
+		assert.equal(connection.prepare('SELECT COUNT(*) AS total FROM pullRequests').get()?.total, 2);
+	});
+});
diff --git a/src/lib/server/db/database.ts b/src/lib/server/db/database.ts
index 38e37f9..cbc3aec 100644
--- a/src/lib/server/db/database.ts
+++ b/src/lib/server/db/database.ts
@@ -10,7 +10,8 @@ import { getConfig } from '../config.ts';
 
 const schema = `
 CREATE TABLE IF NOT EXISTS pullRequests (
-	number            INTEGER PRIMARY KEY,
+	repo              TEXT NOT NULL,
+	number            INTEGER NOT NULL,
 	title             TEXT NOT NULL,
 	author            TEXT NOT NULL,
 	authorAssociation TEXT NOT NULL,
@@ -19,12 +20,14 @@ CREATE TABLE IF NOT EXISTS pullRequests (
 	headSha           TEXT NOT NULL,
 	updatedAt         TEXT NOT NULL,
 	scannedSha        TEXT,
-	scannedAt         TEXT
+	scannedAt         TEXT,
+	PRIMARY KEY (repo, number)
 );
 
 CREATE TABLE IF NOT EXISTS findings (
 	id               INTEGER PRIMARY KEY AUTOINCREMENT,
-	prNumber         INTEGER NOT NULL REFERENCES pullRequests(number),
+	repo             TEXT NOT NULL,
+	prNumber         INTEGER NOT NULL,
 	ruleId           TEXT NOT NULL,
 	filePath         TEXT NOT NULL,
 	headSha          TEXT NOT NULL,
@@ -36,7 +39,8 @@ CREATE TABLE IF NOT EXISTS findings (
 	discordMessageId TEXT,
 	createdAt        TEXT NOT NULL,
 	updatedAt        TEXT NOT NULL,
-	UNIQUE (prNumber, ruleId, filePath)
+	FOREIGN KEY (repo, prNumber) REFERENCES pullRequests (repo, number),
+	UNIQUE (repo, prNumber, ruleId, filePath)
 );
 
 CREATE INDEX IF NOT EXISTS findingsByStatus ON findings (status);
@@ -44,6 +48,7 @@ CREATE INDEX IF NOT EXISTS findingsByStatus ON findings (status);
 CREATE TABLE IF NOT EXISTS actions (
 	id          INTEGER PRIMARY KEY AUTOINCREMENT,
 	findingId   INTEGER REFERENCES findings(id),
+	repo        TEXT NOT NULL,
 	prNumber    INTEGER NOT NULL,
 	contributor TEXT NOT NULL,
 	ruleId      TEXT NOT NULL,
@@ -58,9 +63,11 @@ CREATE TABLE IF NOT EXISTS actions (
 CREATE INDEX IF NOT EXISTS actionsByCreatedAt ON actions (createdAt);
 
 CREATE TABLE IF NOT EXISTS contributors (
-	login         TEXT PRIMARY KEY,
+	repo          TEXT NOT NULL,
+	login         TEXT NOT NULL,
 	mergedPrCount INTEGER NOT NULL,
-	checkedAt     TEXT NOT NULL
+	checkedAt     TEXT NOT NULL,
+	PRIMARY KEY (repo, login)
 );
 
 CREATE TABLE IF NOT EXISTS keyValue (
@@ -69,6 +76,66 @@ CREATE TABLE IF NOT EXISTS keyValue (
 );
 `;
 
+// Before multi-repo support, every row belonged to this repository
+export const legacyRepo = 'is-a-dev/register';
+
+const repoTables = ['pullRequests', 'findings', 'actions', 'contributors'];
+
+// Rebuilds the single-repo tables with a repo column; runs once, inside one transaction
+export function migrateToRepositories(connection: DatabaseSync): void {
+	const columns = connection.prepare('PRAGMA table_info(pullRequests)').all() as {
+		name: string;
+	}[];
+
+	const isLegacy = columns.length > 0 && !columns.some((column) => column.name === 'repo');
+
+	if (!isLegacy) {
+		return;
+	}
+
+	// Foreign keys cannot be switched inside a transaction, and would block the rebuild
+	connection.exec('PRAGMA foreign_keys = OFF;');
+	connection.exec('BEGIN;');
+
+	try {
+		for (const table of repoTables) {
+			connection.exec(`ALTER TABLE ${table} RENAME TO ${table}Legacy;`);
+		}
+
+		// Old index names would make the schema's CREATE INDEX IF NOT EXISTS a no-op
+		connection.exec('DROP INDEX IF EXISTS findingsByStatus;');
+		connection.exec('DROP INDEX IF EXISTS actionsByCreatedAt;');
+		connection.exec(schema);
+
+		for (const table of repoTables) {
+			const legacyColumns = (
+				connection.prepare(`PRAGMA table_info(${table}Legacy)`).all() as { name: string }[]
+			)
+				.map((column) => column.name)
+				.join(', ');
+
+			connection
+				.prepare(
+					`INSERT INTO ${table} (repo, ${legacyColumns})
+					 SELECT ?, ${legacyColumns} FROM ${table}Legacy`
+				)
+				.run(legacyRepo);
+
+			connection.exec(`DROP TABLE ${table}Legacy;`);
+		}
+
+		// Scanner state is now kept per repository
+		connection
+			.prepare(`UPDATE keyValue SET key = key || ':' || ? WHERE key LIKE 'scanner.%'`)
+			.run(legacyRepo);
+
+		connection.exec('COMMIT;');
+	} catch (error) {
+		connection.exec('ROLLBACK;');
+		throw error;
+	}
+}
+
 type NamedParameters = Record<string, SQLInputValue>;
 
 type QueryParameters = SQLInputValue[] | [NamedParameters];
@@ -131,8 +198,12 @@ export function getDatabase(): TrackerDatabase {
 		mkdirSync(dirname(databasePath), { recursive: true });
 	}
 
-	database = wrapDatabase(new DatabaseSync(databasePath));
-	database.exec('PRAGMA journal_mode = WAL;');
+	const connection = new DatabaseSync(databasePath);
+
+	connection.exec('PRAGMA journal_mode = WAL;');
+	migrateToRepositories(connection);
+
+	database = wrapDatabase(connection);
 	database.exec('PRAGMA foreign_keys = ON;');
 	database.exec(schema);
 
diff --git a/src/lib/server/db/findings.ts b/src/lib/server/db/findings.ts
index e1cb2e2..d155469 100644
--- a/src/lib/server/db/findings.ts
+++ b/src/lib/server/db/findings.ts
@@ -12,7 +12,9 @@ const joinedSelect = `
 		pullRequests.author,
 		pullRequests.url
 	FROM findings
-	JOIN pullRequests ON pullRequests.number = findings.prNumber
+	JOIN pullRequests
+		ON pullRequests.repo = findings.repo
+		AND pullRequests.number = findings.prNumber
 `;
 
 export function getFinding(id: number): FindingWithPullRequest | null {
@@ -21,20 +23,22 @@ export function getFinding(id: number): FindingWithPullRequest | null {
 		.get(id);
 }
 
-export function listFindingsForPullRequest(prNumber: number): FindingRow[] {
+export function listFindingsForPullRequest(repo: string, prNumber: number): FindingRow[] {
 	return getDatabase()
-		.query<FindingRow, [number]>('SELECT * FROM findings WHERE prNumber = ?')
-		.all(prNumber);
+		.query<FindingRow, [string, number]>('SELECT * FROM findings WHERE repo = ? AND prNumber = ?')
+		.all(repo, prNumber);
 }
 
-export function listOpenFindings(): FindingWithPullRequest[] {
+// repo null = every repository
+export function listOpenFindings(repo: string | null = null): FindingWithPullRequest[] {
 	return getDatabase()
-		.query<FindingWithPullRequest, []>(
+		.query<FindingWithPullRequest, [string | null, string | null]>(
 			`${joinedSelect}
 			 WHERE findings.status IN ('pending', 'acting')
+				AND (? IS NULL OR findings.repo = ?)
 			 ORDER BY findings.createdAt DESC`
 		)
-		.all();
+		.all(repo, repo);
 }
 
 // Pending findings that never reached Discord, oldest first
@@ -49,6 +53,7 @@ export function listUnnotifiedFindings(): FindingWithPullRequest[] {
 }
 
 export interface NewFinding {
+	repo: string;
 	prNumber: number;
 	ruleId: RuleId;
 	filePath: string;
@@ -62,6 +67,7 @@ export function insertFinding(finding: NewFinding): number {
 	const result = getDatabase()
 		.query(
 			`INSERT INTO findings (
+				repo,
 				prNumber,
 				ruleId,
 				filePath,
@@ -71,9 +77,10 @@ export function insertFinding(finding: NewFinding): number {
 				createdAt,
 				updatedAt
 			)
-			VALUES (?, ?, ?, ?, ?, 'pending', ?, ?)`
+			VALUES (?, ?, ?, ?, ?, ?, 'pending', ?, ?)`
 		)
 		.run(
+			finding.repo,
 			finding.prNumber,
 			finding.ruleId,
 			finding.filePath,
diff --git a/src/lib/server/db/pullRequests.ts b/src/lib/server/db/pullRequests.ts
index 2f752a7..66eaa9f 100644
--- a/src/lib/server/db/pullRequests.ts
+++ b/src/lib/server/db/pullRequests.ts
@@ -5,10 +5,12 @@
 import type { PullRequestRow, PullRequestSummary } from '../types.ts';
 import { getDatabase, nowIso } from './database.ts';
 
-export function getPullRequestRow(number: number): PullRequestRow | null {
+export function getPullRequestRow(repo: string, number: number): PullRequestRow | null {
 	return getDatabase()
-		.query<PullRequestRow, [number]>('SELECT * FROM pullRequests WHERE number = ?')
-		.get(number);
+		.query<PullRequestRow, [string, number]>(
+			'SELECT * FROM pullRequests WHERE repo = ? AND number = ?'
+		)
+		.get(repo, number);
 }
 
 // Saves the latest PR details and leaves the scan markers untouched
@@ -16,6 +18,7 @@ export function upsertPullRequest(pullRequest: PullRequestSummary): void {
 	getDatabase()
 		.query<unknown, [Record<string, string | number>]>(
 			`INSERT INTO pullRequests (
+				repo,
 				number,
 				title,
 				author,
@@ -26,6 +29,7 @@ export function upsertPullRequest(pullRequest: PullRequestSummary): void {
 				updatedAt
 			)
 			VALUES (
+				$repo,
 				$number,
 				$title,
 				$author,
@@ -35,7 +39,7 @@ export function upsertPullRequest(pullRequest: PullRequestSummary): void {
 				$headSha,
 				$updatedAt
 			)
-			ON CONFLICT (number) DO UPDATE SET
+			ON CONFLICT (repo, number) DO UPDATE SET
 				title = excluded.title,
 				author = excluded.author,
 				authorAssociation = excluded.authorAssociation,
@@ -45,6 +49,7 @@ export function upsertPullRequest(pullRequest: PullRequestSummary): void {
 				updatedAt = excluded.updatedAt`
 		)
 		.run({
+			$repo: pullRequest.repo,
 			$number: pullRequest.number,
 			$title: pullRequest.title,
 			$author: pullRequest.author,
@@ -56,12 +61,14 @@ export function upsertPullRequest(pullRequest: PullRequestSummary): void {
 		});
 }
 
-export function markPullRequestScanned(number: number, scannedSha: string): void {
+export function markPullRequestScanned(repo: string, number: number, scannedSha: string): void {
 	getDatabase()
-		.query('UPDATE pullRequests SET scannedSha = ?, scannedAt = ? WHERE number = ?')
-		.run(scannedSha, nowIso(), number);
+		.query('UPDATE pullRequests SET scannedSha = ?, scannedAt = ? WHERE repo = ? AND number = ?')
+		.run(scannedSha, nowIso(), repo, number);
 }
 
-export function markPullRequestClosed(number: number): void {
-	getDatabase().query(`UPDATE pullRequests SET state = 'closed' WHERE number = ?`).run(number);
+export function markPullRequestClosed(repo: string, number: number): void {
+	getDatabase()
+		.query(`UPDATE pullRequests SET state = 'closed' WHERE repo = ? AND number = ?`)
+		.run(repo, number);
 }
diff --git a/src/lib/server/discord/render.ts b/src/lib/server/discord/render.ts
index 5374115..88627bb 100644
--- a/src/lib/server/discord/render.ts
+++ b/src/lib/server/discord/render.ts
@@ -10,7 +10,7 @@ import {
 	type BaseMessageOptions
 } from 'discord.js';
 
-import { severityLabels } from '../../labels.ts';
+import { repoLabel, severityLabels } from '../../labels.ts';
 import { getConfig } from '../config.ts';
 import { listFindingsForPullRequest } from '../db/findings.ts';
 import { bySeverity, getRule } from '../rules/index.ts';
@@ -46,7 +46,7 @@ export function buildButtonId(decision: 'approve' | 'ignore', findingId: number)
 
 // Other open violations on the same PR, most serious first
 function describeOtherFindings(finding: FindingWithPullRequest): string {
-	const others = listFindingsForPullRequest(finding.prNumber)
+	const others = listFindingsForPullRequest(finding.repo, finding.prNumber)
 		.filter(
 			(other) =>
 				other.id !== finding.id && (other.status === 'pending' || other.status === 'acting')
@@ -63,7 +63,7 @@ export function renderFinding(finding: FindingWithPullRequest): BaseMessageOptio
 	const rule = getRule(finding.ruleId);
 
 	const embed = new EmbedBuilder()
-		.setTitle(truncate(`#${finding.prNumber} · ${finding.title}`, 250))
+		.setTitle(truncate(`${repoLabel(finding.repo)} #${finding.prNumber} · ${finding.title}`, 250))
 		.setURL(finding.url)
 		.setColor(statusColours[finding.status])
 		.addFields(
diff --git a/src/lib/server/github/pullRequests.ts b/src/lib/server/github/pullRequests.ts
index ea1fcc3..4cf3b80 100644
--- a/src/lib/server/github/pullRequests.ts
+++ b/src/lib/server/github/pullRequests.ts
@@ -2,7 +2,7 @@
  * MIT — (c) Doughmination System®
  */
 
-import { getConfig, getRepoPath } from '../config.ts';
+import { getRepoPath } from '../config.ts';
 import type { PullRequestSummary } from '../types.ts';
 import { GitHubError, githubRequest } from './client.ts';
 
@@ -41,8 +41,9 @@ export interface ReviewComment {
 	body: string;
 }
 
-function toSummary(pullRequest: ApiPullRequest): PullRequestSummary {
+function toSummary(repo: string, pullRequest: ApiPullRequest): PullRequestSummary {
 	return {
+		repo,
 		number: pullRequest.number,
 		title: pullRequest.title,
 		author: pullRequest.user?.login ?? 'ghost',
@@ -62,12 +63,13 @@ export interface PullRequestPage {
 }
 
 export async function listPullRequests(options: {
+	repo: string;
 	state: 'open' | 'all';
 	page: number;
 	etag?: string | null;
 }): Promise<PullRequestPage> {
 	const response = await githubRequest<ApiPullRequest[]>({
-		path: `${getRepoPath()}/pulls`,
+		path: `${getRepoPath(options.repo)}/pulls`,
 		query: {
 			state: options.state,
 			sort: 'updated',
@@ -79,25 +81,29 @@ export async function listPullRequests(options: {
 	});
 
 	return {
-		pullRequests: response.notModified ? [] : response.data.map(toSummary),
+		pullRequests: response.notModified
+			? []
+			: response.data.map((pullRequest) => toSummary(options.repo, pullRequest)),
 		etag: response.etag,
 		notModified: response.notModified
 	};
 }
 
 export async function getPullRequest(
+	repo: string,
 	number: number,
 	priority = false
 ): Promise<PullRequestSummary> {
 	const response = await githubRequest<ApiPullRequest>({
-		path: `${getRepoPath()}/pulls/${number}`,
+		path: `${getRepoPath(repo)}/pulls/${number}`,
 		priority
 	});
 
-	return toSummary(response.data);
+	return toSummary(repo, response.data);
 }
 
 export async function listPullRequestFiles(
+	repo: string,
 	number: number,
 	priority = false
 ): Promise<PullRequestFile[]> {
@@ -106,7 +112,7 @@ export async function listPullRequestFiles(
 	// Three pages cover 300 files; a registration PR beyond that is not ours to judge
 	for (let page = 1; page <= 3; page += 1) {
 		const response = await githubRequest<PullRequestFile[]>({
-			path: `${getRepoPath()}/pulls/${number}/files`,
+			path: `${getRepoPath(repo)}/pulls/${number}/files`,
 			query: {
 				per_page: 100,
 				page
@@ -126,6 +132,7 @@ export async function listPullRequestFiles(
 
 // Fork commits are readable through the base repository by their SHA
 export async function getFileContent(
+	repo: string,
 	path: string,
 	ref: string,
 	priority = false
@@ -134,7 +141,7 @@ export async function getFileContent(
 
 	try {
 		const response = await githubRequest<string>({
-			path: `${getRepoPath()}/contents/${encodedPath}`,
+			path: `${getRepoPath(repo)}/contents/${encodedPath}`,
 			query: { ref },
 			accept: 'application/vnd.github.raw+json',
 			priority
@@ -150,13 +157,15 @@ export async function getFileContent(
 	}
 }
 
-export async function countMergedPullRequests(login: string, priority = false): Promise<number> {
-	const { repoOwner, repoName } = getConfig();
-
+export async function countMergedPullRequests(
+	repo: string,
+	login: string,
+	priority = false
+): Promise<number> {
 	const response = await githubRequest<{ total_count: number }>({
 		path: '/search/issues',
 		query: {
-			q: `repo:${repoOwner}/${repoName} is:pr is:merged author:${login}`,
+			q: `repo:${repo} is:pr is:merged author:${login}`,
 			per_page: 1
 		},
 		priority
@@ -185,10 +194,14 @@ export interface CreatedComment {
 	html_url: string;
 }
 
-export async function createIssueComment(number: number, body: string): Promise<CreatedComment> {
+export async function createIssueComment(
+	repo: string,
+	number: number,
+	body: string
+): Promise<CreatedComment> {
 	const response = await githubRequest<CreatedComment>({
 		method: 'POST',
-		path: `${getRepoPath()}/issues/${number}/comments`,
+		path: `${getRepoPath(repo)}/issues/${number}/comments`,
 		body: { body },
 		priority: true
 	});
@@ -196,18 +209,18 @@ export async function createIssueComment(number: number, body: string): Promise<
 	return response.data;
 }
 
-export async function closePullRequest(number: number): Promise<void> {
+export async function closePullRequest(repo: string, number: number): Promise<void> {
 	await githubRequest({
 		method: 'PATCH',
-		path: `${getRepoPath()}/pulls/${number}`,
+		path: `${getRepoPath(repo)}/pulls/${number}`,
 		body: { state: 'closed' },
 		priority: true
 	});
 }
 
-export async function listReviews(number: number): Promise<ApiReview[]> {
+export async function listReviews(repo: string, number: number): Promise<ApiReview[]> {
 	const response = await githubRequest<ApiReview[]>({
-		path: `${getRepoPath()}/pulls/${number}/reviews`,
+		path: `${getRepoPath(repo)}/pulls/${number}/reviews`,
 		query: { per_page: 100 },
 		priority: true
 	});
@@ -216,13 +229,14 @@ export async function listReviews(number: number): Promise<ApiReview[]> {
 }
 
 export async function dismissReview(
+	repo: string,
 	number: number,
 	reviewId: number,
 	message: string
 ): Promise<void> {
 	await githubRequest({
 		method: 'PUT',
-		path: `${getRepoPath()}/pulls/${number}/reviews/${reviewId}/dismissals`,
+		path: `${getRepoPath(repo)}/pulls/${number}/reviews/${reviewId}/dismissals`,
 		body: {
 			message,
 			event: 'DISMISS'
@@ -232,6 +246,7 @@ export async function dismissReview(
 }
 
 export async function createChangesRequestedReview(options: {
+	repo: string;
 	number: number;
 	commitId: string;
 	body: string;
@@ -239,7 +254,7 @@ export async function createChangesRequestedReview(options: {
 }): Promise<ApiReview> {
 	const response = await githubRequest<ApiReview>({
 		method: 'POST',
-		path: `${getRepoPath()}/pulls/${options.number}/reviews`,
+		path: `${getRepoPath(options.repo)}/pulls/${options.number}/reviews`,
 		body: {
 			commit_id: options.commitId,
 			event: 'REQUEST_CHANGES',
diff --git a/src/lib/server/github/token.ts b/src/lib/server/github/token.ts
index d6d136c..9004036 100644
--- a/src/lib/server/github/token.ts
+++ b/src/lib/server/github/token.ts
@@ -75,21 +75,23 @@ export async function checkToken(): Promise<void> {
 			priority: true
 		});
 
-		const repository = await githubRequest<RepositoryAccess>({
-			path: getRepoPath(),
-			priority: true
-		});
-
-		const permissions = repository.data.permissions;
-
-		const report = describeToken({
-			login: user.data.login,
-			scopes: user.scopes,
-			canTriage: Boolean(permissions?.triage || permissions?.push)
-		});
-
-		for (const line of report.lines) {
-			logger[report.level](line);
+		for (const repo of getConfig().repos) {
+			const repository = await githubRequest<RepositoryAccess>({
+				path: getRepoPath(repo),
+				priority: true
+			});
+
+			const permissions = repository.data.permissions;
+
+			const report = describeToken({
+				login: user.data.login,
+				scopes: user.scopes,
+				canTriage: Boolean(permissions?.triage || permissions?.push)
+			});
+
+			for (const line of report.lines) {
+				logger[report.level](`${repo}: ${line}`);
+			}
 		}
 	} catch (error) {
 		logger.error(`Could not verify GITHUB_TOKEN: ${describeError(error)}`);
diff --git a/src/lib/server/moderation/actions.ts b/src/lib/server/moderation/actions.ts
index 6694eb5..9e82c3b 100644
--- a/src/lib/server/moderation/actions.ts
+++ b/src/lib/server/moderation/actions.ts
@@ -50,7 +50,7 @@ async function resolveDecision(
 	}
 
 	// Revalidate against the latest commit before touching anything
-	const pullRequest = await getPullRequest(finding.prNumber, true);
+	const pullRequest = await getPullRequest(finding.repo, finding.prNumber, true);
 
 	upsertPullRequest(pullRequest);
 
@@ -157,6 +157,7 @@ export async function performModerationAction(options: {
 
 	recordAction({
 		findingId: finding.id,
+		repo: finding.repo,
 		prNumber: finding.prNumber,
 		contributor: finding.author,
 		ruleId: finding.ruleId,
diff --git a/src/lib/server/moderation/eligibility.ts b/src/lib/server/moderation/eligibility.ts
index 28a393d..85c60c3 100644
--- a/src/lib/server/moderation/eligibility.ts
+++ b/src/lib/server/moderation/eligibility.ts
@@ -34,7 +34,7 @@ export async function getContributorEligibility(
 		priority: boolean;
 	}
 ): Promise<ContributorEligibility> {
-	const { author, authorAssociation } = pullRequest;
+	const { repo, author, authorAssociation } = pullRequest;
 	const required = getConfig().nsMinMergedPullRequests;
 
 	if (maintainerAssociations.includes(authorAssociation)) {
@@ -51,7 +51,7 @@ export async function getContributorEligibility(
 		};
 	}
 
-	const cached = getContributor(author);
+	const cached = getContributor(repo, author);
 
 	if (cached && cached.mergedPrCount >= required) {
 		// Merged PRs never un-merge, so an eligible result is safe to keep
@@ -64,9 +64,9 @@ export async function getContributorEligibility(
 		return describe(author, cached.mergedPrCount, required);
 	}
 
-	const mergedPrCount = await countMergedPullRequests(author, options.priority);
+	const mergedPrCount = await countMergedPullRequests(repo, author, options.priority);
 
-	saveContributor(author, mergedPrCount);
+	saveContributor(repo, author, mergedPrCount);
 
 	return describe(author, mergedPrCount, required);
 }
diff --git a/src/lib/server/moderation/evaluate.ts b/src/lib/server/moderation/evaluate.ts
index e2b87c2..96bfcf3 100644
--- a/src/lib/server/moderation/evaluate.ts
+++ b/src/lib/server/moderation/evaluate.ts
@@ -34,7 +34,11 @@ export async function evaluatePullRequest(
 		priority: boolean;
 	}
 ): Promise<Evaluation> {
-	const changedFiles = await listPullRequestFiles(pullRequest.number, options.priority);
+	const changedFiles = await listPullRequestFiles(
+		pullRequest.repo,
+		pullRequest.number,
+		options.priority
+	);
 
 	const candidates = changedFiles.filter(
 		(file) => registrationFile.test(file.filename) && file.status !== 'removed'
@@ -44,7 +48,12 @@ export async function evaluatePullRequest(
 	const files: DomainFile[] = [];
 
 	for (const file of inspected) {
-		const content = await getFileContent(file.filename, pullRequest.headSha, options.priority);
+		const content = await getFileContent(
+			pullRequest.repo,
+			file.filename,
+			pullRequest.headSha,
+			options.priority
+		);
 
 		if (content === null) {
 			continue;
diff --git a/src/lib/server/moderation/executors.ts b/src/lib/server/moderation/executors.ts
index cffb4f9..a89348f 100644
--- a/src/lib/server/moderation/executors.ts
+++ b/src/lib/server/moderation/executors.ts
@@ -2,6 +2,7 @@
  * MIT — (c) Doughmination System®
  */
 
+import { repoLabel } from '../../labels.ts';
 import { getConfig } from '../config.ts';
 import { listFindingsForPullRequest, setFindingComment, setFindingStatus } from '../db/findings.ts';
 import { markPullRequestClosed } from '../db/pullRequests.ts';
@@ -33,21 +34,23 @@ type Executor = (input: ExecutorInput) => Promise<ActionOutcome>;
 
 async function closeWithPolicyComment(input: ExecutorInput): Promise<ActionOutcome> {
 	const { pullRequest, finding } = input;
+	const { repo, number } = pullRequest;
 
 	// A stored comment id means an earlier attempt already explained; never explain twice
 	if (finding.commentId === null) {
 		const comment = await createIssueComment(
-			pullRequest.number,
-			getMessages().nsRecords.closeComment
+			repo,
+			number,
+			getMessages().nsRecords.closeComment.replaceAll('{service}', repoLabel(repo))
 		);
 
 		setFindingComment(finding.id, comment.id);
 	}
 
-	await closePullRequest(pullRequest.number);
+	await closePullRequest(repo, number);
 
-	markPullRequestClosed(pullRequest.number);
-	retireFindings(pullRequest.number, 'The pull request was closed through the tool.');
+	markPullRequestClosed(repo, number);
+	retireFindings(repo, number, 'The pull request was closed through the tool.');
 
 	return {
 		status: 'success',
@@ -76,7 +79,7 @@ async function requestRuleChanges(input: ExecutorInput): Promise<ActionOutcome>
 	const marker = reviewMarker(finding);
 
 	const login = await getAuthenticatedLogin();
-	const reviews = await listReviews(pullRequest.number);
+	const reviews = await listReviews(pullRequest.repo, pullRequest.number);
 
 	const duplicate = reviews.find(
 		(review) =>
@@ -106,6 +109,7 @@ async function requestRuleChanges(input: ExecutorInput): Promise<ActionOutcome>
 	if (canCommentInline) {
 		try {
 			const review = await createChangesRequestedReview({
+				repo: pullRequest.repo,
 				number: pullRequest.number,
 				commitId: pullRequest.headSha,
 				body: `${messages.reviewSummary}\n\n${marker}`,
@@ -133,6 +137,7 @@ async function requestRuleChanges(input: ExecutorInput): Promise<ActionOutcome>
 	}
 
 	const review = await createChangesRequestedReview({
+		repo: pullRequest.repo,
 		number: pullRequest.number,
 		commitId: pullRequest.headSha,
 		body: fallbackBody,
@@ -151,7 +156,7 @@ export async function dismissFixedChangeRequests(
 	pullRequest: PullRequestSummary,
 	violations: Violation[]
 ): Promise<void> {
-	const fixed = listFindingsForPullRequest(pullRequest.number).filter(
+	const fixed = listFindingsForPullRequest(pullRequest.repo, pullRequest.number).filter(
 		(finding) =>
 			finding.status === 'actioned' &&
 			getRule(finding.ruleId).actionType === 'requestChanges' &&
@@ -166,7 +171,7 @@ export async function dismissFixedChangeRequests(
 	}
 
 	const login = await getAuthenticatedLogin();
-	const reviews = await listReviews(pullRequest.number);
+	const reviews = await listReviews(pullRequest.repo, pullRequest.number);
 
 	for (const finding of fixed) {
 		const marker = reviewMarker(finding);
@@ -179,7 +184,12 @@ export async function dismissFixedChangeRequests(
 		);
 
 		for (const review of openReviews) {
-			await dismissReview(pullRequest.number, review.id, reviewMessages(finding).reviewDismissal);
+			await dismissReview(
+				pullRequest.repo,
+				pullRequest.number,
+				review.id,
+				reviewMessages(finding).reviewDismissal
+			);
 		}
 
 		setFindingStatus(
diff --git a/src/lib/server/moderation/pipeline.test.ts b/src/lib/server/moderation/pipeline.test.ts
index aa06441..32782d7 100644
--- a/src/lib/server/moderation/pipeline.test.ts
+++ b/src/lib/server/moderation/pipeline.test.ts
@@ -8,6 +8,9 @@ import { before, describe, test } from 'node:test';
 process.env.DATABASE_PATH = ':memory:';
 process.env.GITHUB_TOKEN = 'test-token';
 process.env.DRY_RUN = 'true';
+process.env.GITHUB_REPOS = 'is-a-dev/register';
+
+const repo = 'is-a-dev/register';
 
 import { getConfig } from '../config.ts';
 import { getModerationStats, searchActions } from '../db/auditLog.ts';
@@ -183,7 +186,7 @@ async function fakeGitHub(input: string | URL | Request, init?: RequestInit): Pr
 }
 
 function findingFor(prNumber: number) {
-	return listFindingsForPullRequest(prNumber)[0];
+	return listFindingsForPullRequest(repo, prNumber)[0];
 }
 
 before(() => {
@@ -237,19 +240,19 @@ before(() => {
 
 describe('moderation pipeline', () => {
 	test('a scan creates one finding per real violation', async () => {
-		await scanOnce();
+		await scanOnce(repo);
 
 		assert.equal(findingFor(1).ruleId, 'nsRecords');
 		assert.equal(findingFor(2).ruleId, 'noReplyEmail');
-		assert.equal(listFindingsForPullRequest(3).length, 0);
+		assert.equal(listFindingsForPullRequest(repo, 3).length, 0);
 		assert.equal(findingFor(4).status, 'pending');
 	});
 
 	test('a repeat scan creates no duplicates', async () => {
-		await scanOnce();
+		await scanOnce(repo);
 
-		assert.equal(listFindingsForPullRequest(1).length, 1);
-		assert.equal(listFindingsForPullRequest(2).length, 1);
+		assert.equal(listFindingsForPullRequest(repo, 1).length, 1);
+		assert.equal(listFindingsForPullRequest(repo, 2).length, 1);
 	});
 
 	test('dry run writes nothing and leaves the finding pending', async () => {
@@ -327,8 +330,8 @@ describe('moderation pipeline', () => {
 			records: { CNAME: 'hidden.github.io' }
 		};
 
-		await scanOnce();
-		await scanOnce();
+		await scanOnce(repo);
+		await scanOnce(repo);
 
 		const dismissals = writes.filter((write) => write.method === 'PUT');
 
@@ -348,7 +351,7 @@ describe('moderation pipeline', () => {
 			records: { CNAME: 'fixer.github.io' }
 		};
 
-		await scanOnce();
+		await scanOnce(repo);
 
 		assert.equal(findingFor(4).status, 'resolved');
 	});
@@ -365,7 +368,7 @@ describe('moderation pipeline', () => {
 			json: nsJson
 		});
 
-		await scanOnce();
+		await scanOnce(repo);
 
 		// The contributor removes the NS records before the button is pressed
 		const pullRequest = fakePullRequests.get(5)!;
diff --git a/src/lib/server/moderation/reconcile.ts b/src/lib/server/moderation/reconcile.ts
index 9e0a044..f7e428a 100644
--- a/src/lib/server/moderation/reconcile.ts
+++ b/src/lib/server/moderation/reconcile.ts
@@ -30,7 +30,10 @@ function shouldReopen(finding: FindingRow): boolean {
 // Brings stored findings in line with what the latest commit actually violates
 export function reconcileFindings(pullRequest: PullRequestSummary, violations: Violation[]): void {
 	const existing = new Map(
-		listFindingsForPullRequest(pullRequest.number).map((finding) => [findingKey(finding), finding])
+		listFindingsForPullRequest(pullRequest.repo, pullRequest.number).map((finding) => [
+			findingKey(finding),
+			finding
+		])
 	);
 
 	const violatedKeys = new Set<string>();
@@ -43,6 +46,7 @@ export function reconcileFindings(pullRequest: PullRequestSummary, violations: V
 
 		if (!finding) {
 			const findingId = insertFinding({
+				repo: pullRequest.repo,
 				prNumber: pullRequest.number,
 				ruleId: violation.ruleId,
 				filePath: violation.filePath,
@@ -76,8 +80,8 @@ export function reconcileFindings(pullRequest: PullRequestSummary, violations: V
 }
 
 // Retires every open finding of a PR that is no longer open
-export function retireFindings(prNumber: number, explanation: string): void {
-	for (const finding of listFindingsForPullRequest(prNumber)) {
+export function retireFindings(repo: string, prNumber: number, explanation: string): void {
+	for (const finding of listFindingsForPullRequest(repo, prNumber)) {
 		if (finding.status === 'pending') {
 			setFindingStatus(finding.id, 'prClosed', explanation);
 			emitFindingEvent('findingChanged', finding.id);
diff --git a/src/lib/server/moderation/scanner.ts b/src/lib/server/moderation/scanner.ts
index 9e4b26b..811fe96 100644
--- a/src/lib/server/moderation/scanner.ts
+++ b/src/lib/server/moderation/scanner.ts
@@ -20,26 +20,32 @@ import { reconcileFindings, retireFindings } from './reconcile.ts';
 
 const logger = createLogger('scanner');
 
-const watermarkKey = 'scanner.watermark';
-const etagKey = 'scanner.etag';
-const lastScanKey = 'scanner.lastScanAt';
-const lastErrorKey = 'scanner.lastError';
+// Scanner state is kept per repository
+const watermarkKey = (repo: string) => `scanner.watermark:${repo}`;
+const etagKey = (repo: string) => `scanner.etag:${repo}`;
+const lastScanKey = (repo: string) => `scanner.lastScanAt:${repo}`;
+const lastErrorKey = (repo: string) => `scanner.lastError:${repo}`;
 const maxPages = 15;
 
 export interface ScannerStatus {
+	repo: string;
 	lastScanAt: string | null;
 	lastError: string | null;
 }
 
-export function getScannerStatus(): ScannerStatus {
+export function getScannerStatus(repo: string): ScannerStatus {
 	return {
-		lastScanAt: getValue(lastScanKey),
-		lastError: getValue(lastErrorKey)
+		repo,
+		lastScanAt: getValue(lastScanKey(repo)),
+		lastError: getValue(lastErrorKey(repo))
 	};
 }
 
 // First run: every open PR. Later runs: anything updated since the watermark, closed PRs included
-async function collectUpdatedPullRequests(watermark: string | null): Promise<{
+async function collectUpdatedPullRequests(
+	repo: string,
+	watermark: string | null
+): Promise<{
 	pullRequests: PullRequestSummary[];
 	etag: string | null;
 } | null> {
@@ -48,9 +54,10 @@ async function collectUpdatedPullRequests(watermark: string | null): Promise<{
 
 	for (let page = 1; page <= maxPages; page += 1) {
 		const result = await listPullRequests({
+			repo,
 			state: watermark === null ? 'open' : 'all',
 			page,
-			etag: page === 1 && watermark !== null ? getValue(etagKey) : null
+			etag: page === 1 && watermark !== null ? getValue(etagKey(repo)) : null
 		});
 
 		if (result.notModified) {
@@ -81,12 +88,13 @@ async function collectUpdatedPullRequests(watermark: string | null): Promise<{
 }
 
 async function processPullRequest(pullRequest: PullRequestSummary): Promise<void> {
-	const previous = getPullRequestRow(pullRequest.number);
+	const { repo, number } = pullRequest;
+	const previous = getPullRequestRow(repo, number);
 
 	upsertPullRequest(pullRequest);
 
 	if (pullRequest.state !== 'open') {
-		retireFindings(pullRequest.number, 'The pull request was closed or merged.');
+		retireFindings(repo, number, 'The pull request was closed or merged.');
 		return;
 	}
 
@@ -94,7 +102,7 @@ async function processPullRequest(pullRequest: PullRequestSummary): Promise<void
 		previous !== null && previous.state === 'open' && previous.scannedSha === pullRequest.headSha;
 
 	// A fix can land without a commit (an edited description, a Vercel setting), so flagged PRs are rechecked on any update
-	const hasOpenFindings = listFindingsForPullRequest(pullRequest.number).some(
+	const hasOpenFindings = listFindingsForPullRequest(repo, number).some(
 		(finding) => finding.status === 'pending' || finding.status === 'actioned'
 	);
 
@@ -109,16 +117,16 @@ async function processPullRequest(pullRequest: PullRequestSummary): Promise<void
 
 	await dismissFixedChangeRequests(pullRequest, evaluation.violations);
 	reconcileFindings(pullRequest, evaluation.violations);
-	markPullRequestScanned(pullRequest.number, pullRequest.headSha);
+	markPullRequestScanned(repo, number, pullRequest.headSha);
 
 	if (evaluation.violations.length > 0) {
-		logger.info(`#${pullRequest.number}: ${evaluation.violations.length} violation(s)`);
+		logger.info(`${repo}#${number}: ${evaluation.violations.length} violation(s)`);
 	}
 }
 
-export async function scanOnce(): Promise<void> {
-	const watermark = getValue(watermarkKey);
-	const updated = await collectUpdatedPullRequests(watermark);
+export async function scanOnce(repo: string): Promise<void> {
+	const watermark = getValue(watermarkKey(repo));
+	const updated = await collectUpdatedPullRequests(repo, watermark);
 
 	if (updated === null) {
 		return;
@@ -138,30 +146,30 @@ export async function scanOnce(): Promise<void> {
 		} catch (error) {
 			if (!(error instanceof RateLimitError)) {
 				// One broken PR must not stall the queue; it is rechecked when it next changes
-				logger.error(`#${pullRequest.number} could not be evaluated; skipping`, error);
+				logger.error(`${repo}#${pullRequest.number} could not be evaluated; skipping`, error);
 				newWatermark = pullRequest.updatedAt;
 				continue;
 			}
 
 			if (newWatermark !== null) {
-				setValue(watermarkKey, newWatermark);
+				setValue(watermarkKey(repo), newWatermark);
 			}
 
 			// The list changed but was not fully handled, so the next poll must refetch it
-			deleteValue(etagKey);
+			deleteValue(etagKey(repo));
 
 			throw error;
 		}
 	}
 
 	if (newWatermark !== null) {
-		setValue(watermarkKey, newWatermark);
+		setValue(watermarkKey(repo), newWatermark);
 	} else {
-		setValue(watermarkKey, new Date().toISOString());
+		setValue(watermarkKey(repo), new Date().toISOString());
 	}
 
 	if (updated.etag) {
-		setValue(etagKey, updated.etag);
+		setValue(etagKey(repo), updated.etag);
 	}
 }
 
@@ -171,18 +179,22 @@ let stopped = false;
 async function runCycle(afterScan: () => Promise<void>): Promise<void> {
 	let delayMs = getConfig().pollIntervalSeconds * 1000;
 
-	try {
-		await scanOnce();
-		setValue(lastScanKey, new Date().toISOString());
-		deleteValue(lastErrorKey);
-	} catch (error) {
-		setValue(lastErrorKey, describeError(error));
-
-		if (error instanceof RateLimitError) {
-			delayMs = Math.max(delayMs, error.resumeAt - Date.now() + 5_000);
-			logger.warn(`Paused for ${Math.round(delayMs / 1000)}s`, error);
-		} else {
-			logger.error('Scan failed; will retry next cycle', error);
+	for (const repo of getConfig().repos) {
+		try {
+			await scanOnce(repo);
+			setValue(lastScanKey(repo), new Date().toISOString());
+			deleteValue(lastErrorKey(repo));
+		} catch (error) {
+			setValue(lastErrorKey(repo), describeError(error));
+
+			if (error instanceof RateLimitError) {
+				// One token serves every repository, so the rest would hit the same limit
+				delayMs = Math.max(delayMs, error.resumeAt - Date.now() + 5_000);
+				logger.warn(`Paused for ${Math.round(delayMs / 1000)}s`, error);
+				break;
+			}
+
+			logger.error(`Scan of ${repo} failed; will retry next cycle`, error);
 		}
 	}
 
@@ -195,7 +207,7 @@ async function runCycle(afterScan: () => Promise<void>): Promise<void> {
 
 export function startScanner(afterScan: () => Promise<void>): void {
 	stopped = false;
-	logger.info(`Polling every ${getConfig().pollIntervalSeconds}s`);
+	logger.info(`Polling ${getConfig().repos.join(', ')} every ${getConfig().pollIntervalSeconds}s`);
 
 	void runCycle(afterScan);
 }
diff --git a/src/lib/server/types.ts b/src/lib/server/types.ts
index 0262b05..f7fe02e 100644
--- a/src/lib/server/types.ts
+++ b/src/lib/server/types.ts
@@ -13,6 +13,8 @@ export type ActionStatus = 'success' | 'failure' | 'skipped' | 'dryRun';
 export type FindingStatus = 'pending' | 'acting' | 'actioned' | 'ignored' | 'resolved' | 'prClosed';
 
 export interface PullRequestSummary {
+	// owner/name
+	repo: string;
 	number: number;
 	title: string;
 	author: string;
@@ -32,6 +34,7 @@ export interface PullRequestRow extends Omit<PullRequestSummary, 'body'> {
 
 export interface FindingRow {
 	id: number;
+	repo: string;
 	prNumber: number;
 	ruleId: RuleId;
 	filePath: string;
@@ -55,6 +58,7 @@ export interface FindingWithPullRequest extends FindingRow {
 export interface ActionRow {
 	id: number;
 	findingId: number | null;
+	repo: string;
 	prNumber: number;
 	contributor: string;
 	ruleId: RuleId;
diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts
index 2a5e365..7018e2c 100644
--- a/src/routes/+layout.server.ts
+++ b/src/routes/+layout.server.ts
@@ -2,7 +2,7 @@
  * MIT — (c) Doughmination System®
  */
 
-import { getConfig } from '#lib/server/config.ts';
+import { getConfig, readRepoFilter } from '#lib/server/config.ts';
 import { listOpenFindings } from '#lib/server/db/findings.ts';
 import { isPasswordConfigured } from '#lib/server/auth.ts';
 
@@ -10,10 +10,13 @@ import type { LayoutServerLoad } from './$types';
 
 export const load: LayoutServerLoad = ({ url }) => {
 	const onLoginPage = url.pathname === '/login';
+	const repoFilter = readRepoFilter(url);
 
 	return {
 		dryRun: getConfig().dryRun,
-		pendingTotal: onLoginPage ? 0 : listOpenFindings().length,
+		repos: getConfig().repos,
+		repoFilter,
+		pendingTotal: onLoginPage ? 0 : listOpenFindings(repoFilter).length,
 		showNavigation: !onLoginPage,
 		canSignOut: isPasswordConfigured()
 	};
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index f48e37e..add1682 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -6,6 +6,7 @@
 	import '../app.css';
 
 	import { page } from '$app/state';
+	import { repoLabel } from '#lib/labels.ts';
 	// Same file the Discord bot uses as its avatar
 	import favicon from '../../config/avatar.png';
 
@@ -31,6 +32,35 @@
 			label: 'Lookup'
 		}
 	];
+
+	// Same page, with the repository filter set (or cleared for null)
+	function filterHref(repo: string | null): string {
+		const next = new URL(page.url.href);
+
+		if (repo === null) {
+			next.searchParams.delete('repo');
+		} else {
+			next.searchParams.set('repo', repo);
+		}
+
+		return `${next.pathname}${next.search}`;
+	}
+
+	// Page links keep the current filter
+	const filterQuery = $derived(
+		data.repoFilter ? `?repo=${encodeURIComponent(data.repoFilter)}` : ''
+	);
+
+	const filterOptions = $derived([
+		{
+			repo: null,
+			label: 'All'
+		},
+		...data.repos.map((repo) => ({
+			repo,
+			label: repoLabel(repo)
+		}))
+	]);
 </script>
 
 <svelte:head>
@@ -43,7 +73,10 @@
 			<strong>is-a-tracker</strong>
 
 			{#each links as link (link.href)}
-				<a href={link.href} aria-current={page.url.pathname === link.href ? 'page' : undefined}>
+				<a
+					href={`${link.href}${filterQuery}`}
+					aria-current={page.url.pathname === link.href ? 'page' : undefined}
+				>
 					{link.label}
 					{#if link.href === '/pending' && data.pendingTotal > 0}
 						<span class="count">{data.pendingTotal}</span>
@@ -53,6 +86,18 @@
 
 			<span class="spacer"></span>
 
+			<span class="filter" role="group" aria-label="Repository filter">
+				{#each filterOptions as option (option.label)}
+					<a
+						href={filterHref(option.repo)}
+						title={option.repo ?? 'Every repository'}
+						aria-current={data.repoFilter === option.repo ? 'true' : undefined}
+					>
+						{option.label}
+					</a>
+				{/each}
+			</span>
+
 			{#if data.dryRun}
 				<span class="pill" title="Buttons will not change anything on GitHub">Dry run ON</span>
 			{/if}
@@ -109,4 +154,22 @@
 	.spacer {
 		flex: 1;
 	}
+
+	.filter {
+		display: inline-flex;
+		border: 1px solid var(--border);
+		border-radius: 999px;
+		overflow: hidden;
+	}
+
+	.filter a {
+		padding: 0.15rem 0.7rem;
+		border-bottom: none;
+		font-size: 0.9rem;
+	}
+
+	.filter a[aria-current='true'] {
+		background: var(--accent);
+		color: var(--accent-text);
+	}
 </style>
diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts
index a783b15..7487b73 100644
--- a/src/routes/+page.server.ts
+++ b/src/routes/+page.server.ts
@@ -2,14 +2,18 @@
  * MIT — (c) Doughmination System®
  */
 
+import { getConfig, readRepoFilter } from '#lib/server/config.ts';
 import { getModerationStats } from '#lib/server/db/auditLog.ts';
 import { getScannerStatus } from '#lib/server/moderation/scanner.ts';
 
 import type { PageServerLoad } from './$types';
 
-export const load: PageServerLoad = () => {
+export const load: PageServerLoad = ({ url }) => {
+	const repoFilter = readRepoFilter(url);
+	const repos = repoFilter ? [repoFilter] : getConfig().repos;
+
 	return {
-		stats: getModerationStats(30),
-		scanner: getScannerStatus()
+		stats: getModerationStats(30, repoFilter),
+		scanners: repos.map(getScannerStatus)
 	};
 };
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index a7495eb..91a114b 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -4,7 +4,7 @@
 
 <script lang="ts">
 	import ActionsChart from '#lib/components/ActionsChart.svelte';
-	import { formatTimestamp } from '#lib/labels.ts';
+	import { formatTimestamp, repoLabel } from '#lib/labels.ts';
 
 	import type { PageProps } from './$types';
 
@@ -50,12 +50,14 @@
 	<ActionsChart daily={data.stats.daily} />
 </section>
 
-<p class="muted">
-	Last scan: {formatTimestamp(data.scanner.lastScanAt)}.
-	{#if data.scanner.lastError}
-		Last scan problem: {data.scanner.lastError}
-	{/if}
-</p>
+{#each data.scanners as scanner (scanner.repo)}
+	<p class="muted">
+		{repoLabel(scanner.repo)}: last scan {formatTimestamp(scanner.lastScanAt)}.
+		{#if scanner.lastError}
+			Last scan problem: {scanner.lastError}
+		{/if}
+	</p>
+{/each}
 
 <style>
 	.tiles {
diff --git a/src/routes/history/+page.server.ts b/src/routes/history/+page.server.ts
index d60dc22..100983c 100644
--- a/src/routes/history/+page.server.ts
+++ b/src/routes/history/+page.server.ts
@@ -2,18 +2,18 @@
  * MIT — (c) Doughmination System®
  */
 
-import { getConfig } from '#lib/server/config.ts';
+import { readRepoFilter } from '#lib/server/config.ts';
 import { searchActions } from '#lib/server/db/auditLog.ts';
 
 import type { PageServerLoad } from './$types';
 
 export const load: PageServerLoad = ({ url }) => {
 	const searchText = url.searchParams.get('q') ?? '';
-	const { repoOwner, repoName } = getConfig();
+	const repoFilter = readRepoFilter(url);
 
 	return {
 		searchText,
-		repoUrl: `https://github.com/${repoOwner}/${repoName}`,
-		actions: searchActions(searchText)
+		repoFilter,
+		actions: searchActions(searchText, repoFilter)
 	};
 };
diff --git a/src/routes/history/+page.svelte b/src/routes/history/+page.svelte
index 40d27d0..ee6f439 100644
--- a/src/routes/history/+page.svelte
+++ b/src/routes/history/+page.svelte
@@ -7,6 +7,7 @@
 		actionLabels,
 		formatTimestamp,
 		labelFor,
+		repoLabel,
 		ruleLabels,
 		statusLabels
 	} from '#lib/labels.ts';
@@ -30,6 +31,9 @@
 		placeholder="PR number, contributor, rule, action or status"
 		aria-label="Search history"
 	/>
+	{#if data.repoFilter}
+		<input type="hidden" name="repo" value={data.repoFilter} />
+	{/if}
 	<button class="primary">Search</button>
 </form>
 
@@ -53,11 +57,12 @@
 					<tr>
 						<td>
 							<a
-								href={action.githubUrl ?? `${data.repoUrl}/pull/${action.prNumber}`}
+								href={action.githubUrl ??
+									`https://github.com/${action.repo}/pull/${action.prNumber}`}
 								target="_blank"
 								rel="noreferrer"
 							>
-								#{action.prNumber}
+								{repoLabel(action.repo)} #{action.prNumber}
 							</a>
 						</td>
 						<td>{action.contributor}</td>
diff --git a/src/routes/lookup/+page.server.ts b/src/routes/lookup/+page.server.ts
index ab560e4..7605b08 100644
--- a/src/routes/lookup/+page.server.ts
+++ b/src/routes/lookup/+page.server.ts
@@ -2,17 +2,35 @@
  * MIT — (c) Doughmination System®
  */
 
+import { getConfig, readRepoFilter } from '#lib/server/config.ts';
 import { getPullRequest } from '#lib/server/github/pullRequests.ts';
 import { describeError } from '#lib/server/logger.ts';
 import { evaluatePullRequest } from '#lib/server/moderation/evaluate.ts';
 
 import type { PageServerLoad } from './$types';
 
-// Accepts "123", "#123" or any GitHub pull request URL
-function parsePullRequestNumber(input: string): number | null {
-	const match = /\/pull\/(\d+)/.exec(input) ?? /^#?(\d+)$/.exec(input.trim());
+// Accepts "123", "#123" or a GitHub pull request URL; a bare number uses the fallback repo
+function parsePullRequest(
+	input: string,
+	fallbackRepo: string
+): { repo: string; number: number } | null {
+	const urlMatch = /github\.com\/([^/\s]+\/[^/\s]+)\/pull\/(\d+)/.exec(input);
 
-	return match ? Number(match[1]) : null;
+	if (urlMatch) {
+		return {
+			repo: urlMatch[1],
+			number: Number(urlMatch[2])
+		};
+	}
+
+	const numberMatch = /^#?(\d+)$/.exec(input.trim());
+
+	return numberMatch
+		? {
+				repo: fallbackRepo,
+				number: Number(numberMatch[1])
+			}
+		: null;
 }
 
 // Read-only: fetches and validates live, and stores nothing
@@ -27,9 +45,10 @@ export const load: PageServerLoad = async ({ url }) => {
 		};
 	}
 
-	const number = parsePullRequestNumber(query);
+	const { repos } = getConfig();
+	const parsed = parsePullRequest(query, readRepoFilter(url) ?? repos[0]);
 
-	if (number === null) {
+	if (parsed === null) {
 		return {
 			query,
 			result: null,
@@ -37,8 +56,19 @@ export const load: PageServerLoad = async ({ url }) => {
 		};
 	}
 
+	const { repo, number } = parsed;
+
+	// Only the tracked repositories, so the lookup cannot be pointed anywhere else
+	if (!repos.includes(repo)) {
+		return {
+			query,
+			result: null,
+			problem: `${repo} is not a tracked repository (${repos.join(', ')}).`
+		};
+	}
+
 	try {
-		const pullRequest = await getPullRequest(number, true);
+		const pullRequest = await getPullRequest(repo, number, true);
 
 		const evaluation = await evaluatePullRequest(pullRequest, {
 			fresh: true,
@@ -62,7 +92,7 @@ export const load: PageServerLoad = async ({ url }) => {
 		return {
 			query,
 			result: null,
-			problem: `Could not check #${number}: ${describeError(error)}`
+			problem: `Could not check ${repo}#${number}: ${describeError(error)}`
 		};
 	}
 };
diff --git a/src/routes/lookup/+page.svelte b/src/routes/lookup/+page.svelte
index 73b0593..6dca0fb 100644
--- a/src/routes/lookup/+page.svelte
+++ b/src/routes/lookup/+page.svelte
@@ -3,7 +3,7 @@
 -->
 
 <script lang="ts">
-	import { labelFor, ruleLabels } from '#lib/labels.ts';
+	import { labelFor, repoLabel, ruleLabels } from '#lib/labels.ts';
 
 	import type { PageProps } from './$types';
 
@@ -24,6 +24,9 @@
 		placeholder="PR number or GitHub pull request URL"
 		aria-label="Pull request"
 	/>
+	{#if data.repoFilter}
+		<input type="hidden" name="repo" value={data.repoFilter} />
+	{/if}
 	<button class="primary">Check</button>
 </form>
 
@@ -37,7 +40,7 @@
 	<section class="card">
 		<h2>
 			<a href={result.pullRequest.url} target="_blank" rel="noreferrer">
-				#{result.pullRequest.number}
+				{repoLabel(result.pullRequest.repo)} #{result.pullRequest.number}
 			</a>
 			{result.pullRequest.title}
 		</h2>
diff --git a/src/routes/pending/+page.server.ts b/src/routes/pending/+page.server.ts
index 381c2ee..1c1c4e8 100644
--- a/src/routes/pending/+page.server.ts
+++ b/src/routes/pending/+page.server.ts
@@ -4,6 +4,7 @@
 
 import { fail } from '@sveltejs/kit';
 
+import { readRepoFilter } from '#lib/server/config.ts';
 import { listOpenFindings } from '#lib/server/db/findings.ts';
 import {
 	performModerationAction,
@@ -13,11 +14,12 @@ import { bySeverity, getRule } from '#lib/server/rules/index.ts';
 
 import type { Actions, PageServerLoad } from './$types';
 
-export const load: PageServerLoad = () => {
-	const openFindings = listOpenFindings().sort(bySeverity);
+export const load: PageServerLoad = ({ url }) => {
+	const openFindings = listOpenFindings(readRepoFilter(url)).sort(bySeverity);
 
 	const findings = openFindings.map((finding) => ({
 		id: finding.id,
+		repo: finding.repo,
 		prNumber: finding.prNumber,
 		title: finding.title,
 		author: finding.author,
@@ -32,7 +34,12 @@ export const load: PageServerLoad = () => {
 		actionType: getRule(finding.ruleId).actionType,
 		severity: getRule(finding.ruleId).severity,
 		otherRuleIds: openFindings
-			.filter((other) => other.prNumber === finding.prNumber && other.id !== finding.id)
+			.filter(
+				(other) =>
+					other.repo === finding.repo &&
+					other.prNumber === finding.prNumber &&
+					other.id !== finding.id
+			)
 			.map((other) => other.ruleId)
 	}));
 
diff --git a/src/routes/pending/+page.svelte b/src/routes/pending/+page.svelte
index 041bc70..34b59b6 100644
--- a/src/routes/pending/+page.svelte
+++ b/src/routes/pending/+page.svelte
@@ -4,7 +4,7 @@
 
 <script lang="ts">
 	import { enhance } from '$app/forms';
-	import { formatTimestamp, labelFor, ruleLabels, severityLabels } from '#lib/labels.ts';
+	import { formatTimestamp, labelFor, repoLabel, ruleLabels, severityLabels } from '#lib/labels.ts';
 
 	import type { PageProps } from './$types';
 
@@ -46,7 +46,9 @@
 {#each data.findings as finding (finding.id)}
 	<article class="card">
 		<h2>
-			<a href={finding.url} target="_blank" rel="noreferrer">#{finding.prNumber}</a>
+			<a href={finding.url} target="_blank" rel="noreferrer">
+				{repoLabel(finding.repo)} #{finding.prNumber}
+			</a>
 			{finding.title}
 		</h2>