BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c8d66514
Commit
c8d66514
authored
Jan 19, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-project-creation' into 'master'
Creator should be added as a master of the project on creation Fixes: #4222 See merge request !2463
parents
dec341ca
2ece1b77
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG
CHANGELOG
+1
-0
create_service.rb
app/services/projects/create_service.rb
+1
-1
create_service_spec.rb
spec/services/projects/create_service_spec.rb
+1
-0
No files found.
CHANGELOG
View file @
c8d66514
...
...
@@ -67,6 +67,7 @@ v 8.4.0 (unreleased)
- Improve UX in builds artifacts browser
- Increase default size of `data` column in `events` table when using MySQL
- Expose button to CI Lint tool on project builds page
- Fix: Creator should be added as a master of the project on creation
v 8.3.4
- Use gitlab-workhorse 0.5.4 (fixes API routing bug)
...
...
app/services/projects/create_service.rb
View file @
c8d66514
...
...
@@ -95,7 +95,7 @@ module Projects
system_hook_service
.
execute_hooks_for
(
@project
,
:create
)
unless
@project
.
group
@project
.
team
<<
[
current_user
,
:master
,
current_user
]
@project
.
team
<<
[
current_user
,
:master
]
end
@project
.
import_start
if
@project
.
import?
...
...
spec/services/projects/create_service_spec.rb
View file @
c8d66514
...
...
@@ -32,6 +32,7 @@ describe Projects::CreateService, services: true do
it
{
expect
(
@project
).
to
be_valid
}
it
{
expect
(
@project
.
owner
).
to
eq
(
@user
)
}
it
{
expect
(
@project
.
team
.
masters
).
to
include
(
@user
)
}
it
{
expect
(
@project
.
namespace
).
to
eq
(
@user
.
namespace
)
}
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