From 4b80466bfba8406bacde411e269752d18c184d28 Mon Sep 17 00:00:00 2001 From: Enzo Nunes Date: Sun, 23 Feb 2025 22:50:23 +0000 Subject: [PATCH] add url to final message --- PICable.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PICable.py b/PICable.py index f8cee6a..16184f7 100644 --- a/PICable.py +++ b/PICable.py @@ -100,6 +100,8 @@ def PICable(owner, repository, token): res += "\n" + repository_url = f"https://www.github.com/{owner}/{repository}" + if any( [ stars < LIMIT_STARS * (1 - MARGIN), @@ -107,10 +109,10 @@ def PICable(owner, repository, token): 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]): - 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: - 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