Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
75dae7fe
Commit
75dae7fe
authored
Aug 26, 2019
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GitlabDanger class when determining rules
parent
8c1f083e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
Dangerfile
Dangerfile
+6
-17
No files found.
Dangerfile
View file @
75dae7fe
# frozen_string_literal: true
require_relative
'lib/gitlab_danger'
danger
.
import_plugin
(
'danger/plugins/helper.rb'
)
danger
.
import_plugin
(
'danger/plugins/roulette.rb'
)
unless
helper
.
release_automation?
danger
.
import_dangerfile
(
path:
'danger/metadata'
)
danger
.
import_dangerfile
(
path:
'danger/changes_size'
)
danger
.
import_dangerfile
(
path:
'danger/changelog'
)
danger
.
import_dangerfile
(
path:
'danger/specs'
)
danger
.
import_dangerfile
(
path:
'danger/gemfile'
)
danger
.
import_dangerfile
(
path:
'danger/database'
)
danger
.
import_dangerfile
(
path:
'danger/documentation'
)
danger
.
import_dangerfile
(
path:
'danger/frozen_string'
)
danger
.
import_dangerfile
(
path:
'danger/commit_messages'
)
danger
.
import_dangerfile
(
path:
'danger/duplicate_yarn_dependencies'
)
danger
.
import_dangerfile
(
path:
'danger/prettier'
)
danger
.
import_dangerfile
(
path:
'danger/eslint'
)
danger
.
import_dangerfile
(
path:
'danger/roulette'
)
danger
.
import_dangerfile
(
path:
'danger/single_codebase'
)
danger
.
import_dangerfile
(
path:
'danger/gitlab_ui_wg'
)
danger
.
import_dangerfile
(
path:
'danger/ce_ee_vue_templates'
)
danger
.
import_dangerfile
(
path:
'danger/only_documentation'
)
GitlabDanger
.
new
(
helper
.
gitlab_helper
).
rule_names
.
each
do
|
file
|
danger
.
import_dangerfile
(
path:
File
.
join
(
'danger'
,
file
))
end
end
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