Merge pull request #121 from blha303/patch-8
Add catch for git.io assigning the same ID twice, provide alternative custom url
This commit is contained in:
commit
2089a53c50
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ def ghissues(inp):
|
||||||
title = data["title"]
|
title = data["title"]
|
||||||
summary = truncate(data["body"])
|
summary = truncate(data["body"])
|
||||||
gitiourl = gitio(data["html_url"])
|
gitiourl = gitio(data["html_url"])
|
||||||
|
if "Failed to get URL" in gitiourl:
|
||||||
|
gitiourl = gitio(data["html_url"] + " " + repo.split("/")[1] + number)
|
||||||
if summary == "":
|
if summary == "":
|
||||||
return fmt1 % (number, state, user, title, gitiourl)
|
return fmt1 % (number, state, user, title, gitiourl)
|
||||||
else:
|
else:
|
||||||
|
|
Reference in a new issue