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
875a1b84
Commit
875a1b84
authored
Jun 27, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
a55fa46f
d56d5f98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
Dangerfile
Dangerfile
+1
-0
danger/only_documentation/Dangerfile
danger/only_documentation/Dangerfile
+24
-0
No files found.
Dangerfile
View file @
875a1b84
...
...
@@ -19,4 +19,5 @@ unless helper.release_automation?
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'
)
end
danger/only_documentation/Dangerfile
0 → 100644
View file @
875a1b84
# rubocop:disable Style/SignalException
# frozen_string_literal: true
has_only_docs_changes
=
helper
.
all_changed_files
.
all?
{
|
file
|
file
.
start_with?
(
'doc/'
)
}
is_docs_only_branch
=
gitlab
.
branch_for_head
=~
/(^docs[\/-].*|.*-docs$)/
if
is_docs_only_branch
&&
!
has_only_docs_changes
fail
"It seems like your branch name has a `docs` prefix or suffix. "
\
"The CI won't run the full pipeline, but you also have changed non-docs files. "
\
"Please recreate this MR with a new branch name."
end
if
has_only_docs_changes
&&
!
is_docs_only_branch
markdown
(
<<~
MARKDOWN
)
## Documentation only changes
Hey! Seems your merge request contains only docs changes.
Tired of waiting 2 hours for the pipeline to finish?
Next time, prepend `docs-` to [your branch name](https://docs.gitlab.com/ee/development/documentation/#branch-naming)
and the pipeline will finish before you say GitLab (x300)!
MARKDOWN
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