Skip to content

Commit

Permalink
Merge pull request #102 from acsone/fix_pr_status_regex_tbi
Browse files Browse the repository at this point in the history
[FIX] pr_status: manage PR URL's containing numerical characters
  • Loading branch information
sbidoul authored May 10, 2024
2 parents a16ef82 + cdeb618 commit 23d6661
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 23d6661

Please sign in to comment.