prima-twig 0.0.24 → 0.0.26

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/twig-review +2 -2
  3. data/lib/prima_twig.rb +6 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b59316c981a8b9233508729b4b3b2a8e58e604dd
4
- data.tar.gz: 2148fbd89415411addf7ef513f9dabee78884a81
3
+ metadata.gz: 22def7baa60cffe96202868dc0cd6f97394089c8
4
+ data.tar.gz: 9592ee52637b291237c1c780f3b9338a3abd9448
5
5
  SHA512:
6
- metadata.gz: 0d3308d9ec9ce97cfa893976b8542e20d9f23a29ed8ec5da66fd5ccc5676895c5455eac963b0453f608efe9fea9f45fb85981f52e1cfcaee5f21c16252d83bf3
7
- data.tar.gz: 5d1a64a8025be12ccb3eba25561de2f887ce50d0037046e7f4611c2ef88dcc35ed61b254d96faaa50a2f8bd1106f2feb1dff95f20e46407e551fb373effdda5a
6
+ metadata.gz: 557172d737ec82429fb56d19b0ec5474aaffe69bf16a05f6669d67a6e0ef5aa9929b2d176bcb0d1dd4d394b22bf368bf61231d6e8a4962877e39b768eaf5f7bf
7
+ data.tar.gz: 172189bb4834648eb9f01c52fa8581048d9a994ddc82307e2512d5e138a14a834736a45a5556a2de50ef91cce3f65af125a109f5cc3cee807b49ee5abd0677ff
data/bin/twig-review CHANGED
@@ -61,11 +61,11 @@ class Review
61
61
  puts "Pull request ##{@prima.get_property('pr')}".cyan
62
62
  puts "Issue ##{@prima.get_property('issue')}".cyan if @prima.has_property?('issue')
63
63
 
64
- @prima.update_issue_with_label(@prima.get_property('pr'), Prima::LABEL_REVIEW)
64
+ @prima.put_issue_in_review(@prima.get_property('pr'))
65
65
  puts "La pull request #{ @prima.get_property('pr') } è ora in review".green
66
66
 
67
67
  if @prima.has_property?('issue')
68
- @prima.update_issue_with_label(@prima.get_property('issue'), Prima::LABEL_REVIEW)
68
+ @prima.put_issue_in_review(@prima.get_property('issue'))
69
69
  puts "La issue #{ @prima.get_property('issue') } è ora in review".green
70
70
  end
71
71
 
data/lib/prima_twig.rb CHANGED
@@ -122,6 +122,11 @@ class Prima
122
122
  not labels.find_index{ |l| l.name == label }.nil?
123
123
  end
124
124
 
125
+ def put_issue_in_review(issue)
126
+ update_issue_with_label(issue, Prima::LABEL_REVIEW)
127
+ gh.remove_label repo_name, issue, Prima::LABEL_WIP
128
+ end
129
+
125
130
  def get_property(name)
126
131
  @twig.get_branch_property current_branch_name, name
127
132
  end
@@ -164,4 +169,4 @@ class Prima
164
169
  end
165
170
  out_str
166
171
  end
167
- end
172
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-07-13 00:00:00.000000000 Z
13
+ date: 2015-07-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: twig