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
448056f0
Commit
448056f0
authored
Mar 26, 2020
by
Nick Kipling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added constant and changelog entry
parent
e72fd1ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
ee/changelogs/unreleased/197923-add-pipeline-to-packages-list-api.yml
...s/unreleased/197923-add-pipeline-to-packages-list-api.yml
+5
-0
ee/lib/ee/api/entities/package.rb
ee/lib/ee/api/entities/package.rb
+3
-1
No files found.
ee/changelogs/unreleased/197923-add-pipeline-to-packages-list-api.yml
0 → 100644
View file @
448056f0
---
title
:
Adds additional pipeline information to packages API result
merge_request
:
28040
author
:
type
:
added
ee/lib/ee/api/entities/package.rb
View file @
448056f0
...
...
@@ -27,8 +27,10 @@ module EE
expose
:project_path
,
if:
->
(
obj
,
opts
)
{
opts
[
:group
]
&&
Ability
.
allowed?
(
opts
[
:user
],
:read_project
,
obj
.
project
)
}
expose
:tags
PIPELINE_PROPS
=
[
:created_at
,
:id
,
:sha
,
:ref
,
:status
,
:updated_at
,
:web_url
,
user:
[
:name
,
:avatar_url
]].
freeze
expose
:pipeline
,
if:
->
(
obj
)
{
obj
.
build_info
}
do
|
package
|
::
API
::
Entities
::
Pipeline
.
represent
package
.
build_info
.
pipeline
,
only:
[
:created_at
,
:id
,
:sha
,
:ref
,
:status
,
:updated_at
,
:web_url
,
user:
[
:name
,
:avatar_url
]]
::
API
::
Entities
::
Pipeline
.
represent
package
.
build_info
.
pipeline
,
only:
PIPELINE_PROPS
end
private
...
...
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