restrict modyfing one test and one extension per pr
This commit is contained in:
parent
042aba8452
commit
05bac810ee
10
Dangerfile
10
Dangerfile
|
@ -7,3 +7,13 @@ end
|
||||||
if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ }
|
if git.commits.any? { |c| c.message =~ /^Merge branch '#{github.branch_for_base}'/ }
|
||||||
fail('Please rebase to get rid of the merge commits in this PR')
|
fail('Please rebase to get rid of the merge commits in this PR')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Restrict changing only one extension per PR
|
||||||
|
if git.modified_files.grep(/^Sources\//).count > 1
|
||||||
|
fail("Please, modify only one extension per pull request.")
|
||||||
|
end
|
||||||
|
|
||||||
|
# Restrict changing only one test per PR
|
||||||
|
if git.modified_files.grep(/^EZSwiftExtensionsTests\//).count > 1
|
||||||
|
fail("Please, modify only one extension per pull request.")
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue