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
91b659d9
Commit
91b659d9
authored
Nov 24, 2021
by
samdbeckham
Committed by
Sam Beckham
Dec 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds the ci_config dangerfile
parent
c8776ac7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
danger/ci_config/Dangerfile
danger/ci_config/Dangerfile
+19
-0
tooling/danger/project_helper.rb
tooling/danger/project_helper.rb
+1
-0
No files found.
danger/ci_config/Dangerfile
0 → 100644
View file @
91b659d9
# frozen_string_literal: true
all_changed_files
=
helper
.
all_changed_files
def
get_ci_config_files
(
files
)
files
.
select
do
|
file
|
file
.
include?
(
'lib/gitlab/ci'
)
end
end
schema_path
=
'app/assets/javascripts/editor/schema/ci.json'
ci_config_files
=
get_ci_config_files
(
all_changed_files
)
has_schema_update
=
all_changed_files
.
include?
(
schema_path
)
return
if
ci_config_files
.
empty?
||
has_schema_update
;
file_list
=
"-
#{
ci_config_files
.
map
{
|
path
|
"`
#{
path
}
`"
}
.join("
\
n
-
")}"
warn
"This merge request changed CI config files but did not update the schema. Please consider updating [the schema](
#{
schema_path
}
) to reflect these changes:
\n
#{
file_list
}
"
tooling/danger/project_helper.rb
View file @
91b659d9
...
...
@@ -5,6 +5,7 @@ module Tooling
module
ProjectHelper
LOCAL_RULES
||=
%w[
changelog
ci_config
database
documentation
duplicate_yarn_dependencies
...
...
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