Skip to content

Commit

Permalink
[FIX] pr_status: manage PR URL's containing numerical characters
Browse files Browse the repository at this point in the history
The organization name and the repository can contain digits.
  • Loading branch information
ThomasBinsfeld committed Apr 8, 2024
1 parent f37f9eb commit cdeb618
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions acsoo/pr_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

PR = namedtuple("PR", ["org", "repo", "pr"])
PR_RE = re.compile(
r".*github.com.(?P<org>[a-zA-Z-_]+)/(?P<repo>[a-zA-Z-_]+)"
r".*@refs/pull/(?P<pr>[0-9]+)/head"
r".*github.com.(?P<org>[^/]+)/(?P<repo>[^/]+)" r".*@refs/pull/(?P<pr>[0-9]+)/head"
)
PR_URL_RE = re.compile(
r".*https://github.com/(?P<org>[^/]+)/(?P<repo>[^/]+)/pull/(?P<pr>[0-9]+).*"
Expand Down

0 comments on commit cdeb618

Please sign in to comment.