github_workflow 0.3.5 → 0.3.6

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: 6bcca8d3fca22bc0cf07160f662201e0908833c9070e2cb2b97403bf82d2419e
4
- data.tar.gz: f0b4be844e856e5548ecbafd9b8a2dff22c3f70670ada6d3528575bf61379d10
3
+ metadata.gz: a0a60797cbf2bf6f2cebff8d0e30c2e58a02d83883fdd2d7dd66bba5db3f8431
4
+ data.tar.gz: 8117d5c0bd7e18db1e2db9c6c255babc07f3d49885a175e358196a036e79b46e
5
5
  SHA512:
6
- metadata.gz: 5094dc1f9323c9b29d901b01929d132a83fc948bfdca53d3acdb367afdc3a7c4a965227e45a4ae52f36a2291defde01be718a96815bc99ef42f54351146f12c5
7
- data.tar.gz: d90d5ff5f4cc9617712186a8f07fb65f62b9c0bdb1e270809fbd47d429e5c075497189d2c113513791aadcca8e85613d273fa55cd16bb91ce4b072023ef068d1
6
+ metadata.gz: bbe5a3c9a0f19b9c09dbc0a74363ab93cb99405700d8497b0fc5f1d9b95cea76f2915afaf2acba3ee9b98a14369c7afd02c97c0c435e932c007557147ce482f3
7
+ data.tar.gz: ed22679d1d03035b21855408e8540d6e242519e275a896ce00f7bf267ce57bfffa2eff9f84377a5a3b77eee866c1f053b8642bcdd779c7f0610edb8e3805ddc9
@@ -207,6 +207,9 @@ module GithubWorkflow
207
207
  response = JSON.parse(github_client.post("repos/#{user_and_repo}/issues", issue_params.to_json).body)
208
208
 
209
209
  @issue_id = response["number"]
210
+
211
+ github_client.post("/repos/#{user_and_repo}/issues/#{@issue_id}/comments", { body: trello_card.short_url }.to_json)
212
+ trello_card.add_attachment response["html_url"]
210
213
  end
211
214
 
212
215
  def issue_body_from_trello_card
@@ -251,7 +254,7 @@ module GithubWorkflow
251
254
  Trello::Board.find(project_config["trello_board_id"])
252
255
  end
253
256
 
254
- @trello_card = trello_board.cards.detect { |card| card.short_id == options["card_number"].to_i }
257
+ @trello_card = trello_board.find_card(options["card_number"].to_i)
255
258
  end
256
259
 
257
260
  def trello_card
@@ -1,3 +1,3 @@
1
1
  module GithubWorkflow
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Liscio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor