github_workflow 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35c87a2d10f0a46a35f242c7c722c1f30e850e191ed0f3b69b111956d12085ca
4
- data.tar.gz: 891fdec40904b88c568e43b5af9d93a4ec9abd631020287699980662a1355b65
3
+ metadata.gz: 03c43f358a8c74c8327e181f1956672b811bfcb923862d5350011c5fabcbf1f3
4
+ data.tar.gz: cd35d8882cff58eaabbabc2882d41f4d6791b54e473ea81591c2fabfe43aee50
5
5
  SHA512:
6
- metadata.gz: 68f4d4f057682d001b3d294b7fc8a944cc72e460d5bd2c67255a3e9fcb7ba456f075698ad1e0027a0c88a2b7e9b6d1714a887c552f866d6ed6141da2d6c1385f
7
- data.tar.gz: d29fddd4f15cd1a192cd2d9f183594c3e9c87697e109f4b0d5e39814da7b8b60bacfd2e3ea6aef73cce928bbd9a91a099411349ba00a962f144faaf85eebaf8b
6
+ metadata.gz: 9d19bf2e55cfb19b25962839f721bbd7c0a6e551b0b7df02713a2d213550ba17b5beea445a60b00d30b4812ce26acbce2f9b5c2679a3b12c40eda36bfbd15726
7
+ data.tar.gz: 257e821d6816f3ae5b099437a5bb06e2871f420e5948aa8f97baa4b4cddb316749c8fcee09dfb293421e4e8d412b41275639a7d02e24eacf27e79095cc344c11
@@ -191,7 +191,7 @@ module GithubWorkflow
191
191
  end
192
192
 
193
193
  def issue_body_from_trello_card
194
- [trello_card.desc, trello_deploy_note].compact.join("\n\n")
194
+ [trello_card.desc, trello_deploy_note, trello_product_review_type].compact.join("\n\n")
195
195
  end
196
196
 
197
197
  def trello_deploy_note
@@ -202,6 +202,14 @@ module GithubWorkflow
202
202
  end
203
203
  end
204
204
 
205
+ def trello_product_review_type
206
+ custom_field = trello_card.custom_field_items.detect { |cfi| cfi.custom_field.name == "Product Review" }
207
+
208
+ if custom_field.present?
209
+ "**Product Review:** #{custom_field.option_value['text']}"
210
+ end
211
+ end
212
+
205
213
  def current_github_username
206
214
  JSON.parse(github_client.get("user?access_token=#{oauth_token}").body)["login"]
207
215
  end
@@ -238,6 +246,7 @@ module GithubWorkflow
238
246
  def trello_card
239
247
  @trello_card
240
248
  end
249
+
241
250
  def ensure_github_config_present
242
251
  unless project_config && project_config["oauth_token"] && project_config["user_and_repo"]
243
252
  failure('Please add `.github` file containing `{ "oauth_token": "TOKEN", "user_and_repo": "user/repo" }`')
@@ -1,3 +1,3 @@
1
1
  module GithubWorkflow
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Liscio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-18 00:00:00.000000000 Z
11
+ date: 2019-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor