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
Jérome Perrin
gitlab-ce
Commits
82e92a09
Commit
82e92a09
authored
Apr 06, 2016
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API: Expose open_issues_count, closed_issues_count, open_merge_requests_count on labels
parent
f76bfed9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
20 deletions
+21
-20
doc/api/labels.md
doc/api/labels.md
+20
-20
lib/api/entities.rb
lib/api/entities.rb
+1
-0
No files found.
doc/api/labels.md
View file @
82e92a09
...
...
@@ -23,42 +23,42 @@ Example response:
{
"name"
:
"bug"
,
"color"
:
"#d9534f"
,
"description"
:
"Bug reported by user"
"description"
:
"Bug reported by user"
,
"open_issues_count"
:
1
,
"closed_issues_count"
:
0
,
"open_merge_requests_count"
:
1
},
{
"color"
:
"#d9534f"
,
"name"
:
"confirmed"
,
"description"
:
"Confirmed issue"
"description"
:
"Confirmed issue"
,
"open_issues_count"
:
2
,
"closed_issues_count"
:
5
,
"open_merge_requests_count"
:
0
},
{
"name"
:
"critical"
,
"color"
:
"#d9534f"
,
"description"
:
"Criticalissue. Need fix ASAP"
},
{
"color"
:
"#428bca"
,
"name"
:
"discussion"
,
"description"
:
"Issue that needs further discussion"
"description"
:
"Criticalissue. Need fix ASAP"
,
"open_issues_count"
:
1
,
"closed_issues_count"
:
3
,
"open_merge_requests_count"
:
1
},
{
"name"
:
"documentation"
,
"color"
:
"#f0ad4e"
,
"description"
:
"Issue about documentation"
"description"
:
"Issue about documentation"
,
"open_issues_count"
:
1
,
"closed_issues_count"
:
0
,
"open_merge_requests_count"
:
2
},
{
"color"
:
"#5cb85c"
,
"name"
:
"enhancement"
,
"description"
:
"Enhancement proposal"
},
{
"color"
:
"#428bca"
,
"name"
:
"suggestion"
,
"description"
:
"Suggestion"
},
{
"color"
:
"#f0ad4e"
,
"name"
:
"support"
,
"description"
:
"Support issue"
"description"
:
"Enhancement proposal"
,
"open_issues_count"
:
1
,
"closed_issues_count"
:
0
,
"open_merge_requests_count"
:
1
}
]
```
...
...
lib/api/entities.rb
View file @
82e92a09
...
...
@@ -293,6 +293,7 @@ module API
class
Label
<
Grape
::
Entity
expose
:name
,
:color
,
:description
expose
:open_issues_count
,
:closed_issues_count
,
:open_merge_requests_count
end
class
Compare
<
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