Compare commits
1 Commits
master
...
dangerfile
Author | SHA1 | Date |
---|---|---|
![]() |
9aaafb0e7b |
|
@ -18,7 +18,7 @@ if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}
|
||||||
end
|
end
|
||||||
|
|
||||||
# Restrict changing only one extension per PR
|
# 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.")
|
fail("Please, modify only one extension per pull request.")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue