File tree 1 file changed +5
-5
lines changed
post/clang_tidy_review/clang_tidy_review
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1129,8 +1129,10 @@ def post_review(
1129
1129
1130
1130
set_output ("total_comments" , str (total_comments ))
1131
1131
1132
+ decorated_review = decorate_comments (review )
1133
+
1132
1134
print ("Removing already posted or extra comments" , flush = True )
1133
- trimmed_review = cull_comments (pull_request , review , max_comments )
1135
+ trimmed_review = cull_comments (pull_request , decorated_review , max_comments )
1134
1136
1135
1137
if not trimmed_review ["comments" ]:
1136
1138
print ("Everything already posted!" )
@@ -1140,10 +1142,8 @@ def post_review(
1140
1142
pprint .pprint (review , width = 130 )
1141
1143
return total_comments
1142
1144
1143
- decorated_review = decorate_comments (trimmed_review )
1144
-
1145
- print ("Posting the review:\n " , pprint .pformat (decorated_review ), flush = True )
1146
- pull_request .post_review (decorated_review )
1145
+ print ("Posting the review:\n " , pprint .pformat (trimmed_review ), flush = True )
1146
+ pull_request .post_review (trimmed_review )
1147
1147
1148
1148
return total_comments
1149
1149
You can’t perform that action at this time.
0 commit comments