fastlane-plugin-asana_task 0.1.1 → 0.1.2

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: 36871059466a904a661d10cde5b68677bc038f94947b9b211bc5cd41858364a0
4
- data.tar.gz: 91fb682545b2b626c4fabac86c9de246b42ec779c0c07d42dffe283b6ad0b181
3
+ metadata.gz: 299eb584a55f851bbaa2f313d82e19375b1e4fba2652df402ed7a1be6a5cf8fa
4
+ data.tar.gz: 2076873a6c60be5160bfecb284a5e65f516a0036ce8b944058b32906ef1c30d4
5
5
  SHA512:
6
- metadata.gz: f420ab50c7e3f0cdae335736484f026bfb28c85d18df859f87160254737d3115fe9d32d66663b10f9472a896227b4ef384aa236ab28f5e7dd5afc590f7049498
7
- data.tar.gz: 50a7542431f0466aec99eb89cdc3b118f3a3e90aaa1cfd68ff4dc27b0d0dbe5cbd534ba2f11e8eb2bc92e27d9d61fb5ce33e7942b7d522380f99464bd86f5764
6
+ metadata.gz: 9ee638c2fe3937b1f954afb0629e9a42047f932aebc5d7d9c7813746f869ef15024eb9f7b1344b94f42332c009ff53bd98a7ea76f74455402d7f9772e883f102
7
+ data.tar.gz: a31eb32b21a8fb629a0126f1ec07c9c1d88aad087b6633a182cf17ed6a4c7b8be6ee590d6f826f3386936931d88c8d5e79eeb2680122b44610b9e5bfe9f88305
@@ -36,6 +36,20 @@ module Fastlane
36
36
  #Send the request
37
37
  response = HTTParty.post(asana_url, :headers => headers, body: message.to_json)
38
38
  UI.message("response : #{response}")
39
+
40
+ sectionId = params[:sectionId]
41
+ if !sectionId.blank?
42
+ asana_section_url = "https://app.asana.com/api/1.0/sections/#{sectionId}/addTask"
43
+
44
+ sectionBody = {
45
+ data: {
46
+ task: response[:data[:gid]]
47
+ }
48
+ }
49
+
50
+ response = HTTParty.post(asana_section_url, :headers => headers, body: sectionBody.to_json)
51
+ UI.message("response : #{response}")
52
+ end
39
53
  end
40
54
 
41
55
  def self.description
@@ -84,6 +98,12 @@ module Fastlane
84
98
  FastlaneCore::ConfigItem.new(key: :projectId,
85
99
  env_name: "PROJECT_ID",
86
100
  description: "project id for task",
101
+ optional: true,
102
+ type: String),
103
+
104
+ FastlaneCore::ConfigItem.new(key: :sectionId,
105
+ env_name: "SECTION_ID",
106
+ description: "section id for task",
87
107
  optional: true,
88
108
  type: String)
89
109
  ]
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AsanaTask
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-asana_task
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - respecu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty