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 6db1969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acsoo/pr_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +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".*github.com.(?P<org>[^/]+)/(?P<repo>[^/]+)"
r".*@refs/pull/(?P<pr>[0-9]+)/head"
)
PR_URL_RE = re.compile(
Expand Down

0 comments on commit 6db1969

Please sign in to comment.