gitlab 4.5.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/.github/stale.yml +18 -0
  3. data/.rubocop_todo.yml +46 -0
  4. data/Gemfile +2 -0
  5. data/README.md +22 -22
  6. data/Rakefile +3 -5
  7. data/bin/console +1 -0
  8. data/exe/gitlab +5 -1
  9. data/gitlab.gemspec +9 -6
  10. data/lib/gitlab.rb +6 -3
  11. data/lib/gitlab/api.rb +5 -3
  12. data/lib/gitlab/cli.rb +11 -5
  13. data/lib/gitlab/cli_helpers.rb +31 -22
  14. data/lib/gitlab/client.rb +7 -8
  15. data/lib/gitlab/client/access_requests.rb +100 -93
  16. data/lib/gitlab/client/award_emojis.rb +127 -127
  17. data/lib/gitlab/client/boards.rb +82 -82
  18. data/lib/gitlab/client/branches.rb +89 -89
  19. data/lib/gitlab/client/build_variables.rb +117 -117
  20. data/lib/gitlab/client/builds.rb +98 -98
  21. data/lib/gitlab/client/commits.rb +154 -154
  22. data/lib/gitlab/client/deployments.rb +29 -29
  23. data/lib/gitlab/client/environments.rb +80 -80
  24. data/lib/gitlab/client/events.rb +54 -54
  25. data/lib/gitlab/client/group_milestones.rb +85 -86
  26. data/lib/gitlab/client/groups.rb +178 -178
  27. data/lib/gitlab/client/issues.rb +195 -196
  28. data/lib/gitlab/client/jobs.rb +150 -150
  29. data/lib/gitlab/client/keys.rb +14 -14
  30. data/lib/gitlab/client/labels.rb +79 -79
  31. data/lib/gitlab/client/merge_request_approvals.rb +102 -102
  32. data/lib/gitlab/client/merge_requests.rb +281 -256
  33. data/lib/gitlab/client/milestones.rb +85 -85
  34. data/lib/gitlab/client/namespaces.rb +18 -18
  35. data/lib/gitlab/client/notes.rb +260 -260
  36. data/lib/gitlab/client/pipeline_schedules.rb +123 -123
  37. data/lib/gitlab/client/pipeline_triggers.rb +93 -93
  38. data/lib/gitlab/client/pipelines.rb +62 -62
  39. data/lib/gitlab/client/projects.rb +526 -505
  40. data/lib/gitlab/client/repositories.rb +68 -55
  41. data/lib/gitlab/client/repository_files.rb +103 -103
  42. data/lib/gitlab/client/runners.rb +113 -115
  43. data/lib/gitlab/client/services.rb +46 -45
  44. data/lib/gitlab/client/sidekiq.rb +32 -32
  45. data/lib/gitlab/client/snippets.rb +86 -86
  46. data/lib/gitlab/client/system_hooks.rb +57 -57
  47. data/lib/gitlab/client/tags.rb +87 -88
  48. data/lib/gitlab/client/todos.rb +41 -41
  49. data/lib/gitlab/client/users.rb +242 -228
  50. data/lib/gitlab/client/versions.rb +16 -0
  51. data/lib/gitlab/configuration.rb +7 -5
  52. data/lib/gitlab/error.rb +3 -1
  53. data/lib/gitlab/file_response.rb +4 -2
  54. data/lib/gitlab/help.rb +9 -9
  55. data/lib/gitlab/objectified_hash.rb +5 -4
  56. data/lib/gitlab/page_links.rb +9 -7
  57. data/lib/gitlab/paginated_response.rb +14 -4
  58. data/lib/gitlab/request.rb +8 -5
  59. data/lib/gitlab/shell.rb +6 -4
  60. data/lib/gitlab/shell_history.rb +7 -5
  61. data/lib/gitlab/version.rb +3 -1
  62. metadata +8 -5
