diff --git a/roles/check-github-pr-is-wip/files/github_wip.py b/roles/check-github-pr-is-wip/files/github_wip.py index 053ea16..b2a8100 100755 --- a/roles/check-github-pr-is-wip/files/github_wip.py +++ b/roles/check-github-pr-is-wip/files/github_wip.py @@ -26,7 +26,7 @@ import urllib.request def get_github_PR(change_url): - match = re.search('https://github.com/(.+)/pull/(\d+)', change_url) + match = re.search(r".*/([^/]+/[^/]+)/pulls?/(\d+)", change_url) repository = match.group(1) prnumber = match.group(2)