Not showing multiple file error bug (#450)
When user selects the following, Danger can't show the multiple file error: - [ ] Changed more than one extension, but all changes are related
This commit is contained in:
parent
dfcedbe274
commit
86a7e9b4f8
|
@ -18,7 +18,7 @@ if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}
|
|||
end
|
||||
|
||||
# Restrict changing only one extension per PR
|
||||
if git.modified_files.grep(/^Sources\//).count > 1
|
||||
if (git.modified_files.grep(/^Sources\//).count > 1) && (github.pr_body.include? "- [ ] Changed more than one extension, but all changes are related")
|
||||
fail("Please, modify only one extension per pull request.")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue