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 +4 -4
- data/lib/github_workflow/cli.rb +10 -1
- 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: 03c43f358a8c74c8327e181f1956672b811bfcb923862d5350011c5fabcbf1f3
|
4
|
+
data.tar.gz: cd35d8882cff58eaabbabc2882d41f4d6791b54e473ea81591c2fabfe43aee50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d19bf2e55cfb19b25962839f721bbd7c0a6e551b0b7df02713a2d213550ba17b5beea445a60b00d30b4812ce26acbce2f9b5c2679a3b12c40eda36bfbd15726
|
7
|
+
data.tar.gz: 257e821d6816f3ae5b099437a5bb06e2871f420e5948aa8f97baa4b4cddb316749c8fcee09dfb293421e4e8d412b41275639a7d02e24eacf27e79095cc344c11
|
data/lib/github_workflow/cli.rb
CHANGED
@@ -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" }`')
|
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.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-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|