diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-09-29 16:33:38 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-11-07 09:26:57 +0100 |
commit | 76c237460a801050e68def5ff54c15e4e74b38a8 (patch) | |
tree | fb4690a269f655ccbb9cb2c4dbd4631abad6af01 /lib/api/entities.rb | |
parent | c392b0cc24ba40e3fed920c6c693cb24665193af (diff) | |
download | gitlab-ce-76c237460a801050e68def5ff54c15e4e74b38a8.tar.gz |
Ability to update labels priority via API
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 01e31f6f7d1..9dd36ec969e 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -438,6 +438,9 @@ module API class Label < LabelBasic expose :open_issues_count, :closed_issues_count, :open_merge_requests_count + expose :priority do |label, options| + label.priority(options[:project]) + end expose :subscribed do |label, options| label.subscribed?(options[:current_user]) |