summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/reviewers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-04-15 23:28:14 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-01 16:52:08 -0700
commitee2845d18d90d751c86f779863e9420b8d1a7eef (patch)
tree8b86531ca3756114631799d1330e323c27966d52 /python/fatcat_tools/reviewers
parentf2ed5a939c2281b85f3908aaf91a0fdba06f0351 (diff)
downloadfatcat-ee2845d18d90d751c86f779863e9420b8d1a7eef.tar.gz
fatcat-ee2845d18d90d751c86f779863e9420b8d1a7eef.zip
reviewer: fix bugs in common code found by mypy
Diffstat (limited to 'python/fatcat_tools/reviewers')
-rw-r--r--python/fatcat_tools/reviewers/review_common.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/fatcat_tools/reviewers/review_common.py b/python/fatcat_tools/reviewers/review_common.py
index ecf7da8f..994cec56 100644
--- a/python/fatcat_tools/reviewers/review_common.py
+++ b/python/fatcat_tools/reviewers/review_common.py
@@ -132,11 +132,12 @@ class ReviewBot:
status, result_counts[status])
for result in results:
if result.status == status and result.check_type == "editgroup":
- comment += "\n- {description}".format(result.description)
+ comment += "\n- {description}".format(description=result.description)
if result.status == status and result.check_type != "editgroup":
- comment += "\n- {check_type} [{rev}](/{release_type}/rev/{rev}): {description}".format(
+ comment += "\n- {check_type} [{rev}](/{entity_type}/rev/{rev}): {description}".format(
check_type=result.check_type,
rev=result.rev,
+ entity_type=result.check_type,
description=result.description)
extra = self.extra.copy()