github_cli 0.5.9 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. data/.travis.yml +1 -0
  2. data/CHANGELOG.md +12 -1
  3. data/Gemfile.lock +12 -10
  4. data/README.md +18 -0
  5. data/features/authorization.feature +53 -0
  6. data/features/blob.feature +1 -1
  7. data/features/download.feature +13 -11
  8. data/features/gist.feature +9 -1
  9. data/features/label.feature +11 -12
  10. data/features/member.feature +5 -4
  11. data/features/merging.feature +5 -4
  12. data/features/organization.feature +5 -4
  13. data/features/repository.feature +9 -1
  14. data/features/search.feature +5 -4
  15. data/github_cli.gemspec +1 -1
  16. data/lib/github_cli/api.rb +56 -49
  17. data/lib/github_cli/apis/assignee.rb +6 -6
  18. data/lib/github_cli/apis/authorization.rb +5 -5
  19. data/lib/github_cli/apis/blob.rb +6 -6
  20. data/lib/github_cli/apis/collaborator.rb +12 -12
  21. data/lib/github_cli/apis/commit.rb +6 -6
  22. data/lib/github_cli/apis/content.rb +9 -9
  23. data/lib/github_cli/apis/download.rb +15 -15
  24. data/lib/github_cli/apis/email.rb +9 -9
  25. data/lib/github_cli/apis/event.rb +24 -24
  26. data/lib/github_cli/apis/follower.rb +16 -15
  27. data/lib/github_cli/apis/fork.rb +6 -6
  28. data/lib/github_cli/apis/gist.rb +31 -30
  29. data/lib/github_cli/apis/hook.rb +6 -6
  30. data/lib/github_cli/apis/issue.rb +12 -12
  31. data/lib/github_cli/apis/key.rb +15 -15
  32. data/lib/github_cli/apis/label.rb +24 -26
  33. data/lib/github_cli/apis/member.rb +15 -27
  34. data/lib/github_cli/apis/merging.rb +3 -3
  35. data/lib/github_cli/apis/milestone.rb +15 -15
  36. data/lib/github_cli/apis/notification.rb +18 -18
  37. data/lib/github_cli/apis/organization.rb +9 -9
  38. data/lib/github_cli/apis/pull_request.rb +24 -24
  39. data/lib/github_cli/apis/reference.rb +15 -15
  40. data/lib/github_cli/apis/repository.rb +13 -12
  41. data/lib/github_cli/apis/search.rb +12 -12
  42. data/lib/github_cli/apis/starring.rb +15 -15
  43. data/lib/github_cli/apis/status.rb +6 -6
  44. data/lib/github_cli/apis/tag.rb +6 -6
  45. data/lib/github_cli/apis/team.rb +39 -39
  46. data/lib/github_cli/apis/tree.rb +6 -6
  47. data/lib/github_cli/apis/user.rb +9 -9
  48. data/lib/github_cli/apis/watching.rb +15 -15
  49. data/lib/github_cli/cli.rb +24 -16
  50. data/lib/github_cli/commands/assignees.rb +8 -2
  51. data/lib/github_cli/commands/authorizations.rb +10 -13
  52. data/lib/github_cli/commands/blobs.rb +9 -3
  53. data/lib/github_cli/commands/collaborators.rb +16 -4
  54. data/lib/github_cli/commands/commits.rb +11 -6
  55. data/lib/github_cli/commands/contents.rb +9 -6
  56. data/lib/github_cli/commands/downloads.rb +30 -6
  57. data/lib/github_cli/commands/emails.rb +12 -3
  58. data/lib/github_cli/commands/events.rb +30 -8
  59. data/lib/github_cli/commands/followers.rb +20 -5
  60. data/lib/github_cli/commands/forks.rb +6 -4
  61. data/lib/github_cli/commands/gists.rb +39 -12
  62. data/lib/github_cli/commands/hooks.rb +1 -1
  63. data/lib/github_cli/commands/issues.rb +15 -4
  64. data/lib/github_cli/commands/keys.rb +20 -5
  65. data/lib/github_cli/commands/labels.rb +53 -14
  66. data/lib/github_cli/commands/members.rb +28 -9
  67. data/lib/github_cli/commands/merging.rb +3 -2
  68. data/lib/github_cli/commands/milestones.rb +27 -15
  69. data/lib/github_cli/commands/notifications.rb +19 -11
  70. data/lib/github_cli/commands/organizations.rb +24 -5
  71. data/lib/github_cli/commands/pull_requests.rb +30 -8
  72. data/lib/github_cli/commands/references.rb +17 -5
  73. data/lib/github_cli/commands/repositories.rb +6 -4
  74. data/lib/github_cli/commands/search.rb +24 -6
  75. data/lib/github_cli/commands/starring.rb +19 -5
  76. data/lib/github_cli/commands/statuses.rb +7 -3
  77. data/lib/github_cli/commands/tags.rb +7 -3
  78. data/lib/github_cli/commands/teams.rb +52 -17
  79. data/lib/github_cli/commands/trees.rb +6 -2
  80. data/lib/github_cli/commands/users.rb +9 -3
  81. data/lib/github_cli/commands/watching.rb +19 -5
  82. data/lib/github_cli/vendor/thor/actions/directory.rb +2 -0
  83. data/lib/github_cli/vendor/thor/actions/empty_directory.rb +3 -19
  84. data/lib/github_cli/vendor/thor/actions/file_manipulation.rb +4 -1
  85. data/lib/github_cli/vendor/thor/actions.rb +1 -1
  86. data/lib/github_cli/vendor/thor/base.rb +20 -18
  87. data/lib/github_cli/vendor/thor/command.rb +1 -1
  88. data/lib/github_cli/vendor/thor/error.rb +0 -4
  89. data/lib/github_cli/vendor/thor/group.rb +4 -9
  90. data/lib/github_cli/vendor/thor/runner.rb +1 -1
  91. data/lib/github_cli/vendor/thor/shell/basic.rb +25 -7
  92. data/lib/github_cli/vendor/thor/version.rb +1 -1
  93. data/lib/github_cli/vendor/thor.rb +17 -2
  94. data/lib/github_cli/version.rb +1 -1
  95. data/spec/github_cli/api/configure_spec.rb +50 -0
  96. data/spec/github_cli/api/github_api_spec.rb +19 -0
  97. data/spec/github_cli/commands/assignees_spec.rb +1 -1
  98. data/spec/github_cli/commands/blobs_spec.rb +1 -1
  99. data/spec/github_cli/commands/collaborators_spec.rb +1 -1
  100. data/spec/github_cli/commands/commits_spec.rb +1 -1
  101. data/spec/github_cli/commands/contents_spec.rb +1 -1
  102. data/spec/github_cli/commands/downloads_spec.rb +35 -0
  103. data/spec/github_cli/commands/emails_spec.rb +1 -1
  104. data/spec/github_cli/commands/events_spec.rb +1 -1
  105. data/spec/github_cli/commands/followers_spec.rb +1 -1
  106. data/spec/github_cli/commands/forks_spec.rb +1 -1
  107. data/spec/github_cli/commands/gists_spec.rb +6 -1
  108. data/spec/github_cli/commands/issues_spec.rb +1 -1
  109. data/spec/github_cli/commands/keys_spec.rb +1 -1
  110. data/spec/github_cli/commands/labels_spec.rb +13 -3
  111. data/spec/github_cli/commands/members_spec.rb +46 -0
  112. data/spec/github_cli/commands/merging_spec.rb +1 -1
  113. data/spec/github_cli/commands/milestones_spec.rb +1 -1
  114. data/spec/github_cli/commands/notifications_spec.rb +1 -1
  115. data/spec/github_cli/commands/organizations_spec.rb +30 -0
  116. data/spec/github_cli/commands/pull_requests_spec.rb +1 -1
  117. data/spec/github_cli/commands/references_spec.rb +1 -1
  118. data/spec/github_cli/commands/repositories_spec.rb +5 -0
  119. data/spec/github_cli/commands/starring_spec.rb +1 -1
  120. data/spec/github_cli/commands/statuses_spec.rb +1 -1
  121. data/spec/github_cli/commands/tags_spec.rb +1 -1
  122. data/spec/github_cli/commands/teams_spec.rb +1 -1
  123. data/spec/github_cli/commands/trees_spec.rb +1 -1
  124. data/spec/github_cli/commands/users_spec.rb +1 -1
  125. data/spec/github_cli/commands/watching_spec.rb +1 -1
  126. metadata +27 -17
  127. data/spec/github_cli/api_spec.rb +0 -19
