Add matching against hypothetical (new) ghstack pull-request trailer (#153528)

I would like to change ghstack to use a new trailer
Pull Request resolved: https://github.com/pytorch/pytorch/pull/153528
Approved by: https://github.com/malfet
This commit is contained in:
Horace He
2025-05-14 14:07:01 +00:00
committed by PyTorch MergeBot
parent 8f3d7972ad
commit cd119ddd7c

View File

@ -434,7 +434,7 @@ query ($owner: String!, $name: String!) {
RE_GHSTACK_HEAD_REF = re.compile(r"^(gh/[^/]+/[0-9]+/)head$")
RE_GHSTACK_DESC = re.compile(r"Stack.*:\r?\n(\* [^\r\n]+\r?\n)+", re.MULTILINE)
RE_PULL_REQUEST_RESOLVED = re.compile(
r"(Pull Request resolved|Pull-Request-resolved): "
r"(Pull Request resolved|Pull-Request-resolved|Pull-Request): "
r"https://github.com/(?P<owner>[^/]+)/(?P<repo>[^/]+)/pull/(?P<number>[0-9]+)",
re.MULTILINE,
)