-
- Downloads
Create helper to get all changed files
Danger apparently has three different objects which could contain files you often want to check: - git.added_files - git.modified_files - git.renamed_files The problem: If a file is renamed, `modified_files` contains the file path before the rename. In some Danger checks we use `added_files` + `modified_files`, which might contain the deleted paths of renamed files, but missing the new paths of renamed files. So we need to consider `renamed_files` as well.
Showing
- Dangerfile 1 addition, 0 deletionsDangerfile
- danger/database/Dangerfile 1 addition, 3 deletionsdanger/database/Dangerfile
- danger/documentation/Dangerfile 1 addition, 3 deletionsdanger/documentation/Dangerfile
- danger/eslint/Dangerfile 1 addition, 1 deletiondanger/eslint/Dangerfile
- danger/plugins/common_helpers.rb 29 additions, 0 deletionsdanger/plugins/common_helpers.rb
- danger/prettier/Dangerfile 1 addition, 1 deletiondanger/prettier/Dangerfile
danger/plugins/common_helpers.rb
0 → 100644
Please register or sign in to comment