@@ -5,45 +5,33 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def all(org, params, format)
9
- output format do
10
- github_api.orgs.members.list org, params
8
+ def all(org, params, options)
9
+ output options do
10
+ github_api(options).orgs.members.list org, params
11
11
  end
12
12
  end
13
13
 
14
- def all_public(org, params, format)
15
- output format do
16
- github_api.orgs.members.list_public org, params
14
+ def member?(org, user, params, options)
15
+ output options do
16
+ github_api(options).orgs.members.member? org, user, params
17
17
  end
18
18
  end
19
19
 
20
- def member?(org, user, params, format)
21
- output format do
22
- github_api.orgs.members.member? org, user, params
20
+ def delete(org, user, params, options)
21
+ output options do
22
+ github_api(options).orgs.members.delete org, user, params
23
23
  end
24
24
  end
25
25
 
26
- def public_member?(org, user, params, format)
27
- output format do
28
- github_api.orgs.members.public_member? org, user, params
26
+ def publicize(org, user, params, options)
27
+ output options do
28
+ github_api(options).orgs.members.publicize org, user, params
29
29
  end
30
30
  end
31
31
 
32
- def delete(org, user, params, format)
33
- output format do
34
- github_api.orgs.members.delete org, user, params
35
- end
36
- end
37
-
38
- def publicize(org, user, params, format)
39
- output format do
40
- github_api.orgs.members.publicize org, user, params
41
- end
42
- end
43
-
44
- def conceal(org, user, params, format)
45
- output format do
46
- github_api.orgs.members.conceal org, user, params
32
+ def conceal(org, user, params, options)
33
+ output options do
34
+ github_api(options).orgs.members.conceal org, user, params
47
35
  end
