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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
fee70363
Commit
fee70363
authored
Apr 04, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exempt release automation MRs from Danger rules
parent
60a0ef21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
Dangerfile
Dangerfile
+18
-15
lib/gitlab/danger/helper.rb
lib/gitlab/danger/helper.rb
+5
-0
No files found.
Dangerfile
View file @
fee70363
danger
.
import_plugin
(
'danger/plugins/helper.rb'
)
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'
)
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'
)
end
lib/gitlab/danger/helper.rb
View file @
fee70363
...
...
@@ -7,6 +7,7 @@ require_relative 'teammate'
module
Gitlab
module
Danger
module
Helper
RELEASE_TOOLS_BOT
=
'gitlab-release-tools-bot'
ROULETTE_DATA_URL
=
URI
.
parse
(
'https://about.gitlab.com/roulette.json'
).
freeze
# Returns a list of all files that have been added, modified or renamed.
...
...
@@ -40,6 +41,10 @@ module Gitlab
ENV
[
'CI_PROJECT_NAME'
]
==
'gitlab-ee'
||
File
.
exist?
(
'../../CHANGELOG-EE.md'
)
end
def
release_automation?
gitlab
.
mr_author
==
RELEASE_TOOLS_BOT
end
def
project_name
ee?
?
'gitlab-ee'
:
'gitlab-ce'
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