check-issue-refs: catch full forge issue URLs too, drop internal links from docs entirely

This commit is contained in:
damocles 2026-09-09 21:15:28 +02:00
commit a4f72365c7
22 changed files with 59 additions and 80 deletions

View file

@ -1451,7 +1451,7 @@ mod tests {
"html_url": "http://forge/o/r/pulls/5",
"latest_comment_html_url": "",
"latest_comment_url": "",
"url": "http://forge/api/v1/repos/o/r/issues/5",
"url": "http://forge/api/v1/repos/o/r/issues/5", // lint:allow: test fixture, not a real forge link
},
}))
.expect("merged-state notification must parse");
@ -1501,7 +1501,7 @@ mod tests {
"title": "t",
"type": "SomeBrandNewType",
"html_url": "",
"url": "http://forge/api/v1/repos/o/r/issues/9",
"url": "http://forge/api/v1/repos/o/r/issues/9", // lint:allow: test fixture, not a real forge link
"another_unknown": 123,
},
}))
@ -1532,7 +1532,7 @@ mod tests {
NotifMeta {
title: "subject title",
subject_type: Some(NotifySubjectType::Issue),
html_url: "http://forge/issues/1",
html_url: "http://forge/issues/1", // lint:allow: test fixture, not a real forge link
num: " #1".to_owned(),
repo: " [agents/x]".to_owned(),
meta_suffix: "\nassignee: unassigned".to_owned(),