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 +4 -4
- data/lib/github_workflow/cli.rb +9 -5
- data/lib/github_workflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35c87a2d10f0a46a35f242c7c722c1f30e850e191ed0f3b69b111956d12085ca
|
4
|
+
data.tar.gz: 891fdec40904b88c568e43b5af9d93a4ec9abd631020287699980662a1355b65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68f4d4f057682d001b3d294b7fc8a944cc72e460d5bd2c67255a3e9fcb7ba456f075698ad1e0027a0c88a2b7e9b6d1714a887c552f866d6ed6141da2d6c1385f
|
7
|
+
data.tar.gz: d29fddd4f15cd1a192cd2d9f183594c3e9c87697e109f4b0d5e39814da7b8b60bacfd2e3ea6aef73cce928bbd9a91a099411349ba00a962f144faaf85eebaf8b
|
data/lib/github_workflow/cli.rb
CHANGED
@@ -191,13 +191,15 @@ module GithubWorkflow
|
|
191
191
|
end
|
192
192
|
|
193
193
|
def issue_body_from_trello_card
|
194
|
-
|
194
|
+
[trello_card.desc, trello_deploy_note].compact.join("\n\n")
|
195
|
+
end
|
195
196
|
|
196
|
-
|
197
|
-
|
197
|
+
def trello_deploy_note
|
198
|
+
custom_field = trello_card.custom_field_items.detect { |cfi| cfi.custom_field.name == "Deploy Note" }
|
198
199
|
|
199
|
-
|
200
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2019-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|