commit
Add unsupported CNAME rule and rule severity
- New unsupportedCname rule reads hosts from config/unsupportedCnames.json and requests changes with an inline comment on the CNAME line - Rules carry a severity (NS high, CNAME medium, email low); Discord and the pending page show it plus other open violations on the same PR, and sort highest first - Request-changes executor is now shared, with per-rule findLine Co-Authored-By: Sandrone <[email protected]>
diff --git a/.env.example b/.env.example
index 2d59b88..8faa947 100644
--- a/.env.example
+++ b/.env.example
@@ -30,5 +30,6 @@ POLL_INTERVAL_SECONDS=120
SCANNER_ENABLED=true
DATABASE_PATH=data/tracker.sqlite
MESSAGES_PATH=config/messages.json
+UNSUPPORTED_CNAMES_PATH=config/unsupportedCnames.json
NS_MIN_MERGED_PRS=1
MAX_FILES_PER_PR=25
diff --git a/README.md b/README.md
index b911b35..e0a5b72 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,18 @@ done, and nothing is sent to GitHub.
Edit `config/messages.json`. Changes apply on the next action, with no restart.
+## Unsupported CNAME targets
+
+List hosts in `config/unsupportedCnames.json` as a JSON array, for example
+`["vercel.app", "example.com"]`. A CNAME matches an entry or any subdomain of it.
+Changes apply on the next scan. An empty list turns the rule off.
+
+## Severity
+
+When a PR breaks several rules, the most serious leads: NS (High), then CNAME (Medium),
+then no-reply email (Low). Discord and the pending page show each finding's severity and
+the other open violations on the same PR.
+
## How it stays safe
- Every action revalidates the PR at its latest commit first.
@@ -66,7 +78,9 @@ Edit `config/messages.json`. Changes apply on the next action, with no restart.
1. Add a module in `src/lib/server/rules/` that exports a `Rule`.
2. Register it in `src/lib/server/rules/index.ts`.
-3. If it needs a new kind of action, add an executor in `src/lib/server/moderation/executors.ts`.
+3. Give it a `severity` from 1 (low) to 3 (high).
+4. A `requestChanges` rule needs a `findLine` and wording in `config/messages.json`.
+5. If it needs a new kind of action, add an executor in `src/lib/server/moderation/executors.ts`.
## Checks
diff --git a/config/messages.json b/config/messages.json
index 299b6ce..3ffa5c7 100644
--- a/config/messages.json
+++ b/config/messages.json
@@ -2,6 +2,10 @@
"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.uk/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`.",
+ "reviewSummary": "Please see the inline comment on `CNAME`.\n<sub>This comment was sent with an [automated tool](https://doughmination.uk/automated), and approved by a human. I do not see replies.</sub>"
+ },
"noReplyEmail": {
"reviewComment": "Your `owner.email` value is a GitHub no-reply email address. We do not allow these on our service. Please update it to a personal email address or remove the `owner.email` field entirely, as it is optional.",
"reviewSummary": "Please see the inline comment on `owner.email`.\n<sub>This comment was sent with an [automated tool](https://doughmination.uk/automated), and approved by a human. I do not see replies.</sub>"
diff --git a/config/unsupportedCnames.json b/config/unsupportedCnames.json
new file mode 100644
index 0000000..f771dcf
--- /dev/null
+++ b/config/unsupportedCnames.json
@@ -0,0 +1,18 @@
+[
+ ".adult",
+ ".blob.core.windows.net",
+ ".cf",
+ ".cfargotunnel.com",
+ ".ga",
+ ".gq",
+ ".ml",
+ ".porn",
+ ".r2.dev",
+ ".sex",
+ ".sexy",
+ ".trycloudflare.com",
+ ".tk",
+ ".workers.dev",
+ ".xxx",
+ ".ts.net"
+]
diff --git a/src/lib/labels.ts b/src/lib/labels.ts
index fa625fb..073a156 100644
--- a/src/lib/labels.ts
+++ b/src/lib/labels.ts
@@ -6,9 +6,16 @@
export const ruleLabels: Record<string, string> = {
nsRecords: 'NS records (first-time contributor)',
+ unsupportedCname: 'Unsupported CNAME target',
noReplyEmail: 'No-reply owner.email'
};
+export const severityLabels: Record<number, string> = {
+ 3: 'High',
+ 2: 'Medium',
+ 1: 'Low'
+};
+
export const actionLabels: Record<string, string> = {
closePr: 'Close PR',
requestChanges: 'Request Changes',
diff --git a/src/lib/server/config.ts b/src/lib/server/config.ts
index d720a3a..787a007 100644
--- a/src/lib/server/config.ts
+++ b/src/lib/server/config.ts
@@ -11,6 +11,7 @@ export interface AppConfig {
discordChannelId: string;
databasePath: string;
messagesPath: string;
+ unsupportedCnamesPath: string;
pollIntervalSeconds: number;
scannerEnabled: boolean;
dryRun: boolean;
@@ -54,6 +55,7 @@ export function getConfig(): AppConfig {
discordChannelId: readText('DISCORD_CHANNEL_ID'),
databasePath: readText('DATABASE_PATH', 'data/tracker.sqlite'),
messagesPath: readText('MESSAGES_PATH', 'config/messages.json'),
+ unsupportedCnamesPath: readText('UNSUPPORTED_CNAMES_PATH', 'config/unsupportedCnames.json'),
pollIntervalSeconds: Math.max(30, readNumber('POLL_INTERVAL_SECONDS', 120)),
scannerEnabled: readFlag('SCANNER_ENABLED', true),
// Live by default: approved actions reach GitHub unless DRY_RUN=true
diff --git a/src/lib/server/discord/bot.ts b/src/lib/server/discord/bot.ts
index 163bb22..e0e29b0 100644
--- a/src/lib/server/discord/bot.ts
+++ b/src/lib/server/discord/bot.ts
@@ -9,6 +9,7 @@ import { getFinding, listUnnotifiedFindings, setFindingDiscordMessage } from '..
import { onFindingEvent } from '../events.ts';
import { createLogger, sleep } from '../logger.ts';
import { performModerationAction, type ModerationDecision } from '../moderation/actions.ts';
+import { bySeverity } from '../rules/index.ts';
import { buttonPrefix, renderFinding } from './render.ts';
const logger = createLogger('discord');
@@ -96,7 +97,7 @@ export async function flushNotifications(): Promise<void> {
return;
}
- for (const finding of listUnnotifiedFindings()) {
+ for (const finding of listUnnotifiedFindings().sort(bySeverity)) {
await sendNotification(finding.id);
}
}
diff --git a/src/lib/server/discord/render.ts b/src/lib/server/discord/render.ts
index f2f6552..5374115 100644
--- a/src/lib/server/discord/render.ts
+++ b/src/lib/server/discord/render.ts
@@ -10,8 +10,10 @@ import {
type BaseMessageOptions
} from 'discord.js';
+import { severityLabels } from '../../labels.ts';
import { getConfig } from '../config.ts';
-import { getRule } from '../rules/index.ts';
+import { listFindingsForPullRequest } from '../db/findings.ts';
+import { bySeverity, getRule } from '../rules/index.ts';
import type { FindingStatus, FindingWithPullRequest } from '../types.ts';
export const buttonPrefix = 'tracker';
@@ -42,6 +44,21 @@ export function buildButtonId(decision: 'approve' | 'ignore', findingId: number)
return `${buttonPrefix}:${decision}:${findingId}`;
}
+// Other open violations on the same PR, most serious first
+function describeOtherFindings(finding: FindingWithPullRequest): string {
+ const others = listFindingsForPullRequest(finding.prNumber)
+ .filter(
+ (other) =>
+ other.id !== finding.id && (other.status === 'pending' || other.status === 'acting')
+ )
+ .sort(bySeverity)
+ .map(
+ (other) => `${severityLabels[getRule(other.ruleId).severity]}: ${getRule(other.ruleId).title}`
+ );
+
+ return others.length === 0 ? 'None' : others.join('\n');
+}
+
export function renderFinding(finding: FindingWithPullRequest): BaseMessageOptions {
const rule = getRule(finding.ruleId);
@@ -54,6 +71,16 @@ export function renderFinding(finding: FindingWithPullRequest): BaseMessageOptio
name: 'Violation',
value: rule.title
},
+ {
+ name: 'Severity',
+ value: severityLabels[rule.severity],
+ inline: true
+ },
+ {
+ name: 'Also on this PR',
+ value: truncate(describeOtherFindings(finding), 1000),
+ inline: true
+ },
{
name: 'Author',
value: `[${finding.author}](https://github.com/${finding.author})`,
diff --git a/src/lib/server/messages.ts b/src/lib/server/messages.ts
index 859128f..10ba04c 100644
--- a/src/lib/server/messages.ts
+++ b/src/lib/server/messages.ts
@@ -24,6 +24,10 @@ export function getMessages(): ModerationMessages {
...defaultMessages.nsRecords,
...overrides.nsRecords
},
+ unsupportedCname: {
+ ...defaultMessages.unsupportedCname,
+ ...overrides.unsupportedCname
+ },
noReplyEmail: {
...defaultMessages.noReplyEmail,
...overrides.noReplyEmail
diff --git a/src/lib/server/moderation/executors.ts b/src/lib/server/moderation/executors.ts
index 97c9833..75e8dc0 100644
--- a/src/lib/server/moderation/executors.ts
+++ b/src/lib/server/moderation/executors.ts
@@ -14,7 +14,7 @@ import {
listReviews
} from '../github/pullRequests.ts';
import { getMessages } from '../messages.ts';
-import { findNoReplyEmail, findOwnerEmailLine } from '../rules/noReplyEmail.ts';
+import { getRule } from '../rules/index.ts';
import type { ActionOutcome, ActionType, FindingRow, PullRequestSummary } from '../types.ts';
import type { Evaluation } from './evaluate.ts';
import { retireFindings } from './reconcile.ts';
@@ -56,9 +56,19 @@ function reviewMarker(finding: FindingRow): string {
return `<!-- is-a-tracker:${finding.ruleId}:${finding.filePath} -->`;
}
-async function requestEmailChanges(input: ExecutorInput): Promise<ActionOutcome> {
+function reviewMessages(finding: FindingRow) {
+ const messages = getMessages();
+
+ if (finding.ruleId === 'nsRecords') {
+ throw new Error('NS findings close the PR; they have no review wording.');
+ }
+
+ return messages[finding.ruleId];
+}
+
+async function requestRuleChanges(input: ExecutorInput): Promise<ActionOutcome> {
const { pullRequest, finding, evaluation } = input;
- const messages = getMessages().noReplyEmail;
+ const messages = reviewMessages(finding);
const marker = reviewMarker(finding);
const login = await getAuthenticatedLogin();
@@ -81,8 +91,8 @@ async function requestEmailChanges(input: ExecutorInput): Promise<ActionOutcome>
}
const file = evaluation.files.find((candidate) => candidate.path === finding.filePath);
- const email = file ? findNoReplyEmail(file.json) : null;
- const line = file && email ? findOwnerEmailLine(file.content, email) : null;
+ const findLine = getRule(finding.ruleId).findLine;
+ const line = file && findLine ? findLine(file) : null;
const canCommentInline = line !== null && getCommentableLines(file?.patch).has(line);
const fallbackBody = `${messages.reviewComment}\n\nFile: \`${finding.filePath}\`\n\n${marker}`;
@@ -132,5 +142,5 @@ async function requestEmailChanges(input: ExecutorInput): Promise<ActionOutcome>
export const executors: Record<Exclude<ActionType, 'ignore'>, Executor> = {
closePr: closeWithPolicyComment,
- requestChanges: requestEmailChanges
+ requestChanges: requestRuleChanges
};
diff --git a/src/lib/server/rules/index.ts b/src/lib/server/rules/index.ts
index ba0e321..052087b 100644
--- a/src/lib/server/rules/index.ts
+++ b/src/lib/server/rules/index.ts
@@ -6,9 +6,10 @@ import type { RuleId } from '../types.ts';
import { noReplyEmailRule } from './noReplyEmail.ts';
import { nsRecordsRule } from './nsRecords.ts';
import type { Rule } from './types.ts';
+import { unsupportedCnameRule } from './unsupportedCname.ts';
// Add a new rule module here and the scanner, Discord and dashboard all pick it up
-export const rules: Rule[] = [nsRecordsRule, noReplyEmailRule];
+export const rules: Rule[] = [nsRecordsRule, unsupportedCnameRule, noReplyEmailRule];
export function getRule(ruleId: RuleId): Rule {
const rule = rules.find((candidate) => candidate.id === ruleId);
@@ -19,3 +20,8 @@ export function getRule(ruleId: RuleId): Rule {
return rule;
}
+
+// Sort comparator: highest severity first, then the caller's existing order
+export function bySeverity(first: { ruleId: RuleId }, second: { ruleId: RuleId }): number {
+ return getRule(second.ruleId).severity - getRule(first.ruleId).severity;
+}
diff --git a/src/lib/server/rules/noReplyEmail.ts b/src/lib/server/rules/noReplyEmail.ts
index ea4636a..99387cd 100644
--- a/src/lib/server/rules/noReplyEmail.ts
+++ b/src/lib/server/rules/noReplyEmail.ts
@@ -34,9 +34,16 @@ export function findOwnerEmailLine(content: string, email: string): number | nul
export const noReplyEmailRule: Rule = {
id: 'noReplyEmail',
title: 'GitHub no-reply owner.email',
+ severity: 1,
actionType: 'requestChanges',
actionLabel: 'Request Changes',
+ findLine(file) {
+ const email = findNoReplyEmail(file.json);
+
+ return email === null ? null : findOwnerEmailLine(file.content, email);
+ },
+
async evaluate(context) {
const violations: Violation[] = [];
diff --git a/src/lib/server/rules/nsRecords.ts b/src/lib/server/rules/nsRecords.ts
index 537e478..5bb699c 100644
--- a/src/lib/server/rules/nsRecords.ts
+++ b/src/lib/server/rules/nsRecords.ts
@@ -35,6 +35,7 @@ export function findNsRecords(json: unknown): string[] {
export const nsRecordsRule: Rule = {
id: 'nsRecords',
title: 'NS records from a first-time contributor',
+ severity: 3,
actionType: 'closePr',
actionLabel: 'Close PR',
diff --git a/src/lib/server/rules/rules.test.ts b/src/lib/server/rules/rules.test.ts
index 4e79738..84017a9 100644
--- a/src/lib/server/rules/rules.test.ts
+++ b/src/lib/server/rules/rules.test.ts
@@ -8,6 +8,7 @@ import { describe, test } from 'node:test';
import { getCommentableLines } from '../github/diff.ts';
import { findNoReplyEmail, findOwnerEmailLine } from './noReplyEmail.ts';
import { findNsRecords } from './nsRecords.ts';
+import { findCnameLine, findUnsupportedCname } from './unsupportedCname.ts';
describe('findNsRecords', () => {
test('finds NS records under "records"', () => {
@@ -77,6 +78,47 @@ describe('findNoReplyEmail', () => {
});
});
+describe('findUnsupportedCname', () => {
+ const unsupported = ['vercel.app', 'pages.dev'];
+
+ test('matches a listed host and its subdomains, ignoring case and a trailing dot', () => {
+ assert.equal(
+ findUnsupportedCname({ records: { CNAME: 'vercel.app' } }, unsupported),
+ 'vercel.app'
+ );
+ assert.equal(
+ findUnsupportedCname({ record: { cname: 'Me.Pages.Dev.' } }, unsupported),
+ 'Me.Pages.Dev.'
+ );
+ });
+
+ test('ignores supported hosts, look-alikes and missing CNAMEs', () => {
+ assert.equal(findUnsupportedCname({ records: { CNAME: 'me.github.io' } }, unsupported), null);
+ assert.equal(findUnsupportedCname({ records: { CNAME: 'notvercel.app' } }, unsupported), null);
+ assert.equal(findUnsupportedCname({ records: { A: ['1.2.3.4'] } }, unsupported), null);
+ assert.equal(findUnsupportedCname({ records: { CNAME: 'vercel.app' } }, []), null);
+ });
+
+ test('list entries written as ".tld" match that whole TLD', () => {
+ const tlds = ['.tk', '.blob.core.windows.net', '*.workers.dev'];
+
+ assert.equal(findUnsupportedCname({ records: { CNAME: 'site.tk' } }, tlds), 'site.tk');
+ assert.equal(
+ findUnsupportedCname({ records: { CNAME: 'a.blob.core.windows.net' } }, tlds),
+ 'a.blob.core.windows.net'
+ );
+ assert.equal(
+ findUnsupportedCname({ records: { CNAME: 'me.workers.dev' } }, tlds),
+ 'me.workers.dev'
+ );
+ assert.equal(findUnsupportedCname({ records: { CNAME: 'site.tkx' } }, tlds), null);
+ });
+
+ test('finds the CNAME line', () => {
+ assert.equal(findCnameLine('{\n "records": {\n "CNAME": "x.vercel.app"\n }\n}'), 3);
+ });
+});
+
describe('review line placement', () => {
const content = [
'{',
diff --git a/src/lib/server/rules/types.ts b/src/lib/server/rules/types.ts
index 1fcd3bd..675dc7c 100644
--- a/src/lib/server/rules/types.ts
+++ b/src/lib/server/rules/types.ts
@@ -34,8 +34,12 @@ export interface Violation {
export interface Rule {
id: RuleId;
title: string;
+ // 3 = most serious; a PR crossing several rules is led by its highest
+ severity: 1 | 2 | 3;
actionType: Exclude<ActionType, 'ignore'>;
actionLabel: string;
+ // Line for an inline review comment; only requestChanges rules need it
+ findLine?: (file: DomainFile) => number | null;
evaluate: (context: RuleContext) => Promise<Violation[]>;
}
diff --git a/src/lib/server/rules/unsupportedCname.ts b/src/lib/server/rules/unsupportedCname.ts
new file mode 100644
index 0000000..11317b1
--- /dev/null
+++ b/src/lib/server/rules/unsupportedCname.ts
@@ -0,0 +1,111 @@
+/* src/lib/server/rules/unsupportedCname.ts
+ * MIT — (c) Doughmination System®
+ */
+
+import { readFileSync } from 'node:fs';
+
+import { getConfig } from '../config.ts';
+import { createLogger } from '../logger.ts';
+import type { DomainFile, Rule, Violation } from './types.ts';
+import { isPlainObject } from './types.ts';
+
+const logger = createLogger('unsupportedCname');
+
+// ".Example.com.", "*.example.com" and "example.com" are the same host
+function normaliseHost(host: string): string {
+ return host
+ .trim()
+ .toLowerCase()
+ .replace(/^(\*?\.)+/, '')
+ .replace(/\.$/, '');
+}
+
+// Read on every scan, so list edits apply without a restart
+export function getUnsupportedCnames(): string[] {
+ try {
+ const list: unknown = JSON.parse(readFileSync(getConfig().unsupportedCnamesPath, 'utf8'));
+
+ if (!Array.isArray(list)) {
+ throw new Error('expected a JSON array of hostnames');
+ }
+
+ return list.filter(
+ (entry): entry is string => typeof entry === 'string' && normaliseHost(entry) !== ''
+ );
+ } catch (error) {
+ logger.warn('Could not read the unsupported CNAME list; skipping this rule', error);
+
+ return [];
+ }
+}
+
+// An entry matches itself and every subdomain under it
+export function findUnsupportedCname(json: unknown, unsupportedHosts: string[]): string | null {
+ if (!isPlainObject(json)) {
+ return null;
+ }
+
+ // Older registrations use "record"; current ones use "records"
+ const records = json.records ?? json.record;
+
+ if (!isPlainObject(records)) {
+ return null;
+ }
+
+ const cnameKey = Object.keys(records).find((key) => key.trim().toUpperCase() === 'CNAME');
+ const target = cnameKey === undefined ? undefined : records[cnameKey];
+
+ if (typeof target !== 'string') {
+ return null;
+ }
+
+ const host = normaliseHost(target);
+
+ const blocked = unsupportedHosts
+ .map(normaliseHost)
+ .some((unsupported) => host === unsupported || host.endsWith(`.${unsupported}`));
+
+ return blocked ? target.trim() : null;
+}
+
+// 1-based line of the CNAME entry, or null when it cannot be pinned down
+export function findCnameLine(content: string): number | null {
+ const lineIndex = content.split('\n').findIndex((line) => /"cname"\s*:/i.test(line));
+
+ return lineIndex === -1 ? null : lineIndex + 1;
+}
+
+export const unsupportedCnameRule: Rule = {
+ id: 'unsupportedCname',
+ title: 'CNAME to an unsupported host',
+ severity: 2,
+ actionType: 'requestChanges',
+ actionLabel: 'Request Changes',
+
+ findLine: (file: DomainFile) => findCnameLine(file.content),
+
+ async evaluate(context) {
+ const unsupportedHosts = getUnsupportedCnames();
+ const violations: Violation[] = [];
+
+ if (unsupportedHosts.length === 0) {
+ return violations;
+ }
+
+ for (const file of context.files) {
+ const target = findUnsupportedCname(file.json, unsupportedHosts);
+
+ if (target === null) {
+ continue;
+ }
+
+ violations.push({
+ ruleId: 'unsupportedCname',
+ filePath: file.path,
+ reason: `CNAME points at an unsupported host (${target}).`
+ });
+ }
+
+ return violations;
+ }
+};
diff --git a/src/lib/server/types.ts b/src/lib/server/types.ts
index 12d5ebb..39c3b96 100644
--- a/src/lib/server/types.ts
+++ b/src/lib/server/types.ts
@@ -2,7 +2,7 @@
* MIT — (c) Doughmination System®
*/
-export type RuleId = 'nsRecords' | 'noReplyEmail';
+export type RuleId = 'nsRecords' | 'unsupportedCname' | 'noReplyEmail';
export type ActionType = 'closePr' | 'requestChanges' | 'ignore';
diff --git a/src/routes/pending/+page.server.ts b/src/routes/pending/+page.server.ts
index 7820c08..381c2ee 100644
--- a/src/routes/pending/+page.server.ts
+++ b/src/routes/pending/+page.server.ts
@@ -9,12 +9,14 @@ import {
performModerationAction,
type ModerationDecision
} from '#lib/server/moderation/actions.ts';
-import { getRule } from '#lib/server/rules/index.ts';
+import { bySeverity, getRule } from '#lib/server/rules/index.ts';
import type { Actions, PageServerLoad } from './$types';
export const load: PageServerLoad = () => {
- const findings = listOpenFindings().map((finding) => ({
+ const openFindings = listOpenFindings().sort(bySeverity);
+
+ const findings = openFindings.map((finding) => ({
id: finding.id,
prNumber: finding.prNumber,
title: finding.title,
@@ -27,7 +29,11 @@ export const load: PageServerLoad = () => {
lastOutcome: finding.lastOutcome,
createdAt: finding.createdAt,
actionLabel: getRule(finding.ruleId).actionLabel,
- actionType: getRule(finding.ruleId).actionType
+ actionType: getRule(finding.ruleId).actionType,
+ severity: getRule(finding.ruleId).severity,
+ otherRuleIds: openFindings
+ .filter((other) => other.prNumber === finding.prNumber && other.id !== finding.id)
+ .map((other) => other.ruleId)
}));
return { findings };
diff --git a/src/routes/pending/+page.svelte b/src/routes/pending/+page.svelte
index eb42dd9..041bc70 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 } from '#lib/labels.ts';
+ import { formatTimestamp, labelFor, ruleLabels, severityLabels } from '#lib/labels.ts';
import type { PageProps } from './$types';
@@ -54,6 +54,14 @@
<dt>Violation</dt>
<dd>{labelFor(ruleLabels, finding.ruleId)}</dd>
+ <dt>Severity</dt>
+ <dd>{severityLabels[finding.severity]}</dd>
+
+ {#if finding.otherRuleIds.length > 0}
+ <dt>Also on this PR</dt>
+ <dd>{finding.otherRuleIds.map((ruleId) => labelFor(ruleLabels, ruleId)).join(', ')}</dd>
+ {/if}
+
<dt>Author</dt>
<dd>{finding.author}</dd>