@@ -1,32 +1,32 @@
1
- class Gitlab::Client
2
- # Defines methods related to deployments.
3
- # @see https://docs.gitlab.com/ce/api/deployments.html
4
- module Deployments
5
- # Gets a list of project deployments.
6
- #
7
- # @example
8
- # Gitlab.deployments(5)
9
- # Gitlab.deployments(5, { per_page: 10, page: 2 })
10
- #
11
- # @param [Integer, String] project The ID or name of a project.
12
- # @param [Hash] options A customizable set of options.
13
- # @option options [Integer] :page The page number.
14
- # @option options [Integer] :per_page The number of results per page.
15
- # @return [Array<Gitlab::ObjectifiedHash>]
16
- def deployments(project, options={})
17
- get("/projects/#{url_encode project}/deployments", query: options)
18
- end
1
+ # frozen_string_literal: true
19
2
 
20
- # Gets a single deployment.
21
- #
22
- # @example
23
- # Gitlab.deployment(5, 36)
24
- #
25
- # @param [Integer, String] project The ID or name of a project.
26
- # @param [Integer] id The ID of an deployment.
27
- # @return [Gitlab::ObjectifiedHash]
28
- def deployment(project, id)
29
- get("/projects/#{url_encode project}/deployments/#{id}")
30
- end
3
+ # Defines methods related to deployments.
4
+ # @see https://docs.gitlab.com/ce/api/deployments.html
5
+ module Deployments
6
+ # Gets a list of project deployments.
7
+ #
8
+ # @example
9
+ # Gitlab.deployments(5)
10
+ # Gitlab.deployments(5, { per_page: 10, page: 2 })
11
+ #
12
+ # @param [Integer, String] project The ID or name of a project.
13
+ # @param [Hash] options A customizable set of options.
14
+ # @option options [Integer] :page The page number.
15
+ # @option options [Integer] :per_page The number of results per page.
16
+ # @return [Array<Gitlab::ObjectifiedHash>]
17
+ def deployments(project, options = {})
18
+ get("/projects/#{url_encode project}/deployments", query: options)
19
+ end
20
+
21
+ # Gets a single deployment.
22
+ #
23
+ # @example
24
+ # Gitlab.deployment(5, 36)
25
+ #
26
+ # @param [Integer, String] project The ID or name of a project.
27
+ # @param [Integer] id The ID of an deployment.
28
+ # @return [Gitlab::ObjectifiedHash]
29
+ def deployment(project, id)
30
+ get("/projects/#{url_encode project}/deployments/#{id}")
31
31
  end
32
32
  end
@@ -1,87 +1,87 @@
1
- class Gitlab::Client
2
- # Defines methods related to environments.
3
- # @see https://docs.gitlab.com/ce/api/environments.html
4
- module Environments
5
- # Gets a list of project environments.
6
- #
7
- # @example
8
- # Gitlab.environments(5)
9
- # Gitlab.environments(5, { per_page: 10, page: 2 })
10
- #
11
- # @param [Integer, String] project The ID or name of a project.
12
- # @param [Hash] options A customizable set of options.
13
- # @option options [Integer] :page The page number.
14
- # @option options [Integer] :per_page The number of results per page.
15
- # @return [Array<Gitlab::ObjectifiedHash>]
16
- def environments(project, options={})
17
- get("/projects/#{url_encode project}/environments", query: options)
18
- end
1
+ # frozen_string_literal: true
19
2
 
20
- # Gets a single environment.
21
- #
22
- # @example
23
- # Gitlab.environment(5, 36)
24
- #
25
- # @param [Integer, String] project The ID or name of a project.
26
- # @param [Integer] id The ID of an environment.
27
- # @return [Gitlab::ObjectifiedHash]
28
- def environment(project, id)
29
- get("/projects/#{url_encode project}/environments/#{id}")
30
- end
3
+ # Defines methods related to environments.
4
+ # @see https://docs.gitlab.com/ce/api/environments.html
5
+ module Environments
6
+ # Gets a list of project environments.
7
+ #
8
+ # @example
9
+ # Gitlab.environments(5)
10
+ # Gitlab.environments(5, { per_page: 10, page: 2 })
11
+ #
12
+ # @param [Integer, String] project The ID or name of a project.
13
+ # @param [Hash] options A customizable set of options.
14
+ # @option options [Integer] :page The page number.
15
+ # @option options [Integer] :per_page The number of results per page.
16
+ # @return [Array<Gitlab::ObjectifiedHash>]
17
+ def environments(project, options = {})
18
+ get("/projects/#{url_encode project}/environments", query: options)
19
+ end
20
+
21
+ # Gets a single environment.
22
+ #
23
+ # @example
24
+ # Gitlab.environment(5, 36)
25
+ #
26
+ # @param [Integer, String] project The ID or name of a project.
27
+ # @param [Integer] id The ID of an environment.
28
+ # @return [Gitlab::ObjectifiedHash]
29
+ def environment(project, id)
30
+ get("/projects/#{url_encode project}/environments/#{id}")
31
+ end
31
32
 
32
- # Create an environment.
33
- #
34
- # @examples
35
- # Gitlab.create_environment(5, 'test-branch')
36
- # Gitlab.create_environment(5, 'test-branch', external_url: 'https://test-branch.example.host.com')
37
- #
38
- # @param [Integer, String] project The ID or name of a project.
39
- # @param [String] env_name Name for the environment
40
- # @option options [String] :external_url Optional URL for viewing the deployed project in this environment
41
- # @return [Gitlab::ObjectifiedHash] The updated environment.
42
- def create_environment(project, env_name, options = {})
43
- body = {name: env_name}.merge(options)
44
- post("/projects/#{url_encode project}/environments", body: body)
45
- end
33
+ # Create an environment.
34
+ #
35
+ # @examples
36
+ # Gitlab.create_environment(5, 'test-branch')
37
+ # Gitlab.create_environment(5, 'test-branch', external_url: 'https://test-branch.example.host.com')
38
+ #
39
+ # @param [Integer, String] project The ID or name of a project.
40
+ # @param [String] env_name Name for the environment
41
+ # @option options [String] :external_url Optional URL for viewing the deployed project in this environment
42
+ # @return [Gitlab::ObjectifiedHash] The updated environment.
43
+ def create_environment(project, env_name, options = {})
44
+ body = { name: env_name }.merge(options)
45
+ post("/projects/#{url_encode project}/environments", body: body)
46
+ end
46
47
 
47
- # Update an environment.
48
- #
49
- # @examples
50
- # Gitlab.edit_environment(5, 36, name: 'test-branch')
51
- # Gitlab.edit_environment(5, 36, external_url: 'https://test-branch.example.host.com')
52
- #
53
- # @param [Integer, String] project The ID or name of a project.
54
- # @param [Integer] id The ID of an environment.
55
- # @param [Hash] options A hash of the attribute keys & values to update.
56
- # @option options [String] env_name Name for the environment
57
- # @option options [String] external_url Optional URL for viewing the deployed project in this environment
58
- # @return [Gitlab::ObjectifiedHash] The updated environment.
59
- def edit_environment(project, id, options={})
60
- put("/projects/#{url_encode project}/environments/#{id}", body: options)
61
- end
48
+ # Update an environment.
49
+ #
50
+ # @examples
51
+ # Gitlab.edit_environment(5, 36, name: 'test-branch')
52
+ # Gitlab.edit_environment(5, 36, external_url: 'https://test-branch.example.host.com')
53
+ #
54
+ # @param [Integer, String] project The ID or name of a project.
55
+ # @param [Integer] id The ID of an environment.
56
+ # @param [Hash] options A hash of the attribute keys & values to update.
57
+ # @option options [String] env_name Name for the environment
58
+ # @option options [String] external_url Optional URL for viewing the deployed project in this environment
59
+ # @return [Gitlab::ObjectifiedHash] The updated environment.
60
+ def edit_environment(project, id, options = {})
61
+ put("/projects/#{url_encode project}/environments/#{id}", body: options)
62
+ end
62
63
 
