gitlab-ruby 0.1.1.pre → 0.1.2.pre
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.
- checksums.yaml +4 -4
- data/lib/gitlab/api/issues.rb +27 -0
- data/lib/gitlab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9fc5e454452048fc79a20d450ed567323818fdd213e767e67652bb041d48d11
|
4
|
+
data.tar.gz: 2f3ec5f9c534bbb9e09233bdd3a36cac11e8a6007707cb42ea2361d446460490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b88602bafda9e419bdb24ac21fcdc7a266b732bc1d4a6f953aea46ca9be3be89fc1fbf8a06820b4055b702cb7e9b7274d495ae471a71cd5e4137539823ba9a37
|
7
|
+
data.tar.gz: b2abc4a4474533e49527f7ad779dfdd599f3dd610cf14061959b65b4bde8df98c833972d598ced86116278f341250fcc19407b621096713cf34ebc619d1310ef
|
data/lib/gitlab/api/issues.rb
CHANGED
@@ -1,18 +1,45 @@
|
|
1
1
|
module Gitlab
|
2
2
|
module Api
|
3
|
+
##
|
4
|
+
# Issues api client
|
5
|
+
# @see https://docs.gitlab.com/ee/api/issues.html
|
6
|
+
#
|
3
7
|
class Issues < Api::Base
|
4
8
|
PATH = 'issues'
|
5
9
|
|
10
|
+
##
|
11
|
+
# Retrieve all issues user has access to
|
12
|
+
#
|
13
|
+
# @see https://docs.gitlab.com/ee/api/issues.html#list-issues
|
14
|
+
# @param args [Hash] Arguments to pass to gitlab
|
15
|
+
# @return [Gitlab::Response]
|
16
|
+
#
|
6
17
|
def list(args = {})
|
7
18
|
action = with_pagination(args) { connection.get(PATH, args) }
|
8
19
|
handle_action(action)
|
9
20
|
end
|
10
21
|
|
22
|
+
##
|
23
|
+
# Retrieve all issues within a group
|
24
|
+
#
|
25
|
+
# @see https://docs.gitlab.com/ee/api/issues.html#list-group-issues
|
26
|
+
# @param group [String] The group to get issues for
|
27
|
+
# @param args [Hash] Arguments to pass to gitlab
|
28
|
+
# @return [Gitlab::Response]
|
29
|
+
#
|
11
30
|
def list_group(group, args = {})
|
12
31
|
action = with_pagination(args) { connection.get(group_path(group), args) }
|
13
32
|
handle_action(action)
|
14
33
|
end
|
15
34
|
|
35
|
+
##
|
36
|
+
# Retrieve all issues within a project
|
37
|
+
#
|
38
|
+
# @see https://docs.gitlab.com/ee/api/issues.html#list-project-issues
|
39
|
+
# @param project [String] The project to get issues for
|
40
|
+
# @param args [Hash] Arguments to pass to gitlab
|
41
|
+
# @return [Gitlab::Response]
|
42
|
+
#
|
16
43
|
def list_project(project, args = {})
|
17
44
|
action = with_pagination(args) { connection.get(project_path(project), args) }
|
18
45
|
handle_action(action)
|
data/lib/gitlab/version.rb
CHANGED