github / issue-metrics

Gather metrics on issues/prs/discussions such as time to first response, count of issues opened, closed, etc.
https://github.blog/2023-07-19-metrics-for-issues-pull-requests-and-discussions/
MIT License
372 stars 46 forks source link

Ability to hide `Number of items closed` Metric in the overview table #309

Closed zkoppert closed 1 month ago

zkoppert commented 1 month ago

Is your feature request related to a problem?

Number of items closed as shown in the screenshot does not have any meaningful value when running the action against Discussions. Discussions are normally marked as answered rather than closed.

Image

Describe the solution you'd like

I would like to have the ability to configure HIDE_ITEMS_CLOSED_COUNT env variable such that it is not reported in the markdown output.

Describe alternatives you've considered

Just dealing with it 🤷

Additional context

No response

Piedone commented 1 month ago

Even with HIDE_TIME_TO_CLOSE: true the "Number of items closed" line is there for me: https://github.com/github/issue-metrics/discussions/300

Also, for discussions, I'd welcome a "Number of items answered" metric instead (I suppose Time to answer already calculates with the same data).

zkoppert commented 1 month ago

Yeah I want a separate HIDE_* variable for the count because I feel like the count of closed items is a volume metric and the time to close is a velocity metric. Users may want one but not the other.

As for the number of items answered, I've created a separate feature request for that.

Thanks for helping to shape how this action should work @Piedone! I really appreciate it! 🚀

Piedone commented 1 month ago

Oh great, thank you! And glad I could help!

Piedone commented 1 month ago

Thank you for fixing this so quickly!