CodelyTV / pr-size-labeler

🏷 Visualize and optionally limit the size of your Pull Requests
https://github.com/marketplace/actions/pull-request-size-labeler
MIT License
336 stars 58 forks source link

Add support to ignore whitespace-only changes? #56

Open SimonSchick opened 1 year ago

SimonSchick commented 1 year ago

Title says all, indent changes have usually very little relevance to complexity.

adrianjost commented 11 months ago

I agree and vote for this feature. But unfortunately it seems to require a rewrite of the complexity "calculation". Currently it is only an API request to Github (code) and the used endpoint does not provide that data (documentation). I also couldn't find one that does, and even the GitHub UI does not expose that information (to my knowledge). So a manual git diff -w including a repo download would be likely necessary.