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
23f1cafb
Commit
23f1cafb
authored
May 15, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix static analysis offenses
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
e140833b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
+11
-7
app/helpers/tree_helper.rb
app/helpers/tree_helper.rb
+2
-2
app/services/ci/create_pipeline_service.rb
app/services/ci/create_pipeline_service.rb
+6
-2
lib/gitlab/etag_caching/router.rb
lib/gitlab/etag_caching/router.rb
+1
-1
lib/gitlab/gitaly_client/commit.rb
lib/gitlab/gitaly_client/commit.rb
+1
-1
scripts/trigger-build
scripts/trigger-build
+1
-1
No files found.
app/helpers/tree_helper.rb
View file @
23f1cafb
...
...
@@ -139,11 +139,11 @@ module TreeHelper
end
end
else
_lock_link
(
current_user
:
current_user
,
project:
project
,
html_options:
{}
)
_lock_link
(
current_user
,
project
,
html_options:
html_options
)
end
end
def
_lock_link
(
current_user:
current_user
,
project:
project
,
html_options:
{})
def
_lock_link
(
user
,
project
,
html_options:
{})
if
can?
(
current_user
,
:push_code
,
project
)
html_options
[
:data
]
=
{
state: :lock
}
enabled_lock_link
(
"Lock"
,
''
,
html_options
)
...
...
app/services/ci/create_pipeline_service.rb
View file @
23f1cafb
...
...
@@ -50,6 +50,12 @@ module Ci
return
error
(
'No builds for this pipeline.'
)
end
_create_pipeline
end
private
def
_create_pipeline
Ci
::
Pipeline
.
transaction
do
update_merge_requests_head_pipeline
if
pipeline
.
save
...
...
@@ -63,8 +69,6 @@ module Ci
pipeline
.
tap
(
&
:process!
)
end
private
def
skip_ci?
return
false
unless
pipeline
.
git_commit_message
pipeline
.
git_commit_message
=~
/\[(ci[ _-]skip|skip[ _-]ci)\]/i
...
...
lib/gitlab/etag_caching/router.rb
View file @
23f1cafb
...
...
@@ -40,7 +40,7 @@ module Gitlab
Gitlab
::
EtagCaching
::
Router
::
Route
.
new
(
%r(^(?!.*(
#{
RESERVED_WORDS
}
)).*/pipelines/
\d
+
\.
json
\z
)
,
'project_pipeline'
)
,
)
].
freeze
def
self
.
match
(
env
)
...
...
lib/gitlab/gitaly_client/commit.rb
View file @
23f1cafb
...
...
@@ -34,7 +34,7 @@ module Gitlab
left_commit_id:
parent_id
,
right_commit_id:
commit
.
id
,
ignore_whitespace_change:
options
.
fetch
(
:ignore_whitespace_change
,
false
),
paths:
options
.
fetch
(
:paths
,
[])
,
paths:
options
.
fetch
(
:paths
,
[])
)
Gitlab
::
Git
::
DiffCollection
.
new
(
stub
.
commit_diff
(
request
),
options
)
...
...
scripts/trigger-build
View file @
23f1cafb
...
...
@@ -8,7 +8,7 @@ params = {
"ref"
=>
ENV
[
"OMNIBUS_BRANCH"
]
||
"master"
,
"token"
=>
ENV
[
"BUILD_TRIGGER_TOKEN"
],
"variables[GITLAB_VERSION]"
=>
ENV
[
"CI_COMMIT_SHA"
],
"variables[ALTERNATIVE_SOURCES]"
=>
true
,
"variables[ALTERNATIVE_SOURCES]"
=>
true
}
Dir
.
glob
(
"*_VERSION"
).
each
do
|
version_file
|
...
...
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