code-pushup / cli

A CLI to run all kinds of code quality measurements to align your team with company goals
https://code-pushup.dev
MIT License
208 stars 12 forks source link

Prevent empty categories table in PR comments #819

Closed matejchalk closed 2 days ago

matejchalk commented 1 week ago

What happened?

When only audits change, but categories, an empty categories table is displayed (only column headers).

image

What would you expect to happen?

If all categories are unchanged, then the table shouldn't be shown, only the All of 4 categories are unchanged message should be displayed

What steps did you take?

Running Code PushUp GitHub Action in monorepo mode. Fixed a few lint errors, but not all, so there is no change to categories.

Code PushUp package version

0.50.0

What operation system are you on?

Linux

Node version

20

Relevant log output

No response