mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
Allow standing triage disclosure link
Change-source: pulse-maintainer
This commit is contained in:
@@ -16,6 +16,11 @@ FORBIDDEN_PATTERNS = (
|
||||
re.compile(r"https://raw\.githubusercontent\.com/[^/\s\"')]+/[^/\s\"')]+/(?:main|master)/docs/"),
|
||||
)
|
||||
|
||||
ALLOWED_BRANCH_TIP_DOC_URLS = {
|
||||
# Triage replies must always link to the current process disclosure.
|
||||
"https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md",
|
||||
}
|
||||
|
||||
SKIP_DIR_NAMES = {
|
||||
".claude",
|
||||
".git",
|
||||
@@ -80,6 +85,9 @@ class RepoDocsLinkDriftTest(unittest.TestCase):
|
||||
except UnicodeDecodeError:
|
||||
continue
|
||||
|
||||
for allowed_url in ALLOWED_BRANCH_TIP_DOC_URLS:
|
||||
content = content.replace(allowed_url, "")
|
||||
|
||||
for pattern in FORBIDDEN_PATTERNS:
|
||||
match = pattern.search(content)
|
||||
if match:
|
||||
|
||||
Reference in New Issue
Block a user