63
- # Deletes an environment.
64
- #
65
- # @example
66
- # Gitlab.delete_environment(5, 36)
67
- #
68
- # @param [Integer, String] project The ID or name of a project.
69
- # @param [Integer] id The ID of an environment.
70
- # @return [Gitlab::ObjectifiedHash] Information about the deleted environment.
71
- def delete_environment(project, id)
72
- delete("/projects/#{url_encode project}/environments/#{id}")
73
- end
64
+ # Deletes an environment.
65
+ #
66
+ # @example
67
+ # Gitlab.delete_environment(5, 36)
68
+ #
69
+ # @param [Integer, String] project The ID or name of a project.
70
+ # @param [Integer] id The ID of an environment.
71
+ # @return [Gitlab::ObjectifiedHash] Information about the deleted environment.
72
+ def delete_environment(project, id)
73
+ delete("/projects/#{url_encode project}/environments/#{id}")
74
+ end
74
75
 
75
- # Stop an environment.
76
- #
77
- # @example
78
- # Gitlab.stop_environment(5, 36)
79
- #
80
- # @param [Integer, String] project The ID or name of a project.
81
- # @param [Integer] id The ID of an environment.
82
- # @return [Array<Gitlab::ObjectifiedHash>] The stopped environment.
83
- def stop_environment(project, id)
84
- post("/projects/#{url_encode project}/environments/#{id}/stop")
85
- end
76
+ # Stop an environment.
77
+ #
78
+ # @example
79
+ # Gitlab.stop_environment(5, 36)
80
+ #
81
+ # @param [Integer, String] project The ID or name of a project.
82
+ # @param [Integer] id The ID of an environment.
83
+ # @return [Array<Gitlab::ObjectifiedHash>] The stopped environment.
84
+ def stop_environment(project, id)
85
+ post("/projects/#{url_encode project}/environments/#{id}/stop")
86
86
  end
87
87
  end
@@ -1,58 +1,58 @@
1
- class Gitlab::Client
2
- # Defines methods related to events.
3
- # @see https://docs.gitlab.com/ce/api/events.html
4
- module Events
5
- # Gets a list of authenticated user's events
6
- #
7
- # @example
8
- # Gitlab.events()
9
- # Gitlab.events({ action: 'created', target_type: 'issue' })
10
- #
11
- # @param [Hash] options A customizable set of options.
12
- # @option options [String] :action Only events of specific action type
13
- # @option options [String] :target_type Only events of specific target type
14
- # @option options [String] :before Only events created before YYYY-MM-DD
15
- # @option options [String] :after Only events created after YYYY-MM-DD
16
- # @option options [String] :sort Sort by created_at either 'asc' or 'desc'
17
- # @return [Array<Gitlab::ObjectifiedHash>]
18
- def events(options={})
19
- get('/events', query: options)
20
- end
1
+ # frozen_string_literal: true
21
2
 