48
36
  end
49
37
  end
@@ -5,9 +5,9 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def merge(user, repo, params, format)
9
- output format do
10
- github_api.repos.merging.merge user, repo, params
8
+ def merge(user, repo, params, options)
9
+ output options do
10
+ github_api(options).repos.merging.merge user, repo, params
11
11
  end
12
12
  end
13
13
 
@@ -5,33 +5,33 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def all(user, repo, params, format)
9
- output format do
10
- github_api.issues.milestones.list user, repo, params
8
+ def all(user, repo, params, options)
9
+ output options do
10
+ github_api(options).issues.milestones.list user, repo, params
11
11
  end
12
12
  end
13
13
 
14
- def get(user, repo, id, params, format)
15
- output format do
16
- github_api.issues.milestones.get user, repo, id, params
14
+ def get(user, repo, id, params, options)
15
+ output options do
16
+ github_api(options).issues.milestones.get user, repo, id, params
17
17
  end
18
18
  end
19
19
 
20
- def create(user, repo, params, format)
21
- output format do
22
- github_api.issues.milestones.create user, repo, params
20
+ def create(user, repo, params, options)
21
+ output options do
22
+ github_api(options).issues.milestones.create user, repo, params
23
23
  end
24
24
  end
25
25
 
26
- def update(user, repo, id, params, format)
27
- output format do
28
- github_api.issues.milestones.update user, repo, id, params
26
+ def update(user, repo, id, params, options)
27
+ output options do
28
+ github_api(options).issues.milestones.update user, repo, id, params
29
29
  end
30
30
  end
31
31
 
32
- def delete(user, repo, id, params, format)
33
- output format do
34
- github_api.issues.milestones.delete user, repo, id, params
32
+ def delete(user, repo, id, params, options)
33
+ output options do
34
+ github_api(options).issues.milestones.delete user, repo, id, params
35
35
  end
36
36
  end
37
37
  end
@@ -5,39 +5,39 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def all(params, format)
9
- output format do
10
- github_api.activity.notifications.list params
8
+ def all(params, options)
9
+ output options do
10
+ github_api(options).activity.notifications.list params
11
11
  end
12
12
  end
