github_issues_cli 0.2.5 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/github_issues_cli.rb +1 -0
- data/lib/github_issues_cli/command/checkout.rb +1 -1
- data/lib/github_issues_cli/command/comment.rb +14 -0
- data/lib/github_issues_cli/command/list.rb +1 -1
- data/lib/github_issues_cli/command/open.rb +1 -1
- data/lib/github_issues_cli/command_manager.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b51eb8d1fabce7b140c6e5b08eea7af3daba411
|
4
|
+
data.tar.gz: ece7df9967574a070b6f701191e4497d78cfb6d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dea342169c875b949cc84acea33ec003c68a2d5b7fdcafc3e7dd1bbff99daa41731cfbf136b8b677840e9d0dda2409cbd4b782f6fe900c8f8326dfd1aba6d693
|
7
|
+
data.tar.gz: fe70cb98ffde09912bfca9d80a06eaa08a68422f14c9ae75fc575b2da2d470dd6b0de8cbd53dc475245b416de3716bf413988734e18887c313a54e9171986b07
|
data/lib/github_issues_cli.rb
CHANGED
@@ -11,6 +11,7 @@ module GithubIssuesCli
|
|
11
11
|
require 'github_issues_cli/command/browse'
|
12
12
|
require 'github_issues_cli/command/show'
|
13
13
|
require 'github_issues_cli/command/open'
|
14
|
+
require 'github_issues_cli/command/comment'
|
14
15
|
require 'github_issues_cli/command/push'
|
15
16
|
require 'github_issues_cli/command/pull_request'
|
16
17
|
require 'github_issues_cli/command_manager'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module GithubIssuesCli
|
2
2
|
class Command::Checkout < Command
|
3
3
|
|
4
|
-
parameter
|
4
|
+
parameter 'issue-number', 'number of issue to be worked on', :attribute_name => :issue_number
|
5
5
|
|
6
6
|
def execute
|
7
7
|
branch_name = 'issue-' + issue_number
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module GithubIssuesCli
|
2
|
+
class Command::Comment < Command
|
3
|
+
|
4
|
+
parameter 'body', 'comment body', :attribute_name => :body
|
5
|
+
|
6
|
+
def execute
|
7
|
+
github_repo = get_github_repo
|
8
|
+
issue_number = get_issue_number
|
9
|
+
Github::Issues.new.comments.create :user => github_repo[:user], :repo => github_repo[:name], :issue_id => issue_number, :body => body
|
10
|
+
print on_green ' '
|
11
|
+
puts ' Comment added'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -2,10 +2,11 @@ module GithubIssuesCli
|
|
2
2
|
class CommandManager < Clamp::Command
|
3
3
|
|
4
4
|
subcommand 'list', 'Lists issues', Command::List
|
5
|
-
subcommand 'checkout', 'Checkouts
|
5
|
+
subcommand 'checkout', 'Checkouts specific issue', Command::Checkout
|
6
6
|
subcommand 'show', 'Show current issue details', Command::Show
|
7
7
|
subcommand 'browse', 'Navigate to issue HTML url', Command::Browse
|
8
8
|
subcommand 'open', 'Open new issue', Command::Open
|
9
|
+
subcommand 'comment', 'Comment on current issue', Command::Comment
|
9
10
|
subcommand 'push', 'Push current state to repo', Command::Push
|
10
11
|
subcommand 'pull-request', 'Creates pull-request out of current issue', Command::Pull_request
|
11
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_issues_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Durka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- lib/github_issues_cli/command/browse.rb
|
77
77
|
- lib/github_issues_cli/command/checkout.rb
|
78
|
+
- lib/github_issues_cli/command/comment.rb
|
78
79
|
- lib/github_issues_cli/command/list.rb
|
79
80
|
- lib/github_issues_cli/command/open.rb
|
80
81
|
- lib/github_issues_cli/command/pull_request.rb
|