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
Léo-Paul Géneau
gitlab-ce
Commits
1809f6f6
Commit
1809f6f6
authored
Feb 13, 2019
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API: Indicate if label is a project label
parent
7a8f8714
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
changelogs/unreleased/56694-mark-group-level-labels-in-label-api-as-such.yml
...ed/56694-mark-group-level-labels-in-label-api-as-such.yml
+5
-0
lib/api/entities.rb
lib/api/entities.rb
+3
-0
No files found.
changelogs/unreleased/56694-mark-group-level-labels-in-label-api-as-such.yml
0 → 100644
View file @
1809f6f6
---
title
:
'
API:
Indicate
if
label
is
a
project
label'
merge_request
:
25219
author
:
Robert Schilling
type
:
added
lib/api/entities.rb
View file @
1809f6f6
...
...
@@ -1031,6 +1031,9 @@ module API
expose
:priority
do
|
label
,
options
|
label
.
priority
(
options
[
:parent
])
end
expose
:is_project_label
do
|
label
,
options
|
label
.
is_a?
(
::
ProjectLabel
)
end
end
class
List
<
Grape
::
Entity
...
...
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