13
13
 
14
- def get(id, params, format)
15
- output format do
16
- github_api.activity.notifications.get id, params
14
+ def get(id, params, options)
15
+ output options do
16
+ github_api(options).activity.notifications.get id, params
17
17
  end
18
18
  end
19
19
 
20
- def mark(params, format)
21
- output format do
22
- github_api.activity.notifications.mark params
20
+ def mark(params, options)
21
+ output options do
22
+ github_api(options).activity.notifications.mark params
23
23
  end
24
24
  end
25
25
 
26
- def subscribed?(id, params, format)
27
- output format do
28
- github_api.activity.notifications.subscribed? id, params
26
+ def subscribed?(id, params, options)
27
+ output options do
28
+ github_api(options).activity.notifications.subscribed? id, params
29
29
  end
30
30
  end
31
31
 
32
- def create(id, params, format)
33
- output format do
34
- github_api.activity.notifications.create id, params
32
+ def create(id, params, options)
33
+ output options do
34
+ github_api(options).activity.notifications.create id, params
35
35
  end
36
36
  end
37
37
 
38
- def delete(id, params, format)
39
- output format do
40
- github_api.activity.notifications.delete id, params
38
+ def delete(id, params, options)
39
+ output options do
40
+ github_api(options).activity.notifications.delete id, params
41
41
  end
42
42
  end
43
43
  end
@@ -5,21 +5,21 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def list(params, format)
9
- output format do
10
- github_api.orgs.list params
8
+ def list(params, options)
9
+ output options do
10
+ github_api(options).orgs.list params
11
11
  end
12
12
  end
13
13
 
14
- def get(org, params, format)
15
- output format do
16
- github_api.orgs.get org, params
14
+ def get(org, params, options)
15
+ output options do
16
+ github_api(options).orgs.get org, params
17
17
  end
18
18
  end
19
19
 
20
- def edit(org, params, format)
21
- output format do
22
- github_api.orgs.edit org, params
20
+ def edit(org, params, options)
21
+ output options do
22
+ github_api(options).orgs.edit org, params
23
23
  end
24
24
  end
25
25
  end
@@ -5,51 +5,51 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def list(user, repo, params, format)
9
- output format do
10
- github_api.pull_requests.list user, repo, params
8
+ def list(user, repo, params, options)
9
+ output options do
10
+ github_api(options).pull_requests.list user, repo, params
11
11
  end
12
12
  end
13
13
 
14
- def get(user, repo, number, params, format)
15
- output format do
16
- github_api.pull_requests.get user, repo, number, params
14
+ def get(user, repo, number, params, options)
15
+ output options do
16
+ github_api(options).pull_requests.get user, repo, number, params
17
17
  end
18
18
  end
19
19
 
20
- def create(user, repo, params, format)
21
- output format do
22
- github_api.pull_requests.create user, repo, params
20
+ def create(user, repo, params, options)
21
+ output options do
22
+ github_api(options).pull_requests.create user, repo, params
23
23
  end
24
24
  end
25
25
 
26
- def update(user, repo, number, params, format)
27
- output format do
28
- github_api.pull_requests.update user, repo, number, params
26
+ def update(user, repo, number, params, options)
27
+ output options do
28
+ github_api(options).pull_requests.update user, repo, number, params
29
29
  end
30
30
  end
31
31
 
32
- def commits(user, repo, number, params, format)
33
- output format do
34
- github_api.pull_requests.commits user, repo, number, params
32
+ def commits(user, repo, number, params, options)
33
+ output options do
34
+ github_api(options).pull_requests.commits user, repo, number, params
35
35
  end
36
36
  end
37
37
 
38
- def files(user, repo, number, params, format)
39
- output format do
40
- github_api.pull_requests.files user, repo, number, params
38
+ def files(user, repo, number, params, options)
39
+ output options do
40
+ github_api(options).pull_requests.files user, repo, number, params
41
41
  end
42
42
  end
43
43
 
44
- def merged(user, repo, number, params, format)
45
- output format do
46
- github_api.pull_requests.merged? user, repo, number, params
44
+ def merged(user, repo, number, params, options)
45
+ output options do
46
+ github_api(options).pull_requests.merged? user, repo, number, params
47
47
  end