22
- # Gets a list of user contribution events
23
- #
24
- # @example
25
- # Gitlab.user_events(1)
26
- # Gitlab.user_events(1, { action: created})
27
- #
28
- # @param [Integer, String] user The ID or username of user
29
- # @param [Hash] options A customizable set of options.
30
- # @option options [String] :action Only events of specific action type
31
- # @option options [String] :target_type Only events of specific target type
32
- # @option options [String] :before Only events created before YYYY-MM-DD
33
- # @option options [String] :after Only events created after YYYY-MM-DD
34
- # @option options [String] :sort Sort by created_at either 'asc' or 'desc'
35
- # @return [Array<Gitlab::ObjectifiedHash>]
36
- def user_events(user, options={})
37
- get("/users/#{url_encode user}/events", query: options)
38
- end
3
+ # Defines methods related to events.
4
+ # @see https://docs.gitlab.com/ce/api/events.html
5
+ module Events
6
+ # Gets a list of authenticated user's events
7
+ #
8
+ # @example
9
+ # Gitlab.events()
10
+ # Gitlab.events({ action: 'created', target_type: 'issue' })
11
+ #
12
+ # @param [Hash] options A customizable set of options.
13
+ # @option options [String] :action Only events of specific action type
14
+ # @option options [String] :target_type Only events of specific target type
15
+ # @option options [String] :before Only events created before YYYY-MM-DD
16
+ # @option options [String] :after Only events created after YYYY-MM-DD
17
+ # @option options [String] :sort Sort by created_at either 'asc' or 'desc'
18
+ # @return [Array<Gitlab::ObjectifiedHash>]
19
+ def events(options = {})
20
+ get('/events', query: options)
21
+ end
22
+
23
+ # Gets a list of user contribution events
24
+ #
25
+ # @example
26
+ # Gitlab.user_events(1)
27
+ # Gitlab.user_events(1, { action: created})
28
+ #
29
+ # @param [Integer, String] user The ID or username of user
30
+ # @param [Hash] options A customizable set of options.
31
+ # @option options [String] :action Only events of specific action type
32
+ # @option options [String] :target_type Only events of specific target type
33
+ # @option options [String] :before Only events created before YYYY-MM-DD
34
+ # @option options [String] :after Only events created after YYYY-MM-DD
35
+ # @option options [String] :sort Sort by created_at either 'asc' or 'desc'
36
+ # @return [Array<Gitlab::ObjectifiedHash>]
37
+ def user_events(user, options = {})
38
+ get("/users/#{url_encode user}/events", query: options)
39
+ end
39
40
 
40
- # Gets a list of visible project events
41
- #
42
- # @example
43
- # Gitlab.project_events(1)
44
- # Gitlab.project_events(1, { action: created })
45
- #
46
- # @param [Integer] project The ID of project
47
- # @param [Hash] options A customizable set of options.
48
- # @option options [String] :action Only events of specific action type
49
- # @option options [String] :target_type Only events of specific target type
50
- # @option options [String] :before Only events created before YYYY-MM-DD
51
- # @option options [String] :after Only events created after YYYY-MM-DD
52
- # @option options [String] :sort Sort by created_at either 'asc' or 'desc'
53
- # @return [Array<Gitlab::ObjectifiedHash>]
54
- def project_events(project, options={})
55
- get("/#{url_encode project}/events", query: options)
56
- end
41
+ # Gets a list of visible project events
42
+ #
43
+ # @example
44
+ # Gitlab.project_events(1)
45
+ # Gitlab.project_events(1, { action: created })
46
+ #
47
+ # @param [Integer] project The ID of project
48
+ # @param [Hash] options A customizable set of options.
49
+ # @option options [String] :action Only events of specific action type
50
+ # @option options [String] :target_type Only events of specific target type
51
+ # @option options [String] :before Only events created before YYYY-MM-DD
52
+ # @option options [String] :after Only events created after YYYY-MM-DD
53
+ # @option options [String] :sort Sort by created_at either 'asc' or 'desc'
54
+ # @return [Array<Gitlab::ObjectifiedHash>]
55
+ def project_events(project, options = {})
56
+ get("/projects/#{url_encode project}/events", query: options)
57
57
  end
58
58
  end
@@ -1,93 +1,92 @@
1
- class Gitlab::Client
2
- # Defines methods related to group milestones.
3
- # @see https://docs.gitlab.com/ee/api/group_milestones.html
4
- module GroupMilestones
5
- # Gets a list of a group's milestones.
6
- #
7
- # @example
8
- # Gitlab.group_milestones(5)
9
- #
10
- # @param [Integer, String] id The ID or name of a group.
11
- # @param [Hash] options A customizable set of options.
12
- # @option options [Integer] :page The page number.
13
- # @option options [Integer] :per_page The number of results per page.
14
- # @return [Array<Gitlab::ObjectifiedHash>]
15
- def group_milestones(id, options={})
16
- get("/groups/#{url_encode id}/milestones", query: options)
17
- end
1
+ # frozen_string_literal: true
18
2
 
