add small info detail to not picable string
This commit is contained in:
@@ -72,7 +72,7 @@ def PICable(owner, repository, token):
|
|||||||
elif stars >= LIMIT_STARS * (1 - MARGIN):
|
elif stars >= LIMIT_STARS * (1 - MARGIN):
|
||||||
res += f"The repository has {stars}, which is close to the limit of {LIMIT_STARS} stars, considering a {margin_percentage}% margin. :warning:\n"
|
res += f"The repository has {stars}, which is close to the limit of {LIMIT_STARS} stars, considering a {margin_percentage}% margin. :warning:\n"
|
||||||
else:
|
else:
|
||||||
res += f"The repository has {stars} stars, which is way below the limit of {LIMIT_STARS} stars, considering a {margin_percentage}% margin. :x:\n"
|
res += f"The repository has {stars} stars, which is way below the limit of {LIMIT_STARS} stars, even if considering a {margin_percentage}% margin. :x:\n"
|
||||||
|
|
||||||
commits_30_days = get_commits_last_30_days(owner, repository, token)
|
commits_30_days = get_commits_last_30_days(owner, repository, token)
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ def PICable(owner, repository, token):
|
|||||||
elif commits_30_days >= LIMIT_COMMITS_30_DAYS * (1 - MARGIN):
|
elif commits_30_days >= LIMIT_COMMITS_30_DAYS * (1 - MARGIN):
|
||||||
res += f"The repository has {commits_30_days} commits in the last 30 days, which is close to the limit of {LIMIT_COMMITS_30_DAYS} commits, considering a {margin_percentage}% margin. :warning:\n"
|
res += f"The repository has {commits_30_days} commits in the last 30 days, which is close to the limit of {LIMIT_COMMITS_30_DAYS} commits, considering a {margin_percentage}% margin. :warning:\n"
|
||||||
else:
|
else:
|
||||||
res += f"The repository has {commits_30_days} commits in the last 30 days, which is way below the limit of {LIMIT_COMMITS_30_DAYS} commits, considering a {margin_percentage}% margin. :x:\n"
|
res += f"The repository has {commits_30_days} commits in the last 30 days, which is way below the limit of {LIMIT_COMMITS_30_DAYS} commits, even if considering a {margin_percentage}% margin. :x:\n"
|
||||||
|
|
||||||
nloc = get_lines_of_code(owner, repository)
|
nloc = get_lines_of_code(owner, repository)
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ def PICable(owner, repository, token):
|
|||||||
elif nloc >= LIMIT_NLOC * (1 - MARGIN):
|
elif nloc >= LIMIT_NLOC * (1 - MARGIN):
|
||||||
res += f"The repository has {nloc} lines of code, which is close to the limit of {LIMIT_NLOC} lines of code, considering a {margin_percentage}% margin. :warning:\n"
|
res += f"The repository has {nloc} lines of code, which is close to the limit of {LIMIT_NLOC} lines of code, considering a {margin_percentage}% margin. :warning:\n"
|
||||||
else:
|
else:
|
||||||
res += f"The repository has {nloc} lines of code, which is way below the limit of {LIMIT_NLOC} lines of code, considering a {margin_percentage}% margin. :x:\n"
|
res += f"The repository has {nloc} lines of code, which is way below the limit of {LIMIT_NLOC} lines of code, even if considering a {margin_percentage}% margin. :x:\n"
|
||||||
|
|
||||||
res += "\n"
|
res += "\n"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user