48
48
  end
49
49
 
50
- def merge(user, repo, number, params, format)
51
- output format do
52
- github_api.pull_requests.merge user, repo, number, params
50
+ def merge(user, repo, number, params, options)
51
+ output options do
52
+ github_api(options).pull_requests.merge user, repo, number, params
53
53
  end
54
54
  end
55
55
  end
@@ -5,33 +5,33 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def list(user, repo, params, format)
9
- output format do
10
- github_api.git_data.references.list user, repo, params
8
+ def list(user, repo, params, options)
9
+ output options do
10
+ github_api(options).git_data.references.list user, repo, params
11
11
  end
12
12
  end
13
13
 
14
- def get(user, repo, ref, params, format)
15
- output format do
16
- github_api.git_data.references.get user, repo, ref, params
14
+ def get(user, repo, ref, params, options)
15
+ output options do
16
+ github_api(options).git_data.references.get user, repo, ref, params
17
17
  end
18
18
  end
19
19
 
20
- def create(user, repo, params, format)
21
- output format do
22
- github_api.git_data.references.create user, repo, params
20
+ def create(user, repo, params, options)
21
+ output options do
22
+ github_api(options).git_data.references.create user, repo, params
23
23
  end
24
24
  end
25
25
 
26
- def update(user, repo, ref, params, format)
27
- output format do
28
- github_api.git_data.references.update user, repo, ref, params
26
+ def update(user, repo, ref, params, options)
27
+ output options do
28
+ github_api(options).git_data.references.update user, repo, ref, params
29
29
  end
30
30
  end
31
31
 
32
- def delete(user, repo, ref, params, format)
33
- output format do
34
- github_api.git_data.references.delete user, repo, ref, params
32
+ def delete(user, repo, ref, params, options)
33
+ output options do
34
+ github_api(options).git_data.references.delete user, repo, ref, params
35
35
  end
36
36
  end
37
37
  end
@@ -6,67 +6,68 @@ module GithubCLI
6
6
  class << self
7
7
 
8
8
  def all(params, options)
9
- output options[:format], options[:quiet] do
10
- github_api(options).repos.list params
9
+ args = options[:every] ? ['every', params] : [params]
10
+ output options do
11
+ github_api(options).repos.list *args
11
12
  end
12
13
  end
13
14
 
14
15
  def get(user, repo, params, options)
15
- output options[:format], options[:quiet] do
16
+ output options do
16
17
  github_api(options).repos.get user, repo, params
17
18
  end
18
19
  end
19
20
 
20
21
  def create(params, options)
21
- output options[:format], options[:quiet] do
22
+ output options do
22
23
  github_api(options).repos.create params
23
24
  end
24
25
  end
25
26
 
26
27
  def edit(user, repo, params, options)
27
- output options[:format], options[:quiet] do
28
+ output options do
28
29
  github_api(options).repos.edit user, repo, params
29
30
  end
30
31
  end
31
32
 
32
33
  def delete(user, repo, params, options)
33
- output options[:format], options[:quiet] do
34
+ output options do
34
35
  github_api(options).repos.delete user, repo, params
35
36
  end
36
37
  end
37
38
 
38
39
  def branches(user, repo, params, options)
39
- output options[:format], options[:quiet] do
40
+ output options do
40
41
  github_api(options).repos.branches user, repo, params
41
42
  end
42
43
  end
43
44
 
44
45
  def branch(user, repo, name, params, options)
45
- output options[:format], options[:quiet] do
46
+ output options do
46
47
  github_api(options).repos.branch user, repo, name, params
47
48
  end
48
49
  end
49
50
 
50
51
  def contributors(user, repo, params, options)
51
- output options[:format], options[:quiet] do
52
+ output options do
52
53
  github_api(options).repos.contributors user, repo, params
53
54
  end
54
55
  end
55
56
 
56
57
  def languages(user, repo, params, options)
57
- output options[:format], options[:quiet] do
58
+ output options do
58
59
  github_api(options).repos.languages user, repo, params
59
60
  end
60
61
  end
61
62
 
62
63
  def tags(user, repo, params, options)
