hyperdx/.github
Brandon Pereira 89868d2670
feat: Enhance Knip workflow for unused code analysis (#1973)
## Summary

This update improves the Knip GitHub Action by adding detailed reporting of unused code issues. The changes include:

- Enhanced issue counting to include a breakdown of items per category.
- Added a detailed summary section in the PR comment that lists added and removed items for each category when there are changes.
- Improved error handling to ensure consistent return values even when parsing fails.

These enhancements provide clearer insights into unused code changes between branches, aiding in code maintenance and quality.


| Before | After | 
| --- | --- | 
| <img width="569" height="451" alt="Screenshot 2026-03-23 at 4 44 43 PM" src="https://github.com/user-attachments/assets/01c2fdcc-802f-4046-8ab3-f3e92ec46ae0" /> | <img width="981" height="706" alt="Screenshot 2026-03-23 at 4 42 47 PM" src="https://github.com/user-attachments/assets/8fefeb74-1606-4a26-b307-3aa5ff76265f" /> | 


Note the additional details at bottom explaining the Function/Files causing diffs

Also, if no changes are detected, output is minimal:
<img width="1050" height="271" alt="Screenshot 2026-03-23 at 4 45 37 PM" src="https://github.com/user-attachments/assets/e075a5cd-4170-4999-a2c3-752447ac2f8a" />
2026-03-24 14:10:00 +00:00
..
images Update CONTRIBUTING.md (#1000) 2025-07-14 18:03:54 -07:00
workflows feat: Enhance Knip workflow for unused code analysis (#1973) 2026-03-24 14:10:00 +00:00
pull_request_template.md Add PR template (#1820) 2026-03-02 18:04:07 +00:00