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
616b8ea0
Commit
616b8ea0
authored
Sep 03, 2020
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `downstream_pipeline` of `Ci::Bridge`
parent
f98e9028
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
app/models/ci/bridge.rb
app/models/ci/bridge.rb
+0
-4
changelogs/unreleased/make-bridge-pipelines-clickable.yml
changelogs/unreleased/make-bridge-pipelines-clickable.yml
+1
-1
lib/gitlab/ci/status/bridge/common.rb
lib/gitlab/ci/status/bridge/common.rb
+3
-3
No files found.
app/models/ci/bridge.rb
View file @
616b8ea0
...
...
@@ -81,10 +81,6 @@ module Ci
sourced_pipelines
.
exists?
end
def
first_downstream_pipeline
sourced_pipelines
.
first
end
def
downstream_pipeline_params
return
child_params
if
triggers_child_pipeline?
return
cross_project_params
if
downstream_project
.
present?
...
...
changelogs/unreleased/make-bridge-pipelines-clickable.yml
View file @
616b8ea0
---
title
:
Make bridge/child pipelines clickable
merge_request
:
merge_request
:
41263
author
:
type
:
added
lib/gitlab/ci/status/bridge/common.rb
View file @
616b8ea0
...
...
@@ -10,13 +10,13 @@ module Gitlab
end
def
has_details?
can?
(
user
,
:read_pipeline
,
subject
.
first_
downstream_pipeline
)
can?
(
user
,
:read_pipeline
,
subject
.
downstream_pipeline
)
end
def
details_path
return
unless
subject
.
first_
downstream_pipeline
return
unless
subject
.
downstream_pipeline
pipeline
=
subject
.
first_
downstream_pipeline
pipeline
=
subject
.
downstream_pipeline
project_pipeline_path
(
pipeline
.
project
,
pipeline
)
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