Skip to content

Commit

Permalink
Merge pull request #92 from BUYT-1/patch-1
Browse files Browse the repository at this point in the history
Set total_comments output if split_workflow is true
  • Loading branch information
ZedThree authored Sep 12, 2023
2 parents f411633 + 10702a8 commit 30a0fb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions post/clang_tidy_review/clang_tidy_review/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
strip_enclosing_quotes,
post_annotations,
bool_argument,
set_output,
)


Expand Down Expand Up @@ -158,6 +159,8 @@ def main():
save_metadata(args.pr)

if args.split_workflow:
total_comments = 0 if review is None else len(review["comments"])
set_output("total_comments", total_comments)
print("split_workflow is enabled, not posting review")
return

Expand Down

0 comments on commit 30a0fb8

Please sign in to comment.