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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03c43f358a8c74c8327e181f1956672b811bfcb923862d5350011c5fabcbf1f3
4
- data.tar.gz: cd35d8882cff58eaabbabc2882d41f4d6791b54e473ea81591c2fabfe43aee50
3
+ metadata.gz: 8f210cca3f44897bd54fb6ed988e72f637d3cc85637d0baedb7821564ef2ee4c
4
+ data.tar.gz: c0f39c4470755c32137953edcff685cc9dd65bcedaa7a5747a4d79b4d72fc064
5
5
  SHA512:
6
- metadata.gz: 9d19bf2e55cfb19b25962839f721bbd7c0a6e551b0b7df02713a2d213550ba17b5beea445a60b00d30b4812ce26acbce2f9b5c2679a3b12c40eda36bfbd15726
7
- data.tar.gz: 257e821d6816f3ae5b099437a5bb06e2871f420e5948aa8f97baa4b4cddb316749c8fcee09dfb293421e4e8d412b41275639a7d02e24eacf27e79095cc344c11
6
+ metadata.gz: 90ba0abb0418ad2a88e0f134d5a0145c414935c0c757315b0b6ea2e6cc7aad6d8d6ac5f6849126e309deec89f59f811fd2ea8a4295666ee2f425eabd4e34b40b
7
+ data.tar.gz: 92ca0ca758462f0337c150a368090fb1e150ad446a274f17b1a81e603089c01c92f1dca2b336ee08dcd965edfb842b10d9f9574e5e40b7831d08d2c316cd6692
@@ -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: issue_labels_from_trello_card
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"])
@@ -1,3 +1,3 @@
1
1
  module GithubWorkflow
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Liscio