fastlane-plugin-jira_link 0.1.0 → 0.1.1

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: 685d14b73f10f82f768a08c42fb47e5a16bf89af9002e19f26ffcaebf00b7515
4
- data.tar.gz: e75de7ddc22ef0938efc7a8815a0c8973ae35345c7e49c3e2dc2d09d10a80607
3
+ metadata.gz: 730607029bd2e5830ff20df10f26af1acc57917ff8fc4eadd26ced4da80ebad9
4
+ data.tar.gz: 0fe57703238728f630432c9667b20d84fd15c9848a5945ddd9bfc082ffeb0599
5
5
  SHA512:
6
- metadata.gz: bc212064e25aa4f281f662579ff0c0f4f02cd86e5e47fb158ff8f51c61be83cfa3fdb6b68b9d3d130050897ac45fcd841fc95302c470f15af73f715b823212c0
7
- data.tar.gz: 977ffa5c0561ed9747171bf2808103d9d83e8a806f32b28e4c4f50e85198c9e7850177c6acb7cc7bf37faaaec81d577bae7c942d4bf79df6dac5f633c3068832
6
+ metadata.gz: 02f4c11a4386c43d8d418aa5162de2db1d8655345832093123ee493be99e9dd0aae5af713eb1eac83c9731c0fb89ff1745432386028a841431736394b5656ca4
7
+ data.tar.gz: 401a4181d2f974b5821307997569976fc9925c2a9edad68ccd7f01ca9bdfe683f2b7bc5aff9306dae3f0291d8c36a83844eb93e291db55c3be7e0b5e6e59dd9a
@@ -11,10 +11,10 @@ module Fastlane
11
11
  context_path = params[:context_path]
12
12
  username = params[:username]
13
13
  password = params[:password]
14
- inwardIssue = params[:inwardIssue]
15
- outwardIssue = params[:outwardIssue]
14
+ inward_issue = params[:inward_issue]
15
+ outward_issue = params[:outward_issue]
16
16
  link_type = params[:link_type]
17
-
17
+
18
18
  options = {
19
19
  site: site,
20
20
  context_path: context_path,
@@ -22,15 +22,15 @@ module Fastlane
22
22
  username: username,
23
23
  password: password
24
24
  }
25
-
25
+
26
26
  client = JIRA::Client.new(options)
27
27
  link = client.Issuelink.build
28
28
  link.save(
29
- {
30
- :type => {:name => link_type},
31
- :inwardIssue => {:key => inwardIssue},
32
- :outwardIssue => {:key => outwardIssue}
33
- }
29
+ {
30
+ type: { name: link_type },
31
+ inwardIssue: { key: inward_issue },
32
+ outwardIssue: { key: outward_issue }
33
+ }
34
34
  )
35
35
  end
36
36
 
@@ -50,82 +50,82 @@ module Fastlane
50
50
  end
51
51
 
52
52
  def self.available_options
53
- [
54
- FastlaneCore::ConfigItem.new(key: :url,
55
- env_name: "FL_JIRA_SITE",
56
- description: "URL for Jira instance",
57
- verify_block: proc do |value|
58
- UI.user_error!("No url for Jira given, pass using `url: 'url'`") if value.to_s.length == 0
59
- end),
60
- FastlaneCore::ConfigItem.new(key: :context_path,
61
- env_name: "FL_JIRA_CONTEXT_PATH",
62
- description: "Appends to the url (ex: \"/jira\")",
63
- optional: true,
64
- default_value: ""),
65
- FastlaneCore::ConfigItem.new(key: :username,
66
- env_name: "FL_JIRA_USERNAME",
67
- description: "Username for JIRA instance",
68
- verify_block: proc do |value|
69
- UI.user_error!("No username") if value.to_s.length == 0
70
- end),
71
- FastlaneCore::ConfigItem.new(key: :password,
72
- env_name: "FL_JIRA_PASSWORD",
73
- description: "Password for Jira",
74
- sensitive: true,
75
- verify_block: proc do |value|
76
- UI.user_error!("No password") if value.to_s.length == 0
77
- end),
78
- FastlaneCore::ConfigItem.new(key: :inwardIssue,
79
- env_name: "JIRA_INWARD_ISSUE",
80
- description: "Inward Issue for Jira",
81
- sensitive: true,
82
- verify_block: proc do |value|
83
- UI.user_error!("No inward issue") if value.to_s.length == 0
84
- end),
85
- FastlaneCore::ConfigItem.new(key: :outwardIssue,
86
- env_name: "JIRA_OUTWARD_ISSUE",
87
- description: "Outward Issue for Jira",
88
- sensitive: true,
89
- verify_block: proc do |value|
90
- UI.user_error!("No outward issue") if value.to_s.length == 0
91
- end),
92
- FastlaneCore::ConfigItem.new(key: :link_type,
93
- env_name: "JIRA_LINK_TYPE",
94
- description: "Issue Link Type for Jira",
95
- sensitive: true,
96
- verify_block: proc do |value|
97
- UI.user_error!("No link type") if value.to_s.length == 0
98
- end),
99
-
100
- ]
53
+ [
54
+ FastlaneCore::ConfigItem.new(key: :url,
55
+ env_name: "FL_JIRA_SITE",
56
+ description: "URL for Jira instance",
57
+ verify_block: proc do |value|
58
+ UI.user_error!("No url for Jira given, pass using `url: 'url'`") if value.to_s.length == 0
59
+ end),
60
+ FastlaneCore::ConfigItem.new(key: :context_path,
61
+ env_name: "FL_JIRA_CONTEXT_PATH",
62
+ description: "Appends to the url (ex: \"/jira\")",
63
+ optional: true,
64
+ default_value: ""),
65
+ FastlaneCore::ConfigItem.new(key: :username,
66
+ env_name: "FL_JIRA_USERNAME",
67
+ description: "Username for JIRA instance",
68
+ verify_block: proc do |value|
69
+ UI.user_error!("No username") if value.to_s.length == 0
70
+ end),
71
+ FastlaneCore::ConfigItem.new(key: :password,
72
+ env_name: "FL_JIRA_PASSWORD",
73
+ description: "Password for Jira",
74
+ sensitive: true,
75
+ verify_block: proc do |value|
76
+ UI.user_error!("No password") if value.to_s.length == 0
77
+ end),
78
+ FastlaneCore::ConfigItem.new(key: :inward_issue,
79
+ env_name: "JIRA_INWARD_ISSUE",
80
+ description: "Inward Issue for Jira",
81
+ sensitive: true,
82
+ verify_block: proc do |value|
83
+ UI.user_error!("No inward issue") if value.to_s.length == 0
84
+ end),
85
+ FastlaneCore::ConfigItem.new(key: :outward_issue,
86
+ env_name: "JIRA_OUTWARD_ISSUE",
87
+ description: "Outward Issue for Jira",
88
+ sensitive: true,
89
+ verify_block: proc do |value|
90
+ UI.user_error!("No outward issue") if value.to_s.length == 0
91
+ end),
92
+ FastlaneCore::ConfigItem.new(key: :link_type,
93
+ env_name: "JIRA_LINK_TYPE",
94
+ description: "Issue Link Type for Jira",
95
+ sensitive: true,
96
+ verify_block: proc do |value|
97
+ UI.user_error!("No link type") if value.to_s.length == 0
98
+ end)
99
+
100
+ ]
101
101
  end
102
102
 
103
103
  def self.is_supported?(platform)
104
104
  true
105
105
  end
106
-
106
+
107
107
  def self.example_code
108
- [
109
- 'jira(
110
- url: "https://bugs.yourdomain.com",
111
- username: "Your username",
112
- password: "Your password",
113
- inwardIssue: "Ticket ID, i.e. IOS-1",
114
- outwardIssue: "Ticket ID, i.e. IOS-2"
115
- link_type: "blocks"
116
- )',
117
- 'jira(
118
- url: "https://yourserverdomain.com",
119
- context_path: "/jira",
120
- username: "Your username",
121
- password: "Your password",
122
- inwardIssue: "Ticket ID, i.e. IOS-1",
123
- outwardIssue: "Ticket ID, i.e. IOS-2"
124
- link_type: "blocks"
125
- )'
126
- ]
108
+ [
109
+ 'jira(
110
+ url: "https://bugs.yourdomain.com",
111
+ username: "Your username",
112
+ password: "Your password",
113
+ inwardIssue: "Ticket ID, i.e. IOS-1",
114
+ outwardIssue: "Ticket ID, i.e. IOS-2"
115
+ link_type: "blocks"
116
+ )',
117
+ 'jira(
118
+ url: "https://yourserverdomain.com",
119
+ context_path: "/jira",
120
+ username: "Your username",
121
+ password: "Your password",
122
+ inwardIssue: "Ticket ID, i.e. IOS-1",
123
+ outwardIssue: "Ticket ID, i.e. IOS-2"
124
+ link_type: "blocks"
125
+ )'
126
+ ]
127
127
  end
128
-
128
+
129
129
  def self.category
130
130
  :misc
131
131
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module JiraLink
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-jira_link
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-09 00:00:00.000000000 Z
11
+ date: 2021-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry