github_workflow 0.2.2 → 0.2.3

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: 307771fd0758e0b0292a89dc57daa128566fc32dbdd20efad4bb5a9b7a852b61
4
- data.tar.gz: c8d10657e90c9a8deb360bf0e3c5140d95480899390241475d6a325783164085
3
+ metadata.gz: 35c87a2d10f0a46a35f242c7c722c1f30e850e191ed0f3b69b111956d12085ca
4
+ data.tar.gz: 891fdec40904b88c568e43b5af9d93a4ec9abd631020287699980662a1355b65
5
5
  SHA512:
6
- metadata.gz: 2eb9b2a7c39fa17f8a8385040898f344250e6713e283fb04cd644df82375bde3f2bab8ee0c713c9be54c62aaa5fe7787886558c60727a445a96b23ed07ec7704
7
- data.tar.gz: 7cc78a223f6c19aff626724cb35cec95237525a4fc98e7e9086a7c02ce380639dcb71a4dcb59d3cfcd2110736338245b48b91738924c9fa1663cbf78d7199a38
6
+ metadata.gz: 68f4d4f057682d001b3d294b7fc8a944cc72e460d5bd2c67255a3e9fcb7ba456f075698ad1e0027a0c88a2b7e9b6d1714a887c552f866d6ed6141da2d6c1385f
7
+ data.tar.gz: d29fddd4f15cd1a192cd2d9f183594c3e9c87697e109f4b0d5e39814da7b8b60bacfd2e3ea6aef73cce928bbd9a91a099411349ba00a962f144faaf85eebaf8b
@@ -191,13 +191,15 @@ module GithubWorkflow
191
191
  end
192
192
 
193
193
  def issue_body_from_trello_card
194
- deploy_note = trello_card.custom_field_items.detect { |cfi| cfi.custom_field.name == "Deploy Note" }.value["text"]
194
+ [trello_card.desc, trello_deploy_note].compact.join("\n\n")
195
+ end
195
196
 
196
- body = <<~BODY
197
- #{trello_card.desc}
197
+ def trello_deploy_note
198
+ custom_field = trello_card.custom_field_items.detect { |cfi| cfi.custom_field.name == "Deploy Note" }
198
199
 
199
- **Deploy Note:** #{deploy_note}
200
- BODY
200
+ if custom_field.present?
201
+ "**Deploy Note:** #{custom_field.value['text']}"
202
+ end
201
203
  end
202
204
 
203
205
  def current_github_username
@@ -223,6 +225,8 @@ module GithubWorkflow
223
225
  priority_titleized = priority.option_value["text"]
224
226
  labels << "Priority: #{priority_titleized}"
225
227
  end
228
+
229
+ labels.compact
226
230
  end
227
231
 
228
232
  def set_trello_card
@@ -1,3 +1,3 @@
1
1
  module GithubWorkflow
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
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.2
4
+ version: 0.2.3
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-15 00:00:00.000000000 Z
11
+ date: 2019-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor