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
f610aa7c
Commit
f610aa7c
authored
Sep 21, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
12577c6e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
.gitlab/ci/global.gitlab-ci.yml
.gitlab/ci/global.gitlab-ci.yml
+1
-2
lib/gitlab/danger/helper.rb
lib/gitlab/danger/helper.rb
+2
-2
spec/lib/gitlab/danger/helper_spec.rb
spec/lib/gitlab/danger/helper_spec.rb
+5
-5
No files found.
.gitlab/ci/global.gitlab-ci.yml
View file @
f610aa7c
...
...
@@ -122,5 +122,4 @@
.only-ee
:
only
:
variables
:
-
$CI_PROJECT_NAME == "gitlab-ee"
-
$CI_PROJECT_NAME == "gitlab"
# New name of gitlab-ee after the single codebase migration
-
$CI_PROJECT_NAME == "gitlab"
lib/gitlab/danger/helper.rb
View file @
f610aa7c
...
...
@@ -35,7 +35,7 @@ module Gitlab
end
def
ee?
ENV
[
'CI_PROJECT_NAME'
]
==
'gitlab
-ee
'
||
File
.
exist?
(
'../../CHANGELOG-EE.md'
)
ENV
[
'CI_PROJECT_NAME'
]
==
'gitlab'
||
File
.
exist?
(
'../../CHANGELOG-EE.md'
)
end
def
gitlab_helper
...
...
@@ -52,7 +52,7 @@ module Gitlab
end
def
project_name
ee?
?
'gitlab
-ee'
:
'gitlab-ce
'
ee?
?
'gitlab
'
:
'gitlab-foss
'
end
def
markdown_list
(
items
)
...
...
spec/lib/gitlab/danger/helper_spec.rb
View file @
f610aa7c
...
...
@@ -86,8 +86,8 @@ describe Gitlab::Danger::Helper do
describe
'#ee?'
do
subject
{
helper
.
ee?
}
it
'returns true if CI_PROJECT_NAME if set to gitlab
-ee
'
do
stub_env
(
'CI_PROJECT_NAME'
,
'gitlab
-ee
'
)
it
'returns true if CI_PROJECT_NAME if set to gitlab'
do
stub_env
(
'CI_PROJECT_NAME'
,
'gitlab'
)
expect
(
File
).
not_to
receive
(
:exist?
)
is_expected
.
to
be_truthy
...
...
@@ -118,16 +118,16 @@ describe Gitlab::Danger::Helper do
describe
'#project_name'
do
subject
{
helper
.
project_name
}
it
'returns gitlab
-ee
if ee? returns true'
do
it
'returns gitlab if ee? returns true'
do
expect
(
helper
).
to
receive
(
:ee?
)
{
true
}
is_expected
.
to
eq
(
'gitlab
-ee
'
)
is_expected
.
to
eq
(
'gitlab'
)
end
it
'returns gitlab-ce if ee? returns false'
do
expect
(
helper
).
to
receive
(
:ee?
)
{
false
}
is_expected
.
to
eq
(
'gitlab-
ce
'
)
is_expected
.
to
eq
(
'gitlab-
foss
'
)
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