Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
mirror
ossec-cookbook
Commits
ee82b830
Unverified
Commit
ee82b830
authored
May 20, 2020
by
Jason Field
Committed by
GitHub
May 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #138 from sous-chefs/automated/standardfiles
Automated PR: Standardising Files
parents
c4accf97
dfed836e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Dangerfile
Dangerfile
+6
-1
No files found.
Dangerfile
View file @
ee82b830
...
...
@@ -18,7 +18,7 @@ def code_changes?
end
def
test_changes?
tests
=
%w(spec test
.
kitchen.yml
.
kitchen.dokken.yml)
tests
=
%w(spec test kitchen.yml kitchen.dokken.yml)
tests
.
each
do
|
location
|
return
true
unless
git
.
modified_files
.
grep
(
/
#{
location
}
/
).
empty?
end
...
...
@@ -36,6 +36,11 @@ if !git.modified_files.include?('CHANGELOG.md') && code_changes?
failure
'Please include a CHANGELOG entry.'
end
# Require Major Minor Patch version labels
unless
github
.
pr_labels
.
grep
/minor|major|patch/i
warn
'Please add a release label to this pull request'
end
# A sanity check for tests.
if
git
.
lines_of_code
>
5
&&
code_changes?
&&
!
test_changes?
warn
'This Pull Request is probably missing tests.'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment