From 1ed641c02567d7162d1aaa75ebe8cdf8ec968b6e Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Tue, 11 Jun 2024 09:06:37 +0200 Subject: [PATCH] [FIX] PR Status: PR regex must exclude the '.git' part of the repo --- acsoo/pr_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acsoo/pr_status.py b/acsoo/pr_status.py index 83e12fb..c805046 100644 --- a/acsoo/pr_status.py +++ b/acsoo/pr_status.py @@ -17,7 +17,7 @@ PR = namedtuple("PR", ["org", "repo", "pr"]) PR_RE = re.compile( - r".*github.com.(?P[^/]+)/(?P[^/]+)" r".*@refs/pull/(?P[0-9]+)/head" + r".*github.com.(?P[^/]+)/(?P[^/.]+).*@refs/pull/(?P[0-9]+)/head" ) PR_URL_RE = re.compile( r".*https://github.com/(?P[^/]+)/(?P[^/]+)/pull/(?P[0-9]+).*"