Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions scripts/check_main_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ def pages(self, suffix: str, key: str | None = None) -> list[Any]:
# The first two predate the guard; their breaking subjects and reviewed PR
# migration notes retain the release signal. 5ce9ee4dc is #1546's GitHub merge
# commit: its body carries only the PR title, while the merged commit 81c2a8b2b
# carries the BREAKING CHANGE footer. No other commit, including one with the
# same subject, inherits these historical exceptions.
# carries the BREAKING CHANGE footer. 11ed387bb is #1897's GitHub merge commit
# in the same shape; its merged commit bedea168d carries the footer, and #1936
# made that change backward compatible before 9.7.0. No other commit, including
# one with the same subject, inherits these historical exceptions.
HISTORICAL_BREAKING_SUBJECTS = {
"6c5ee7b29ef9d548ae2bb3665032e0c53a8146ac": (
"fix(reporting)!: scope configuration generations by account (#1174)"
Expand All @@ -104,6 +106,9 @@ def pages(self, suffix: str, key: str | None = None) -> list[Any]:
"5ce9ee4dc9daef34af143b84ff7d660489fef1be": (
"fix(types)!: allow assignment-only creative syncs"
),
"11ed387bb5b958ac7a2d69e47082dd8845a0b8cf": (
"fix(webhooks)!: comply with AdCP 3.2 challenge schema"
),
}

# #1810's PR title ended in an issue reference, "(#1780)". The PR check
Expand Down
7 changes: 7 additions & 0 deletions tests/test_main_release_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,13 @@ def test_single_parent_commit_cannot_impersonate_github_merge(history: list[str]
),
("a" * 40, "fix(types)!: allow assignment-only creative syncs", False),
("5ce9ee4dc9daef34af143b84ff7d660489fef1be", BREAKING_SUBJECT, False),
(
"11ed387bb5b958ac7a2d69e47082dd8845a0b8cf",
"fix(webhooks)!: comply with AdCP 3.2 challenge schema",
True,
),
("a" * 40, "fix(webhooks)!: comply with AdCP 3.2 challenge schema", False),
("11ed387bb5b958ac7a2d69e47082dd8845a0b8cf", BREAKING_SUBJECT, False),
],
)
def test_historical_footer_exception_requires_exact_commit_and_subject(
Expand Down
Loading