pr-size-labeler icon indicating copy to clipboard operation
pr-size-labeler copied to clipboard

Support ignoring file deletions

Open johnlk opened this issue 1 year ago • 1 comments

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

  • [ ] Refactor
  • [x] Feature
  • [ ] Bug Fix
  • [ ] Optimization
  • [ ] Documentation Update

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 avatar Apr 17 '24 00:04 johnlk

cc: @OnkarRuikar

johnlk avatar Apr 17 '24 00:04 johnlk