19
- # Gets a single group milestone.
20
- #
21
- # @example
22
- # Gitlab.group_milestone(5, 36)
23
- #
24
- # @param [Integer, String] id The ID or name of a group.
25
- # @param [Integer] milestone_id The ID of a milestone.
26
- # @return [Gitlab::ObjectifiedHash]
27
- def group_milestone(id, milestone_id)
28
- get("/groups/#{url_encode id}/milestones/#{milestone_id}")
29
- end
3
+ # Defines methods related to group milestones.
4
+ # @see https://docs.gitlab.com/ee/api/group_milestones.html
5
+ module GroupMilestones
6
+ # Gets a list of a group's milestones.
7
+ #
8
+ # @example
9
+ # Gitlab.group_milestones(5)
10
+ #
11
+ # @param [Integer, String] id The ID or name of a group.
12
+ # @param [Hash] options A customizable set of options.
13
+ # @option options [Integer] :page The page number.
14
+ # @option options [Integer] :per_page The number of results per page.
15
+ # @return [Array<Gitlab::ObjectifiedHash>]
16
+ def group_milestones(id, options = {})
17
+ get("/groups/#{url_encode id}/milestones", query: options)
18
+ end
30
19
 
31
- # Creates a new group milestone.
32
- #
33
- # @example
34
- # Gitlab.create_group_milestone(5, 'v1.0')
35
- #
36
- # @param [Integer, String] id The ID or name of a group.
37
- # @param [String] title The title of a milestone.
38
- # @param [Hash] options A customizable set of options.
39
- # @option options [String] :description The description of a milestone.
40
- # @option options [String] :due_date The due date of a milestone.
41
- # @return [Gitlab::ObjectifiedHash] Information about created milestone.
42
- def create_group_milestone(id, title, options={})
43
- body = { title: title }.merge(options)
44
- post("/groups/#{url_encode id}/milestones", body: body)
45
- end
20
+ # Gets a single group milestone.
21
+ #
22
+ # @example
23
+ # Gitlab.group_milestone(5, 36)
24
+ #
25
+ # @param [Integer, String] id The ID or name of a group.
26
+ # @param [Integer] milestone_id The ID of a milestone.
27
+ # @return [Gitlab::ObjectifiedHash]
28
+ def group_milestone(id, milestone_id)
29
+ get("/groups/#{url_encode id}/milestones/#{milestone_id}")
30
+ end
46
31
 
47
- # Updates a group milestone.
48
- #
49
- # @example
50
- # Gitlab.edit_group_milestone(5, 2, { state_event: 'activate' })
51
- #
52
- # @param [Integer, String] id The ID or name of a group.
53
- # @param [Integer] milestone_id The ID of a milestone.
54
- # @param [Hash] options A customizable set of options.
55
- # @option options [String] :title The title of a milestone.
56
- # @option options [String] :description The description of a milestone.
57
- # @option options [String] :due_date The due date of a milestone.
58
- # @option options [String] :state_event The state of a milestone ('close' or 'activate').
59
- # @return [Gitlab::ObjectifiedHash] Information about updated milestone.
60
- def edit_group_milestone(id, milestone_id, options={})
61
- put("/groups/#{url_encode id}/milestones/#{milestone_id}", body: options)
62
- end
32
+ # Creates a new group milestone.
33
+ #
34
+ # @example
35
+ # Gitlab.create_group_milestone(5, 'v1.0')
36
+ #
37
+ # @param [Integer, String] id The ID or name of a group.
38
+ # @param [String] title The title of a milestone.
39
+ # @param [Hash] options A customizable set of options.
40
+ # @option options [String] :description The description of a milestone.
41
+ # @option options [String] :due_date The due date of a milestone.
42
+ # @return [Gitlab::ObjectifiedHash] Information about created milestone.
43
+ def create_group_milestone(id, title, options = {})
44
+ body = { title: title }.merge(options)
45
+ post("/groups/#{url_encode id}/milestones", body: body)
46
+ end
63
47
 
