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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af036c93ee645a6ae490526e136cdd43aab2d667
4
- data.tar.gz: d7df2da6c9bd3d1fe153bf404c4acb969fa9cc05
3
+ metadata.gz: 7b51eb8d1fabce7b140c6e5b08eea7af3daba411
4
+ data.tar.gz: ece7df9967574a070b6f701191e4497d78cfb6d4
5
5
  SHA512:
6
- metadata.gz: 3b8e6db06b31ac0554471810973ae913061d2561b7204dc519b304e0fdf0c624ca0793a3abdbc6f9c5245e90c1a0bd3a86ee22beb0c106f5d01fa524f2554bdc
7
- data.tar.gz: 5d674193cfb260f523b31b532e96b541aac71eaa5debe7b56307b6d21e0bfd74c80a2b51923f2c5970a072022cbe0b0326b35ca7c30f555704e1d8ab7994c4fa
6
+ metadata.gz: dea342169c875b949cc84acea33ec003c68a2d5b7fdcafc3e7dd1bbff99daa41731cfbf136b8b677840e9d0dda2409cbd4b782f6fe900c8f8326dfd1aba6d693
7
+ data.tar.gz: fe70cb98ffde09912bfca9d80a06eaa08a68422f14c9ae75fc575b2da2d470dd6b0de8cbd53dc475245b416de3716bf413988734e18887c313a54e9171986b07
@@ -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 "issue-number", "number of issue to be worked on", :attribute_name => :issue_number
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
@@ -1,7 +1,7 @@
1
1
  module GithubIssuesCli
2
2
  class Command::List < Command
3
3
 
4
- option "--mine", :flag, "show only mine issues"
4
+ option '--mine', :flag, 'show only mine issues'
5
5
 
6
6
  def execute
7
7
  github_repo = get_github_repo
@@ -1,7 +1,7 @@
1
1
  module GithubIssuesCli
2
2
  class Command::Open < Command
3
3
 
4
- parameter "summary", "summary of the paramter", :attribute_name => :summary
4
+ parameter 'summary', 'issue summary', :attribute_name => :summary
5
5
 
6
6
  def execute
7
7
  github_repo = get_github_repo
@@ -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 specifc issue', Command::Checkout
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.5
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-19 00:00:00.000000000 Z
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