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

Support ignoring file deletions #76

Closed johnlk closed 4 months ago

johnlk commented 5 months ago

What type of PR is this? (check all applicable)

Description

This change supports ignoring files which are wholly deleted. This seems to be a common ask. The new config variable is called ignore_file_deletions and relies on the files API to determine the status of a file.

This change was inspired by #61 , but with updated patterns and tests.

How to test

I added unit tests for the new code paths to ensure everything is behaving as expected.

Link to issues addressed

johnlk commented 5 months ago

cc: @OnkarRuikar