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
6886287a
Commit
6886287a
authored
Nov 26, 2021
by
Etienne Baqué
Committed by
Sam Beckham
Dec 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the CI danger check a little more performant
parent
749460ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
danger/ci_config/Dangerfile
danger/ci_config/Dangerfile
+3
-2
No files found.
danger/ci_config/Dangerfile
View file @
6886287a
...
...
@@ -9,10 +9,11 @@ def get_ci_config_files(files)
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
has_schema_update
return
if
ci_config_files
.
empty?
||
has_schema_update
ci_config_files
=
get_ci_config_files
(
all_changed_files
)
return
if
ci_config_files
.
empty?
file_list
=
"-
#{
ci_config_files
.
map
{
|
path
|
"`
#{
path
}
`"
}
.join("
\
n
-
")}"
...
...
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