We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8453d61 commit 4d86c00Copy full SHA for 4d86c00
validate_json.py
@@ -15,10 +15,8 @@ def getfile(url):
15
lines = issue_content.split("\n")
16
17
def validate_repo(line):
18
- repo = line.split(" ")[-1]
19
- if repo.startswith("https://github"):
20
- repo = repo[19:] # strip off beginning of URL if it exists
21
- repo = repo.strip().strip("/") # normalize path
+ repo = line.split(" ")[-1].lower() # handle both cases of just URL or with Repo URL: before
+ repo = repo.replace("https://github.com/","").strip().strip("/") # just get the user/project portion
22
projectUrl = f"https://api.github.com/repos/{repo}"
23
latestRelease = f"{projectUrl}/releases/latest"
24
tagsUrl = f"{projectUrl}/tags"
0 commit comments