fastlane-plugin-jira_update 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da577995c4da9852d73ba8ba89cf275dd4cddcd6f94d6879711faae881cb2a87
|
4
|
+
data.tar.gz: b0d3125a2465475f3b3e6d751efc830641938f5856d448a3231f3fdd278c7012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad93ed44a9dbba65f0ba527145112c76d48031b94d52c919580826a0cef73379f565838c3a80a71d4840ae565a255e61670284a09a685e5bec61400b14b0f263
|
7
|
+
data.tar.gz: b5550f9f8300ce4b852335042098fd93d19d83e60697393ad7826fabc32a373e54d48188aa839594ea70a525e999b75953e99b4ce8c9ff5ec79ed71c472e3b79
|
data/README.md
CHANGED
@@ -12,8 +12,11 @@ fastlane add_plugin jira_update
|
|
12
12
|
|
13
13
|
## About jira_update
|
14
14
|
|
15
|
-
|
16
|
-
|
15
|
+
Plugin provided multiple actions to update JIRA
|
16
|
+
- get ticket information 'jira_get_ticket'
|
17
|
+
- move tickets to a specific status 'jira_move_tickets'
|
18
|
+
- add/delete/replace comment to a ticket 'jira_update_comment'
|
19
|
+
- generate QR code ascii art and image link 'jira_update_qr_code'
|
17
20
|
|
18
21
|
## Example
|
19
22
|
|
@@ -0,0 +1,92 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
|
4
|
+
module SharedValues
|
5
|
+
QR_CODE_ORIGINAL_TEXT = :QR_CODE_ORIGINAL_TEXT
|
6
|
+
QR_CODE_ASCII_ART = :QR_CODE_ASCII_ART
|
7
|
+
QR_CODE_IMAGE_LINK = :QR_CODE_IMAGE_LINK
|
8
|
+
end
|
9
|
+
|
10
|
+
class AnsiQrCodeAction < Action
|
11
|
+
def self.run(params)
|
12
|
+
Actions.verify_gem!('rqrcode')
|
13
|
+
require 'rqrcode'
|
14
|
+
text = params[:text]
|
15
|
+
qrcode = RQRCode::QRCode.new(text)
|
16
|
+
ascii_art = qrcode.as_ansi(
|
17
|
+
light: "\033[47m", dark: "\033[40m",
|
18
|
+
fill_character: " ",
|
19
|
+
quiet_zone_size: 4
|
20
|
+
)
|
21
|
+
UI.message("QR code:\n#{ascii_art}")
|
22
|
+
|
23
|
+
urlencoded_text = URI.encode_www_form_component(text)
|
24
|
+
link = "https://kissapi-qrcode.vercel.app/api/qrcode?chl=#{urlencoded_text}"
|
25
|
+
UI.message("QR code link: #{link}")
|
26
|
+
|
27
|
+
Actions.lane_context[SharedValues::QR_CODE_ORIGINAL_TEXT] = text
|
28
|
+
Actions.lane_context[SharedValues::QR_CODE_ASCII_ART] = ascii_art
|
29
|
+
Actions.lane_context[SharedValues::QR_CODE_IMAGE_LINK] = link
|
30
|
+
|
31
|
+
return link
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.output
|
36
|
+
[
|
37
|
+
['QR_CODE_ORIGINAL_TEXT', 'Original text for QR code'],
|
38
|
+
['QR_CODE_ASCII_ART', 'QR code ascii art'],
|
39
|
+
['QR_CODE_IMAGE_LINK', 'URL to QR code image']
|
40
|
+
]
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.description
|
44
|
+
"Generate QR code"
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.details
|
48
|
+
"Generate QR code"
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.return_value
|
52
|
+
"QR code link"
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.return_type
|
56
|
+
:string
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.available_options
|
60
|
+
[
|
61
|
+
FastlaneCore::ConfigItem.new(key: :text,
|
62
|
+
description: "Text for QR code",
|
63
|
+
env_name: "FL_QR_TEXT",
|
64
|
+
type: String,
|
65
|
+
default_value: "Hello, world!")
|
66
|
+
]
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.authors
|
70
|
+
["Flop Butylkin"]
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.is_supported?(platform)
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.example_code
|
78
|
+
[
|
79
|
+
'
|
80
|
+
ansi_qr_code(
|
81
|
+
text: "https://www.google.com"
|
82
|
+
)
|
83
|
+
'
|
84
|
+
]
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.category
|
88
|
+
:misc
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-jira_update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flop Butylkin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jira-ruby
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.3.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rqrcode
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.2.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: pry
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,12 +145,13 @@ files:
|
|
131
145
|
- LICENSE
|
132
146
|
- README.md
|
133
147
|
- lib/fastlane/plugin/jira_update.rb
|
148
|
+
- lib/fastlane/plugin/jira_update/actions/ansi_qr_code_action.rb
|
134
149
|
- lib/fastlane/plugin/jira_update/actions/jira_comment_update_action.rb
|
135
150
|
- lib/fastlane/plugin/jira_update/actions/jira_get_ticket.rb
|
136
151
|
- lib/fastlane/plugin/jira_update/actions/jira_move_tickets_action.rb
|
137
152
|
- lib/fastlane/plugin/jira_update/helper/jira_move_tickets_helper.rb
|
138
153
|
- lib/fastlane/plugin/jira_update/version.rb
|
139
|
-
homepage: https://github.com/
|
154
|
+
homepage: https://github.com/Fl0p/fastlane-plugin-jira_update
|
140
155
|
licenses:
|
141
156
|
- MIT
|
142
157
|
metadata: {}
|
@@ -158,5 +173,5 @@ requirements: []
|
|
158
173
|
rubygems_version: 3.3.3
|
159
174
|
signing_key:
|
160
175
|
specification_version: 4
|
161
|
-
summary: JIRA update actions
|
176
|
+
summary: JIRA update actions (comment, move tickets, get ticket info)
|
162
177
|
test_files: []
|