Skip to content

Commit

Permalink
refactor: update review effort label format to include range indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Jan 23, 2025
1 parent dfa98cd commit 640c1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr_agent/tools/pr_reviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def set_review_labels(self, data):
else:
get_logger().warning(f"Unexpected type for estimated_effort: {type(estimated_effort)}")
if 1 <= estimated_effort_number <= 5: # 1, because ...
review_labels.append(f'Review effort: {estimated_effort_number}/5')
review_labels.append(f'Review effort [1-5]: {estimated_effort_number}')
if get_settings().pr_reviewer.enable_review_labels_security and get_settings().pr_reviewer.require_security_review:
security_concerns = data['review']['security_concerns'] # yes, because ...
security_concerns_bool = 'yes' in security_concerns.lower() or 'true' in security_concerns.lower()
Expand Down

0 comments on commit 640c1d8

Please sign in to comment.