feat(tools): autoclose specific python file prs (#56376)

This commit is contained in:
Naomi the Technomancer
2024-10-01 00:47:58 -07:00
committed by GitHub
parent a3e6a3516e
commit d6ce939f50

View File

@@ -21,7 +21,12 @@ jobs:
});
if (
files.data.length !== 1 ||
files.data[0].filename !== ".gitignore"
(files.data[0].filename !== ".gitignore" &&
// We've had four PRs make this same (irrelevant) change already.
!(files.data[0].filename === "664ef4623946e65e18d59764.md" &&
files.data[0].patch.includes("return re.sub('(?<!\d)1', '', equation_string.strip('+'))")
)
)
) {
return;
}