menu
Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Docs
view-forward
# JavaScript
view-forward
# Peril
view-forward
# Ruby
view-forward
# Swift
view-forward
Team

How do I get total modified files, except some files (danger-js)?

October 15, 2019 at 4:17pm

How do I get total modified files, except some files (danger-js)?

October 15, 2019 at 4:17pm
I need get total modified lines in Pull Request, but I want disconsider some files, example: yarn.lock. Its possible?

October 15, 2019 at 6:59pm
Feasible, but not built to do it - you would need to re-implent the linesOfCode function and also give it a filter step. All of the diffForFiles are memoized so it should be fast/
  • reply
  • like
An alternative (and maybe better) option is to get the diff for the excluded files and remove them from the total numbers
  • reply
  • like