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
3c879350
Commit
3c879350
authored
Apr 06, 2020
by
Doug Stull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reference source project
parent
10e47d18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/serializers/merge_request_widget_entity.rb
app/serializers/merge_request_widget_entity.rb
+1
-2
No files found.
app/serializers/merge_request_widget_entity.rb
View file @
3c879350
...
...
@@ -96,9 +96,8 @@ class MergeRequestWidgetEntity < Grape::Entity
def
can_add_ci_config_path?
(
merge_request
)
merge_request
.
source_project
&
.
uses_default_ci_config?
&&
!
merge_request
.
target_project
.
auto_devops_enabled
?
&&
!
merge_request
.
source_project
.
has_ci
?
&&
merge_request
.
commits_count
.
positive?
&&
!
merge_request
.
source_project
.
repository
.
blob_at
(
merge_request
.
source_branch
,
Gitlab
::
FileDetector
::
PATTERNS
[
:gitlab_ci
])
&&
can?
(
current_user
,
:read_build
,
merge_request
.
source_project
)
&&
can?
(
current_user
,
:create_pipeline
,
merge_request
.
source_project
)
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