[CI] test built

This commit is contained in:
peter-evans 2020-06-27 08:00:54 +00:00 committed by GitHub
parent 5d969a55c1
commit 089aa2f752
5 changed files with 8 additions and 1 deletions

2
dist/cpr/common.py vendored
View file

@ -11,7 +11,7 @@ def get_random_string(length=7, chars=string.ascii_lowercase + string.digits):
def parse_github_repository(url):
# Parse the protocol and github repository from a URL
# e.g. HTTPS, peter-evans/create-pull-request
https_pattern = re.compile(r"^https://github.com/(.+/.+)$")
https_pattern = re.compile(r"^https://.*@?github.com/(.+/.+)$")
ssh_pattern = re.compile(r"^git@github.com:(.+/.+).git$")
match = https_pattern.match(url)