add url to final message
This commit is contained in:
@@ -100,6 +100,8 @@ def PICable(owner, repository, token):
|
|||||||
|
|
||||||
res += "\n"
|
res += "\n"
|
||||||
|
|
||||||
|
repository_url = f"https://www.github.com/{owner}/{repository}"
|
||||||
|
|
||||||
if any(
|
if any(
|
||||||
[
|
[
|
||||||
stars < LIMIT_STARS * (1 - MARGIN),
|
stars < LIMIT_STARS * (1 - MARGIN),
|
||||||
@@ -107,10 +109,10 @@ def PICable(owner, repository, token):
|
|||||||
nloc < LIMIT_NLOC * (1 - MARGIN),
|
nloc < LIMIT_NLOC * (1 - MARGIN),
|
||||||
]
|
]
|
||||||
):
|
):
|
||||||
res += f"The repository {owner}/{repository} is not PICable. There are some requirements that are way below the requested limits. :x:\n"
|
res += f"The repository {repository_url} is not PICable. There are some requirements that are way below the requested limits. :x:\n"
|
||||||
elif all([stars >= LIMIT_STARS, commits_30_days >= LIMIT_COMMITS_30_DAYS, nloc >= LIMIT_NLOC]):
|
elif all([stars >= LIMIT_STARS, commits_30_days >= LIMIT_COMMITS_30_DAYS, nloc >= LIMIT_NLOC]):
|
||||||
res += f"The repository {owner}/{repository} is PICable. :white_check_mark:\n"
|
res += f"The repository {repository_url} is PICable. :white_check_mark:\n"
|
||||||
else:
|
else:
|
||||||
res += f"The repository {owner}/{repository} is almost PICable. There are certain requirements which are almost met by this repository. Consult with a professor before proceeding. :warning:\n"
|
res += f"The repository {repository_url} is almost PICable. There are certain requirements which are almost met by this repository. Consult with a professor before proceeding. :warning:\n"
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|||||||
Reference in New Issue
Block a user