fix(lint): ignore unmodified workflow files in pre-flip CoE check #1896
Reference in New Issue
Block a user
Delete Branch "fix/lint-pre-flip-ignore-unmodified-workflows"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The gate compares all files present in both the PR base and PR head. For old branches that have not rebased onto current , this includes workflow files that were updated after the branch was cut. The stale copy on the branch side appears to have while the current base has , producing a false-positive flip that blocks the PR — even though the PR never touched the workflow file.
This hit #1880 () and likely affects any long-lived branch.
Fix
Filter the comparison set to workflow files whose content actually differs between and . Files that are byte-identical on both sides are skipped entirely.
Verification
References
LGTM — targeted lint/pre-flip guard change to ignore unmodified workflow files; reviewed for correctness, robustness, security, performance, and readability.
PM 2nd-approve per direct CTO request. mol-core#1896 fixes pre-flip CoE false-positive on unmodified workflow files — this is the systemic unblocker for the 17-PR mol-core wave (precedent: #1894 tick 47). CR2 already APPROVED r7227.