63
- output options[:format], options[:quiet] do
64
+ output options do
64
65
  github_api.repos.tags user, repo, params
65
66
  end
66
67
  end
67
68
 
68
69
  def teams(user, repo, params, options)
69
- output options[:format], options[:quiet] do
70
+ output options do
70
71
  github_api(options).repos.teams user, repo, params
71
72
  end
72
73
  end
@@ -5,27 +5,27 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def issue(owner, repo, keyword, params, format)
9
- output format do
10
- github_api.search.issues params.update(:owner => owner, :repo => repo, :keyword => keyword)
8
+ def issue(params, options)
9
+ output options do
10
+ github_api(options).search.issues params
11
11
  end
12
12
  end
13
13
 
14
- def repo(params, format)
15
- output format do
16
- github_api.search.repos params
14
+ def repo(params, options)
15
+ output options do
16
+ github_api(options).search.repos params
17
17
  end
18
18
  end
19
19
 
20
- def user(params, format)
21
- output format do
22
- github_api.search.users params
20
+ def user(params, options)
21
+ output options do
22
+ github_api(options).search.users params
23
23
  end
24
24
  end
25
25
 
26
- def email(params, format)
27
- output format do
28
- github_api.search.email params
26
+ def email(params, options)
27
+ output options do
28
+ github_api(options).search.email params
29
29
  end
30
30
  end
31
31
 
@@ -5,33 +5,33 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def list(user, repo, params, format)
9
- output format do
10
- github_api.activity.starring.list user, repo, params
8
+ def list(user, repo, params, options)
9
+ output options do
10
+ github_api(options).activity.starring.list user, repo, params
11
11
  end
12
12
  end
13
13
 
14
- def starred(params, format)
15
- output format do
16
- github_api.activity.starring.starred params
14
+ def starred(params, options)
15
+ output options do
16
+ github_api(options).activity.starring.starred params
17
17
  end
18
18
  end
19
19
 
20
- def starring?(user, repo, params, format)
21
- output format do
22
- github_api.activity.starring.starring? user, repo, params
20
+ def starring?(user, repo, params, options)
21
+ output options do
22
+ github_api(options).activity.starring.starring? user, repo, params
23
23
  end
24
24
  end
25
25
 
26
- def star(user, repo, params, format)
27
- output format do
28
- github_api.activity.starring.star user, repo, params
26
+ def star(user, repo, params, options)
27
+ output options do
28
+ github_api(options).activity.starring.star user, repo, params
29
29
  end
30
30
  end
31
31
 
32
- def unstar(user, repo, params, format)
33
- output format do
34
- github_api.activity.starring.unstar user, repo, params
32
+ def unstar(user, repo, params, options)
33
+ output options do
34
+ github_api(options).activity.starring.unstar user, repo, params
35
35
  end
36
36
  end
37
37
  end
@@ -5,15 +5,15 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def all(user, repo, sha, params, format)
9
- output format do
10
- github_api.repos.statuses.list user, repo, sha, params
8
+ def all(user, repo, sha, params, options)
9
+ output options do
10
+ github_api(options).repos.statuses.list user, repo, sha, params
11
11
  end
12
12
  end
13
13
 
14
- def create(user, repo, sha, params, format)
15
- output format do
16
- github_api.repos.statuses.create user, repo, sha, params
14
+ def create(user, repo, sha, params, options)
15
+ output options do
16
+ github_api(options).repos.statuses.create user, repo, sha, params
17
17
  end
18
18
  end
19
19
  end
@@ -5,15 +5,15 @@ module GithubCLI
5
5
 
6
6
  class << self
7
7
 
8
- def get(user, repo, sha, params, format)
9
- output format do
10
- github_api.git_data.tags.get user, repo, sha, params
8
+ def get(user, repo, sha, params, options)
9
+ output options do
10
+ github_api(options).git_data.tags.get user, repo, sha, params
11
11
  end
12
12
  end
13
13
 
14
- def create(user, repo, params, format)
15
- output format do
16
- github_api.git_data.tags.create user, repo, params
14
+ def create(user, repo, params, options)
15
+ output options do
16
+ github_api(options).git_data.tags.create user, repo, params
17
17
  end
18
18
  end
19
19
  end