github_workflow 0.2.4 → 0.2.5
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 +1 -24
- data/lib/github_workflow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f210cca3f44897bd54fb6ed988e72f637d3cc85637d0baedb7821564ef2ee4c
|
4
|
+
data.tar.gz: c0f39c4470755c32137953edcff685cc9dd65bcedaa7a5747a4d79b4d72fc064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90ba0abb0418ad2a88e0f134d5a0145c414935c0c757315b0b6ea2e6cc7aad6d8d6ac5f6849126e309deec89f59f811fd2ea8a4295666ee2f425eabd4e34b40b
|
7
|
+
data.tar.gz: 92ca0ca758462f0337c150a368090fb1e150ad446a274f17b1a81e603089c01c92f1dca2b336ee08dcd965edfb842b10d9f9574e5e40b7831d08d2c316cd6692
|
data/lib/github_workflow/cli.rb
CHANGED
@@ -182,7 +182,7 @@ module GithubWorkflow
|
|
182
182
|
title: trello_card.name,
|
183
183
|
body: issue_body_from_trello_card,
|
184
184
|
assignees: [current_github_username],
|
185
|
-
labels:
|
185
|
+
labels: trello_card.labels.map(&:name)
|
186
186
|
}
|
187
187
|
|
188
188
|
response = JSON.parse(github_client.post("repos/#{user_and_repo}/issues?access_token=#{oauth_token}", issue_params.to_json).body)
|
@@ -214,29 +214,6 @@ module GithubWorkflow
|
|
214
214
|
JSON.parse(github_client.get("user?access_token=#{oauth_token}").body)["login"]
|
215
215
|
end
|
216
216
|
|
217
|
-
def issue_labels_from_trello_card
|
218
|
-
labels = trello_card.labels.map(&:name)
|
219
|
-
|
220
|
-
product_review_type = trello_card.custom_field_items.detect do |cfi|
|
221
|
-
cfi.custom_field.name == "Product Review"
|
222
|
-
end
|
223
|
-
|
224
|
-
if product_review_type && ["Review App", "Screenshot"].include?(product_review_type.option_value["text"])
|
225
|
-
labels << "Product Review Required"
|
226
|
-
end
|
227
|
-
|
228
|
-
priority = trello_card.custom_field_items.detect do |cfi|
|
229
|
-
cfi.custom_field.name == "Priority"
|
230
|
-
end
|
231
|
-
|
232
|
-
if priority && priority.option_value["text"].present?
|
233
|
-
priority_titleized = priority.option_value["text"]
|
234
|
-
labels << "Priority: #{priority_titleized}"
|
235
|
-
end
|
236
|
-
|
237
|
-
labels.compact
|
238
|
-
end
|
239
|
-
|
240
217
|
def set_trello_card
|
241
218
|
say_info("Fetching trello card")
|
242
219
|
trello_board = Trello::Board.find(project_config["trello_board_id"])
|