create_ticket 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/create_ticket +1 -1
- data/lib/create_ticket.rb +2 -2
- data/lib/create_ticket/cli.rb +3 -1
- data/lib/create_ticket/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4603d519ab737c1403dfb2398ed2d0fc63603817
|
4
|
+
data.tar.gz: 73690dfb7101b39200b40d1f7c32334075307f7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 458f88080e178570ad8a86244158c6d6ee10c4d7c5ab4220449e085bb59434cf61ee92960fde28d3eae1c91a731a68d387f26686e22200d08c22677c918b7d60
|
7
|
+
data.tar.gz: f45a547fc2d3ca8d49afba27ed4b069aa289f2c5812632711d7d7d30c300a6aa3eb40ab1eec15a4fe6aaf8b92038442bbfe5dcb5138071282e6d8caa0d0b5324
|
data/exe/create_ticket
CHANGED
data/lib/create_ticket.rb
CHANGED
@@ -7,7 +7,7 @@ require 'json'
|
|
7
7
|
require 'erb'
|
8
8
|
|
9
9
|
class CreateTicket
|
10
|
-
attr_reader
|
10
|
+
attr_reader :jira_url, :project, :jira_token, :template_filename, :assignee, :issue_type
|
11
11
|
|
12
12
|
def initialize(conf)
|
13
13
|
@jira_url = conf.fetch(:jira_url)
|
@@ -30,7 +30,7 @@ class CreateTicket
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
def create_ticket
|
33
|
+
def create_ticket!
|
34
34
|
response = jira_request.post do |req|
|
35
35
|
req.url '/rest/api/2/issue'
|
36
36
|
req.body = jira_ticket_json
|
data/lib/create_ticket/cli.rb
CHANGED