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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
fd6b5894
Commit
fd6b5894
authored
Nov 19, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Since GitLab CI is enabled by default, remove enabling it by pushing .gitlab-ci.yml
parent
0df7a32e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
CHANGELOG
CHANGELOG
+1
-0
app/services/git_push_service.rb
app/services/git_push_service.rb
+0
-12
No files found.
CHANGELOG
View file @
fd6b5894
...
...
@@ -15,6 +15,7 @@ v 8.2.0
- Add allow_failure field to commit status API (Stan Hu)
- Commits without .gitlab-ci.yml are marked as skipped
- Save detailed error when YAML syntax is invalid
- Since GitLab CI is enabled by default, remove enabling it by pushing .gitlab-ci.yml
- Added build artifacts
- Improved performance of replacing references in comments
- Show last project commit to default branch on project home page
...
...
app/services/git_push_service.rb
View file @
fd6b5894
...
...
@@ -58,12 +58,6 @@ class GitPushService
@push_data
=
build_push_data
(
oldrev
,
newrev
,
ref
)
# If CI was disabled but .gitlab-ci.yml file was pushed
# we enable CI automatically
if
!
project
.
builds_enabled?
&&
gitlab_ci_yaml?
(
newrev
)
project
.
enable_ci
end
EventCreateService
.
new
.
push
(
project
,
user
,
@push_data
)
project
.
execute_hooks
(
@push_data
.
dup
,
:push_hooks
)
project
.
execute_services
(
@push_data
.
dup
,
:push_hooks
)
...
...
@@ -134,10 +128,4 @@ class GitPushService
def
commit_user
(
commit
)
commit
.
author
||
user
end
def
gitlab_ci_yaml?
(
sha
)
@project
.
repository
.
blob_at
(
sha
,
'.gitlab-ci.yml'
)
rescue
Rugged
::
ReferenceError
nil
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