64
- # Gets the issues of a given group milestone.
65
- #
66
- # @example
67
- # Gitlab.group_milestone_issues(5, 2)
68
- #
69
- # @param [Integer, String] id The ID or name of a group.
70
- # @param [Integer, String] milestone_id The ID of a milestone.
71
- # @option options [Integer] :page The page number.
72
- # @option options [Integer] :per_page The number of results per page.
73
- # @return [Array<Gitlab::ObjectifiedHash>]
74
- def group_milestone_issues(id, milestone_id, options={})
75
- get("/groups/#{url_encode id}/milestones/#{milestone_id}/issues", query: options)
76
- end
48
+ # Updates a group milestone.
49
+ #
50
+ # @example
51
+ # Gitlab.edit_group_milestone(5, 2, { state_event: 'activate' })
52
+ #
53
+ # @param [Integer, String] id The ID or name of a group.
54
+ # @param [Integer] milestone_id The ID of a milestone.
55
+ # @param [Hash] options A customizable set of options.
56
+ # @option options [String] :title The title of a milestone.
57
+ # @option options [String] :description The description of a milestone.
58
+ # @option options [String] :due_date The due date of a milestone.
59
+ # @option options [String] :state_event The state of a milestone ('close' or 'activate').
60
+ # @return [Gitlab::ObjectifiedHash] Information about updated milestone.
61
+ def edit_group_milestone(id, milestone_id, options = {})
62
+ put("/groups/#{url_encode id}/milestones/#{milestone_id}", body: options)
63
+ end
77
64
 
78
- # Gets the merge_requests of a given group milestone.
79
- #
80
- # @example
81
- # Gitlab.group_milestone_merge_requests(5, 2)
82
- #
83
- # @param [Integer, String] group The ID or name of a group.
84
- # @param [Integer, String] milestone_id The ID of a milestone.
85
- # @option options [Integer] :page The page number.
86
- # @option options [Integer] :per_page The number of results per page.
87
- # @return [Array<Gitlab::ObjectifiedHash>]
88
- def group_milestone_merge_requests(id, milestone_id, options={})
89
- get("/groups/#{url_encode id}/milestones/#{milestone_id}/merge_requests", query: options)
90
- end
65
+ # Gets the issues of a given group milestone.
66
+ #
67
+ # @example
68
+ # Gitlab.group_milestone_issues(5, 2)
69
+ #
70
+ # @param [Integer, String] id The ID or name of a group.
71
+ # @param [Integer, String] milestone_id The ID of a milestone.
72
+ # @option options [Integer] :page The page number.
73
+ # @option options [Integer] :per_page The number of results per page.
74
+ # @return [Array<Gitlab::ObjectifiedHash>]
75
+ def group_milestone_issues(id, milestone_id, options = {})
76
+ get("/groups/#{url_encode id}/milestones/#{milestone_id}/issues", query: options)
91
77
  end
92
- end
93
78
 
79
+ # Gets the merge_requests of a given group milestone.
80
+ #
81
+ # @example
82
+ # Gitlab.group_milestone_merge_requests(5, 2)
83
+ #
84
+ # @param [Integer, String] group The ID or name of a group.
85
+ # @param [Integer, String] milestone_id The ID of a milestone.
86
+ # @option options [Integer] :page The page number.
87
+ # @option options [Integer] :per_page The number of results per page.
88
+ # @return [Array<Gitlab::ObjectifiedHash>]
89
+ def group_milestone_merge_requests(id, milestone_id, options = {})
90
+ get("/groups/#{url_encode id}/milestones/#{milestone_id}/merge_requests", query: options)
91
+ end
92
+ end