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
6383a986
Commit
6383a986
authored
Dec 25, 2018
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rebasing
parent
ee826ad4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
lib/api/group_labels.rb
lib/api/group_labels.rb
+1
-1
lib/api/subscriptions.rb
lib/api/subscriptions.rb
+0
-9
No files found.
lib/api/group_labels.rb
View file @
6383a986
...
...
@@ -9,7 +9,7 @@ module API
params
do
requires
:id
,
type:
String
,
desc:
'The ID of a group'
end
resource
:groups
,
requirements:
API
::
PROJECT_ENDPOIN
T_REQUIREMENTS
do
resource
:groups
,
requirements:
API
::
NAMESPACE_OR_PROJEC
T_REQUIREMENTS
do
desc
'Get all labels of the group'
do
detail
'This feature was added in GitLab 11.3'
success
Entities
::
Label
...
...
lib/api/subscriptions.rb
View file @
6383a986
...
...
@@ -11,15 +11,6 @@ module API
{
type:
'labels'
,
source:
Group
,
finder:
->
(
id
)
{
find_label
(
user_group
,
id
)
},
parent_resource:
->
{
nil
}
}
]
params
do
requires
:id
,
type:
String
,
desc:
'The ID of a project'
requires
:subscribable_id
,
type:
String
,
desc:
'The ID of a resource'
end
resource
:projects
,
requirements:
API
::
NAMESPACE_OR_PROJECT_REQUIREMENTS
do
subscribable_types
.
each
do
|
type
,
finder
|
type_singularized
=
type
.
singularize
entity_class
=
Entities
.
const_get
(
type_singularized
.
camelcase
)
subscribables
.
each
do
|
subscribable
|
source_type
=
subscribable
[
:source
].
name
.
underscore
entity_class
=
Entities
.
const_get
(
subscribable
[
:type
].
singularize
.
camelcase
)
...
...
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