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 +4 -4
- data/lib/github_workflow/cli.rb +4 -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: a0a60797cbf2bf6f2cebff8d0e30c2e58a02d83883fdd2d7dd66bba5db3f8431
|
4
|
+
data.tar.gz: 8117d5c0bd7e18db1e2db9c6c255babc07f3d49885a175e358196a036e79b46e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbe5a3c9a0f19b9c09dbc0a74363ab93cb99405700d8497b0fc5f1d9b95cea76f2915afaf2acba3ee9b98a14369c7afd02c97c0c435e932c007557147ce482f3
|
7
|
+
data.tar.gz: ed22679d1d03035b21855408e8540d6e242519e275a896ce00f7bf267ce57bfffa2eff9f84377a5a3b77eee866c1f053b8642bcdd779c7f0610edb8e3805ddc9
|
data/lib/github_workflow/cli.rb
CHANGED
@@ -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.
|
257
|
+
@trello_card = trello_board.find_card(options["card_number"].to_i)
|
255
258
|
end
|
256
259
|
|
257
260
|
def 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.3.
|
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-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|