danger-jira_sync 0.0.1 → 0.0.2

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: c360d072f8ddd6e355f8caa61e54c35120dc13755a696c67989dc3e356255be2
4
- data.tar.gz: 7c5d7fc9bf762c0a8c48207e6309602f296fc7fc140b079cf5de17967857c8d0
3
+ metadata.gz: 4f3ee6bfee6912a5de7ce025271cd14e1765e2b4f3af4316f01d231ec9d1b7cf
4
+ data.tar.gz: 074743d2f477706db2d190eb58c19df971ffef7dca84f80a1670d3c5114c768b
5
5
  SHA512:
6
- metadata.gz: df06871336370d27c650c8644cd1c5c37123b59d98c5abc07352a109271731f135e8313e990d4c671dc7252d94cb118e3111a08cb7bbedf0c437f0c2f39c5d01
7
- data.tar.gz: 415ee0b570b8ce7965b3106b2d97af5b48569bb473b32338b3e4c04c64c80b904f6c747a0e1ac5204746a5bb756f218a5ae25639116294f18cd97cd71c578ada
6
+ metadata.gz: 882e5bc747476c1d5dd27c7164bfc2e8d0bac90fa17b4798111fa887f8ccb7cf6dc37d88854a65765861e203702b19b74efb1c96fa3ca8486841a9d811b6662b
7
+ data.tar.gz: f5380dc16854b4883d8cff7d122d86a353ccf6bbb4b92129e35120be2975a4bbc119c8c6e836453a55d8accd63f5190938ece9c75ea058fdb4287a9da924744f
data/.gitignore CHANGED
@@ -3,4 +3,6 @@ pkg
3
3
  .idea/
4
4
  .yardoc
5
5
  coverage/
6
- .env
6
+ .env
7
+ .bundle/
8
+ bundle/
data/README.md CHANGED
@@ -7,11 +7,11 @@ with jira_sync
7
7
 
8
8
  Add `danger-jira_sync` to your Gemfile
9
9
 
10
- gem "danger-jira_sync", git: "https://github.com/roverdotcom/danger-jira_sync"
10
+ gem "danger-jira_sync"
11
11
 
12
12
  Or, without bundler
13
13
 
14
- $ gem install danger-jira_sync -s https://github.com/roverdotcom/danger-jira_sync
14
+ $ gem install danger-jira_sync
15
15
 
16
16
  ## Usage
17
17
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JiraSync
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
@@ -43,6 +43,10 @@ module Danger
43
43
  # @return [JIRA::Client] The underlying jira-ruby JIRA::Client instance
44
44
  #
45
45
  def configure(jira_url:, jira_username:, jira_api_token:)
46
+ warn "danger-jira_sync plugin configuration is missing jira_url" if jira_url.blank?
47
+ warn "danger-jira_sync plugin configuration is missing jira_username" if jira_username.blank?
48
+ warn "danger-jira_sync plugin configuration is missing jira_api_token" if jira_api_token.blank?
49
+
46
50
  @jira_client = JIRA::Client.new(
47
51
  site: jira_url,
48
52
  username: jira_username,
@@ -110,7 +114,7 @@ module Danger
110
114
  labels << issue.project.key
111
115
  labels += issue.components.map(&:name)
112
116
  rescue JIRA::HTTPError => e
113
- warn "Error while retrieving JIRA issue \"#{key}\": #{e.message}"
117
+ warn "#{e.code} Error while retrieving JIRA issue \"#{key}\": #{e.message}"
114
118
  # No reason to continue if Unauthorized
115
119
  break if e.code == 503
116
120
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://rover-dev-benm.atlassian.net/rest/api/2/issue/DEV-1
5
+ uri: "<JIRA_URL>rest/api/2/issue/DEV-1"
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -13,15 +13,13 @@ http_interactions:
13
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
14
  User-Agent:
15
15
  - Ruby
16
- Authorization:
17
- - Basic ABC123
18
16
  response:
19
17
  status:
20
18
  code: 200
21
19
  message: OK
22
20
  headers:
23
21
  Server:
24
- - Atlassian Proxy/0.1.256
22
+ - Atlassian Proxy/0.1.266
25
23
  Vary:
26
24
  - Accept-Encoding
27
25
  Cache-Control:
@@ -31,9 +29,9 @@ http_interactions:
31
29
  Strict-Transport-Security:
32
30
  - max-age=315360000; includeSubDomains; preload
33
31
  Date:
34
- - Mon, 11 Jun 2018 01:16:38 GMT
32
+ - Tue, 26 Jun 2018 03:06:43 GMT
35
33
  X-Arequestid:
36
- - c7f68a80-33de-464f-82d4-a8a7af8545bb
34
+ - 8e04195f-ec3f-4447-bb67-68b2182fa0a7
37
35
  X-Xss-Protection:
38
36
  - 1; mode=block
39
37
  Transfer-Encoding:
@@ -44,23 +42,20 @@ http_interactions:
44
42
  - nosniff
45
43
  Connection:
46
44
  - keep-alive
47
- Set-Cookie:
48
- - atlassian.xsrf.token=8ca80240-a572-45b1-9934-46d77b094faf_e477032a1af0e7473ae4bce55db23d17a39afee0_lin;
49
- Path=/; Secure
50
45
  body:
51
46
  encoding: ASCII-8BIT
52
- string: '{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"10001","self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/10001","key":"DEV-1","fields":{"issuetype":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issuetype/10001","id":"10001","description":"Stories
53
- track functionality or features expressed as user goals.","iconUrl":"https://rover-dev-benm.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10315&avatarType=issuetype","name":"Story","subtask":false,"avatarId":10315},"timespent":null,"project":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/project/10001","id":"10001","key":"DEV","name":"DEV","projectTypeKey":"software","avatarUrls":{"48x48":"https://rover-dev-benm.atlassian.net/secure/projectavatar?avatarId=10324","24x24":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=small&avatarId=10324","16x16":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=xsmall&avatarId=10324","32x32":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=medium&avatarId=10324"}},"fixVersions":[],"aggregatetimespent":null,"resolution":null,"resolutiondate":null,"workratio":-1,"lastViewed":null,"watches":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/DEV-1/watchers","watchCount":1,"isWatching":true},"created":"2018-06-10T15:49:35.621-0700","customfield_10020":null,"priority":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/priority/3","iconUrl":"https://rover-dev-benm.atlassian.net/images/icons/priorities/medium.svg","name":"Medium","id":"3"},"labels":[],"customfield_10016":null,"customfield_10019":null,"timeestimate":null,"aggregatetimeoriginalestimate":null,"versions":[],"issuelinks":[],"assignee":null,"updated":"2018-06-10T16:35:54.417-0700","status":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/status/10003","description":"","iconUrl":"https://rover-dev-benm.atlassian.net/","name":"To
54
- Do","id":"10003","statusCategory":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"To
55
- Do"}},"components":[{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/component/10003","id":"10003","name":"ComponentA"},{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/component/10005","id":"10005","name":"ComponentC"}],"timeoriginalestimate":null,"description":null,"customfield_10010":null,"customfield_10011":null,"customfield_10012":null,"customfield_10013":null,"customfield_10014":[],"customfield_10015":null,"timetracking":{},"customfield_10006":null,"customfield_10007":null,"security":null,"customfield_10008":[],"customfield_10009":"0|i00007:","aggregatetimeestimate":null,"attachment":[],"summary":"do
56
- the thing ","creator":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"ben.menesini@rover.com","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
57
- Menesini","active":true,"timeZone":"America/Los_Angeles"},"subtasks":[],"reporter":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"ben.menesini@rover.com","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
58
- Menesini","active":true,"timeZone":"America/Los_Angeles"},"customfield_10000":"{}","aggregateprogress":{"progress":0,"total":0},"customfield_10001":null,"customfield_10002":null,"environment":null,"duedate":null,"progress":{"progress":0,"total":0},"votes":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/DEV-1/votes","votes":0,"hasVoted":false},"comment":{"comments":[],"maxResults":0,"total":0,"startAt":0},"worklog":{"startAt":0,"maxResults":20,"total":0,"worklogs":[]}}}'
47
+ string: '{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"10001","self":"<JIRA_URL>rest/api/2/issue/10001","key":"DEV-1","fields":{"issuetype":{"self":"<JIRA_URL>rest/api/2/issuetype/10001","id":"10001","description":"Stories
48
+ track functionality or features expressed as user goals.","iconUrl":"<JIRA_URL>secure/viewavatar?size=xsmall&avatarId=10315&avatarType=issuetype","name":"Story","subtask":false,"avatarId":10315},"timespent":null,"project":{"self":"<JIRA_URL>rest/api/2/project/10001","id":"10001","key":"DEV","name":"DEV","projectTypeKey":"software","avatarUrls":{"48x48":"<JIRA_URL>secure/projectavatar?avatarId=10324","24x24":"<JIRA_URL>secure/projectavatar?size=small&avatarId=10324","16x16":"<JIRA_URL>secure/projectavatar?size=xsmall&avatarId=10324","32x32":"<JIRA_URL>secure/projectavatar?size=medium&avatarId=10324"}},"fixVersions":[],"aggregatetimespent":null,"resolution":null,"resolutiondate":null,"workratio":-1,"watches":{"self":"<JIRA_URL>rest/api/2/issue/DEV-1/watchers","watchCount":1,"isWatching":true},"lastViewed":null,"created":"2018-06-10T15:49:35.621-0700","customfield_10020":null,"priority":{"self":"<JIRA_URL>rest/api/2/priority/3","iconUrl":"<JIRA_URL>images/icons/priorities/medium.svg","name":"Medium","id":"3"},"labels":[],"customfield_10016":null,"customfield_10019":null,"timeestimate":null,"aggregatetimeoriginalestimate":null,"versions":[],"issuelinks":[],"assignee":null,"updated":"2018-06-10T16:35:54.417-0700","status":{"self":"<JIRA_URL>rest/api/2/status/10003","description":"","iconUrl":"<JIRA_URL>","name":"To
49
+ Do","id":"10003","statusCategory":{"self":"<JIRA_URL>rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"To
50
+ Do"}},"components":[{"self":"<JIRA_URL>rest/api/2/component/10003","id":"10003","name":"ComponentA"},{"self":"<JIRA_URL>rest/api/2/component/10005","id":"10005","name":"ComponentC"}],"timeoriginalestimate":null,"description":null,"customfield_10010":null,"customfield_10011":null,"customfield_10012":null,"customfield_10013":null,"customfield_10014":[],"customfield_10015":null,"timetracking":{},"customfield_10006":null,"customfield_10007":null,"security":null,"customfield_10008":[],"attachment":[],"customfield_10009":"0|i00007:","aggregatetimeestimate":null,"summary":"do
51
+ the thing ","creator":{"self":"<JIRA_URL>rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"<JIRA_USER>","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
52
+ Menesini","active":true,"timeZone":"America/Los_Angeles"},"subtasks":[],"reporter":{"self":"<JIRA_URL>rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"<JIRA_USER>","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
53
+ Menesini","active":true,"timeZone":"America/Los_Angeles"},"customfield_10000":"{}","aggregateprogress":{"progress":0,"total":0},"customfield_10001":null,"customfield_10002":null,"environment":null,"duedate":null,"progress":{"progress":0,"total":0},"comment":{"comments":[],"maxResults":0,"total":0,"startAt":0},"votes":{"self":"<JIRA_URL>rest/api/2/issue/DEV-1/votes","votes":0,"hasVoted":false},"worklog":{"startAt":0,"maxResults":20,"total":0,"worklogs":[]}}}'
59
54
  http_version:
60
- recorded_at: Mon, 11 Jun 2018 01:16:38 GMT
55
+ recorded_at: Tue, 26 Jun 2018 03:06:43 GMT
61
56
  - request:
62
57
  method: get
63
- uri: https://rover-dev-benm.atlassian.net/rest/api/2/issue/ABC-1
58
+ uri: "<JIRA_URL>rest/api/2/issue/ABC-1"
64
59
  body:
65
60
  encoding: US-ASCII
66
61
  string: ''
@@ -71,15 +66,13 @@ http_interactions:
71
66
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
72
67
  User-Agent:
73
68
  - Ruby
74
- Authorization:
75
- - Basic ABC123
76
69
  response:
77
70
  status:
78
71
  code: 200
79
72
  message: OK
80
73
  headers:
81
74
  Server:
82
- - Atlassian Proxy/0.1.256
75
+ - Atlassian Proxy/0.1.266
83
76
  Vary:
84
77
  - Accept-Encoding
85
78
  Cache-Control:
@@ -89,9 +82,9 @@ http_interactions:
89
82
  Strict-Transport-Security:
90
83
  - max-age=315360000; includeSubDomains; preload
91
84
  Date:
92
- - Mon, 11 Jun 2018 01:16:39 GMT
85
+ - Tue, 26 Jun 2018 03:06:43 GMT
93
86
  X-Arequestid:
94
- - 11c9033b-40a6-4819-9bbd-7ccbb6de3b3c
87
+ - 1a6ea911-e0ad-422b-8131-be98b4608302
95
88
  X-Xss-Protection:
96
89
  - 1; mode=block
97
90
  Transfer-Encoding:
@@ -102,23 +95,20 @@ http_interactions:
102
95
  - nosniff
103
96
  Connection:
104
97
  - keep-alive
105
- Set-Cookie:
106
- - atlassian.xsrf.token=8ca80240-a572-45b1-9934-46d77b094faf_4f9e28512c190569c7a68075cb9c74ae492a78d1_lin;
107
- Path=/; Secure
108
98
  body:
109
99
  encoding: ASCII-8BIT
110
- string: '{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"10002","self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/10002","key":"ABC-1","fields":{"issuetype":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issuetype/10001","id":"10001","description":"Stories
111
- track functionality or features expressed as user goals.","iconUrl":"https://rover-dev-benm.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10315&avatarType=issuetype","name":"Story","subtask":false,"avatarId":10315},"timespent":null,"project":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/project/10002","id":"10002","key":"ABC","name":"ABC","projectTypeKey":"software","avatarUrls":{"48x48":"https://rover-dev-benm.atlassian.net/secure/projectavatar?avatarId=10324","24x24":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=small&avatarId=10324","16x16":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=xsmall&avatarId=10324","32x32":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=medium&avatarId=10324"}},"fixVersions":[],"aggregatetimespent":null,"resolution":null,"resolutiondate":null,"workratio":-1,"watches":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/ABC-1/watchers","watchCount":1,"isWatching":true},"lastViewed":null,"created":"2018-06-10T16:06:17.205-0700","customfield_10020":null,"priority":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/priority/3","iconUrl":"https://rover-dev-benm.atlassian.net/images/icons/priorities/medium.svg","name":"Medium","id":"3"},"labels":[],"customfield_10016":null,"customfield_10019":null,"timeestimate":null,"aggregatetimeoriginalestimate":null,"versions":[],"issuelinks":[],"assignee":null,"updated":"2018-06-10T16:35:27.802-0700","status":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/status/10003","description":"","iconUrl":"https://rover-dev-benm.atlassian.net/","name":"To
112
- Do","id":"10003","statusCategory":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"To
113
- Do"}},"components":[{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/component/10007","id":"10007","name":"ComponentB"}],"timeoriginalestimate":null,"description":null,"customfield_10010":null,"customfield_10011":null,"customfield_10012":null,"customfield_10013":null,"customfield_10014":[],"customfield_10015":null,"timetracking":{},"customfield_10006":null,"customfield_10007":null,"security":null,"customfield_10008":[],"customfield_10009":"0|i0000f:","attachment":[],"aggregatetimeestimate":null,"summary":"do
114
- abc thing","creator":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"ben.menesini@rover.com","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
115
- Menesini","active":true,"timeZone":"America/Los_Angeles"},"subtasks":[],"reporter":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"ben.menesini@rover.com","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
116
- Menesini","active":true,"timeZone":"America/Los_Angeles"},"customfield_10000":"{}","aggregateprogress":{"progress":0,"total":0},"customfield_10001":null,"customfield_10002":null,"environment":null,"duedate":null,"progress":{"progress":0,"total":0},"votes":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/ABC-1/votes","votes":0,"hasVoted":false},"comment":{"comments":[],"maxResults":0,"total":0,"startAt":0},"worklog":{"startAt":0,"maxResults":20,"total":0,"worklogs":[]}}}'
100
+ string: '{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"10002","self":"<JIRA_URL>rest/api/2/issue/10002","key":"ABC-1","fields":{"issuetype":{"self":"<JIRA_URL>rest/api/2/issuetype/10001","id":"10001","description":"Stories
101
+ track functionality or features expressed as user goals.","iconUrl":"<JIRA_URL>secure/viewavatar?size=xsmall&avatarId=10315&avatarType=issuetype","name":"Story","subtask":false,"avatarId":10315},"timespent":null,"project":{"self":"<JIRA_URL>rest/api/2/project/10002","id":"10002","key":"ABC","name":"ABC","projectTypeKey":"software","avatarUrls":{"48x48":"<JIRA_URL>secure/projectavatar?avatarId=10324","24x24":"<JIRA_URL>secure/projectavatar?size=small&avatarId=10324","16x16":"<JIRA_URL>secure/projectavatar?size=xsmall&avatarId=10324","32x32":"<JIRA_URL>secure/projectavatar?size=medium&avatarId=10324"}},"fixVersions":[],"aggregatetimespent":null,"resolution":null,"resolutiondate":null,"workratio":-1,"lastViewed":null,"watches":{"self":"<JIRA_URL>rest/api/2/issue/ABC-1/watchers","watchCount":1,"isWatching":true},"created":"2018-06-10T16:06:17.205-0700","customfield_10020":null,"priority":{"self":"<JIRA_URL>rest/api/2/priority/3","iconUrl":"<JIRA_URL>images/icons/priorities/medium.svg","name":"Medium","id":"3"},"labels":[],"customfield_10016":null,"customfield_10019":null,"aggregatetimeoriginalestimate":null,"timeestimate":null,"versions":[],"issuelinks":[],"assignee":null,"updated":"2018-06-10T16:35:27.802-0700","status":{"self":"<JIRA_URL>rest/api/2/status/10003","description":"","iconUrl":"<JIRA_URL>","name":"To
102
+ Do","id":"10003","statusCategory":{"self":"<JIRA_URL>rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"To
103
+ Do"}},"components":[{"self":"<JIRA_URL>rest/api/2/component/10007","id":"10007","name":"ComponentB"}],"timeoriginalestimate":null,"description":null,"customfield_10010":null,"customfield_10011":null,"customfield_10012":null,"customfield_10013":null,"customfield_10014":[],"timetracking":{},"customfield_10015":null,"customfield_10006":null,"security":null,"customfield_10007":null,"customfield_10008":[],"attachment":[],"customfield_10009":"0|i0000f:","aggregatetimeestimate":null,"summary":"do
104
+ abc thing","creator":{"self":"<JIRA_URL>rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"<JIRA_USER>","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
105
+ Menesini","active":true,"timeZone":"America/Los_Angeles"},"subtasks":[],"reporter":{"self":"<JIRA_URL>rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"<JIRA_USER>","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
106
+ Menesini","active":true,"timeZone":"America/Los_Angeles"},"aggregateprogress":{"progress":0,"total":0},"customfield_10000":"{}","customfield_10001":null,"customfield_10002":null,"environment":null,"duedate":null,"progress":{"progress":0,"total":0},"votes":{"self":"<JIRA_URL>rest/api/2/issue/ABC-1/votes","votes":0,"hasVoted":false},"comment":{"comments":[],"maxResults":0,"total":0,"startAt":0},"worklog":{"startAt":0,"maxResults":20,"total":0,"worklogs":[]}}}'
117
107
  http_version:
118
- recorded_at: Mon, 11 Jun 2018 01:16:39 GMT
108
+ recorded_at: Tue, 26 Jun 2018 03:06:44 GMT
119
109
  - request:
120
110
  method: get
121
- uri: https://rover-dev-benm.atlassian.net/rest/api/2/issue/XYZ-1
111
+ uri: "<JIRA_URL>rest/api/2/issue/XYZ-1"
122
112
  body:
123
113
  encoding: US-ASCII
124
114
  string: ''
@@ -129,15 +119,13 @@ http_interactions:
129
119
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
130
120
  User-Agent:
131
121
  - Ruby
132
- Authorization:
133
- - Basic ABC123
134
122
  response:
135
123
  status:
136
124
  code: 200
137
125
  message: OK
138
126
  headers:
139
127
  Server:
140
- - Atlassian Proxy/0.1.256
128
+ - Atlassian Proxy/0.1.266
141
129
  Vary:
142
130
  - Accept-Encoding
143
131
  Cache-Control:
@@ -147,9 +135,9 @@ http_interactions:
147
135
  Strict-Transport-Security:
148
136
  - max-age=315360000; includeSubDomains; preload
149
137
  Date:
150
- - Mon, 11 Jun 2018 01:16:40 GMT
138
+ - Tue, 26 Jun 2018 03:06:45 GMT
151
139
  X-Arequestid:
152
- - 8d7224dc-55be-4bdf-af42-fbbe11137425
140
+ - 23d8eebb-d580-4c60-adc6-726dce50f5b5
153
141
  X-Xss-Protection:
154
142
  - 1; mode=block
155
143
  Transfer-Encoding:
@@ -160,18 +148,15 @@ http_interactions:
160
148
  - nosniff
161
149
  Connection:
162
150
  - keep-alive
163
- Set-Cookie:
164
- - atlassian.xsrf.token=8ca80240-a572-45b1-9934-46d77b094faf_40066027e206dfd93b6c75de972c61e3b372d47b_lin;
165
- Path=/; Secure
166
151
  body:
167
152
  encoding: ASCII-8BIT
168
- string: '{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"10003","self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/10003","key":"XYZ-1","fields":{"issuetype":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issuetype/10001","id":"10001","description":"Stories
169
- track functionality or features expressed as user goals.","iconUrl":"https://rover-dev-benm.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10315&avatarType=issuetype","name":"Story","subtask":false,"avatarId":10315},"timespent":null,"project":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/project/10003","id":"10003","key":"XYZ","name":"XYZ","projectTypeKey":"software","avatarUrls":{"48x48":"https://rover-dev-benm.atlassian.net/secure/projectavatar?avatarId=10324","24x24":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=small&avatarId=10324","16x16":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=xsmall&avatarId=10324","32x32":"https://rover-dev-benm.atlassian.net/secure/projectavatar?size=medium&avatarId=10324"}},"fixVersions":[],"aggregatetimespent":null,"resolution":null,"resolutiondate":null,"workratio":-1,"lastViewed":null,"watches":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/XYZ-1/watchers","watchCount":1,"isWatching":true},"created":"2018-06-10T16:06:37.918-0700","customfield_10020":null,"priority":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/priority/3","iconUrl":"https://rover-dev-benm.atlassian.net/images/icons/priorities/medium.svg","name":"Medium","id":"3"},"labels":[],"customfield_10016":null,"customfield_10019":null,"timeestimate":null,"aggregatetimeoriginalestimate":null,"versions":[],"issuelinks":[],"assignee":null,"updated":"2018-06-10T16:36:58.216-0700","status":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/status/10003","description":"","iconUrl":"https://rover-dev-benm.atlassian.net/","name":"To
170
- Do","id":"10003","statusCategory":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"To
171
- Do"}},"components":[{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/component/10011","id":"10011","name":"ComponentC"}],"timeoriginalestimate":null,"description":null,"customfield_10010":null,"customfield_10011":null,"customfield_10012":null,"customfield_10013":null,"customfield_10014":[],"customfield_10015":null,"timetracking":{},"customfield_10006":null,"security":null,"customfield_10007":null,"customfield_10008":[],"aggregatetimeestimate":null,"attachment":[],"customfield_10009":"0|i0000n:","summary":"do
172
- xyz thing","creator":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"ben.menesini@rover.com","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
173
- Menesini","active":true,"timeZone":"America/Los_Angeles"},"subtasks":[],"reporter":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"ben.menesini@rover.com","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
174
- Menesini","active":true,"timeZone":"America/Los_Angeles"},"aggregateprogress":{"progress":0,"total":0},"customfield_10000":"{}","customfield_10001":null,"customfield_10002":null,"environment":null,"duedate":null,"progress":{"progress":0,"total":0},"comment":{"comments":[],"maxResults":0,"total":0,"startAt":0},"votes":{"self":"https://rover-dev-benm.atlassian.net/rest/api/2/issue/XYZ-1/votes","votes":0,"hasVoted":false},"worklog":{"startAt":0,"maxResults":20,"total":0,"worklogs":[]}}}'
153
+ string: '{"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations","id":"10003","self":"<JIRA_URL>rest/api/2/issue/10003","key":"XYZ-1","fields":{"issuetype":{"self":"<JIRA_URL>rest/api/2/issuetype/10001","id":"10001","description":"Stories
154
+ track functionality or features expressed as user goals.","iconUrl":"<JIRA_URL>secure/viewavatar?size=xsmall&avatarId=10315&avatarType=issuetype","name":"Story","subtask":false,"avatarId":10315},"timespent":null,"project":{"self":"<JIRA_URL>rest/api/2/project/10003","id":"10003","key":"XYZ","name":"XYZ","projectTypeKey":"software","avatarUrls":{"48x48":"<JIRA_URL>secure/projectavatar?avatarId=10324","24x24":"<JIRA_URL>secure/projectavatar?size=small&avatarId=10324","16x16":"<JIRA_URL>secure/projectavatar?size=xsmall&avatarId=10324","32x32":"<JIRA_URL>secure/projectavatar?size=medium&avatarId=10324"}},"fixVersions":[],"aggregatetimespent":null,"resolution":null,"resolutiondate":null,"workratio":-1,"watches":{"self":"<JIRA_URL>rest/api/2/issue/XYZ-1/watchers","watchCount":1,"isWatching":true},"lastViewed":null,"created":"2018-06-10T16:06:37.918-0700","customfield_10020":null,"priority":{"self":"<JIRA_URL>rest/api/2/priority/3","iconUrl":"<JIRA_URL>images/icons/priorities/medium.svg","name":"Medium","id":"3"},"labels":[],"customfield_10016":null,"customfield_10019":null,"aggregatetimeoriginalestimate":null,"timeestimate":null,"versions":[],"issuelinks":[],"assignee":null,"updated":"2018-06-10T16:36:58.216-0700","status":{"self":"<JIRA_URL>rest/api/2/status/10003","description":"","iconUrl":"<JIRA_URL>","name":"To
155
+ Do","id":"10003","statusCategory":{"self":"<JIRA_URL>rest/api/2/statuscategory/2","id":2,"key":"new","colorName":"blue-gray","name":"To
156
+ Do"}},"components":[{"self":"<JIRA_URL>rest/api/2/component/10011","id":"10011","name":"ComponentC"}],"timeoriginalestimate":null,"description":null,"customfield_10010":null,"customfield_10011":null,"customfield_10012":null,"customfield_10013":null,"customfield_10014":[],"customfield_10015":null,"timetracking":{},"customfield_10006":null,"security":null,"customfield_10007":null,"customfield_10008":[],"customfield_10009":"0|i0000n:","aggregatetimeestimate":null,"attachment":[],"summary":"do
157
+ xyz thing","creator":{"self":"<JIRA_URL>rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"<JIRA_USER>","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
158
+ Menesini","active":true,"timeZone":"America/Los_Angeles"},"subtasks":[],"reporter":{"self":"<JIRA_URL>rest/api/2/user?username=admin","name":"admin","key":"admin","accountId":"5ac51680c5459746a4cf0e94","emailAddress":"<JIRA_USER>","avatarUrls":{"48x48":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue","24x24":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue","16x16":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue","32x32":"https://avatar-cdn.atlassian.com/ced2c1a305df6b35cd77e99ec6cfe02a?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fced2c1a305df6b35cd77e99ec6cfe02a%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue"},"displayName":"Ben
159
+ Menesini","active":true,"timeZone":"America/Los_Angeles"},"customfield_10000":"{}","aggregateprogress":{"progress":0,"total":0},"customfield_10001":null,"customfield_10002":null,"environment":null,"duedate":null,"progress":{"progress":0,"total":0},"comment":{"comments":[],"maxResults":0,"total":0,"startAt":0},"votes":{"self":"<JIRA_URL>rest/api/2/issue/XYZ-1/votes","votes":0,"hasVoted":false},"worklog":{"startAt":0,"maxResults":20,"total":0,"worklogs":[]}}}'
175
160
  http_version:
176
- recorded_at: Mon, 11 Jun 2018 01:16:40 GMT
161
+ recorded_at: Tue, 26 Jun 2018 03:06:45 GMT
177
162
  recorded_with: VCR 4.0.0
@@ -13,8 +13,6 @@ http_interactions:
13
13
  - Octokit Ruby Gem 4.9.0
14
14
  Content-Type:
15
15
  - application/json
16
- Authorization:
17
- - token ABC123
18
16
  Accept-Encoding:
19
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
18
  response:
@@ -23,7 +21,7 @@ http_interactions:
23
21
  message: OK
24
22
  headers:
25
23
  Date:
26
- - Sun, 10 Jun 2018 08:32:45 GMT
24
+ - Tue, 26 Jun 2018 03:03:35 GMT
27
25
  Content-Type:
28
26
  - application/json; charset=utf-8
29
27
  Transfer-Encoding:
@@ -35,18 +33,18 @@ http_interactions:
35
33
  X-Ratelimit-Limit:
36
34
  - '5000'
37
35
  X-Ratelimit-Remaining:
38
- - '4999'
36
+ - '4995'
39
37
  X-Ratelimit-Reset:
40
- - '1528623165'
38
+ - '1529984687'
41
39
  Cache-Control:
42
40
  - private, max-age=60, s-maxage=60
43
41
  Vary:
44
42
  - Accept, Authorization, Cookie, X-GitHub-OTP
45
43
  - Accept-Encoding
46
44
  Etag:
47
- - W/"6fe4d4cf4d2f7bdc1f7f6e2db5f70685"
45
+ - W/"ec4cfe1ed57f793911a34ed200fa68c4"
48
46
  Last-Modified:
49
- - Fri, 18 May 2018 16:19:54 GMT
47
+ - Fri, 22 Jun 2018 20:25:38 GMT
50
48
  X-Oauth-Scopes:
51
49
  - public_repo
52
50
  X-Accepted-Oauth-Scopes:
@@ -71,9 +69,9 @@ http_interactions:
71
69
  Content-Security-Policy:
72
70
  - default-src 'none'
73
71
  X-Runtime-Rack:
74
- - '0.099317'
72
+ - '0.194817'
75
73
  X-Github-Request-Id:
76
- - F7AE:7BFC:E6FCA1:1223735:5B1CE22D
74
+ - C535:19F7:1DEEABF:25757C4:5B31AD06
77
75
  body:
78
76
  encoding: ASCII-8BIT
79
77
  string: '{"url":"https://api.github.com/repos/artsy/eigen/pulls/800","id":44984379,"node_id":"MDExOlB1bGxSZXF1ZXN0NDQ5ODQzNzk=","html_url":"https://github.com/artsy/eigen/pull/800","diff_url":"https://github.com/artsy/eigen/pull/800.diff","patch_url":"https://github.com/artsy/eigen/pull/800.patch","issue_url":"https://api.github.com/repos/artsy/eigen/issues/800","number":800,"state":"closed","locked":false,"title":"[DEV-1] some title with issue keys in it ABC-1","user":{"login":"orta","id":49038,"node_id":"MDQ6VXNlcjQ5MDM4","avatar_url":"https://avatars2.githubusercontent.com/u/49038?v=4","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false},"body":"this is a body with a key in it XYZ-1","created_at":"2015-09-14T21:38:28Z","updated_at":"2015-12-14T22:37:26Z","closed_at":"2015-09-17T18:52:12Z","merged_at":null,"merge_commit_sha":"38a1e19cbf41b06cac224e36e962f42f09994a83","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/eigen/pulls/800/commits","review_comments_url":"https://api.github.com/repos/artsy/eigen/pulls/800/comments","review_comment_url":"https://api.github.com/repos/artsy/eigen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/eigen/issues/800/comments","statuses_url":"https://api.github.com/repos/artsy/eigen/statuses/561827e46167077b5e53515b4b7349b8ae04610b","head":{"label":"artsy:orta-circle_ci2","ref":"orta-circle_ci2","sha":"561827e46167077b5e53515b4b7349b8ae04610b","user":{"login":"artsy","id":546231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":29702213,"node_id":"MDEwOlJlcG9zaXRvcnkyOTcwMjIxMw==","name":"eigen","full_name":"artsy/eigen","owner":{"login":"artsy","id":546231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NjIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/eigen","description":"The
@@ -83,8 +81,7 @@ http_interactions:
83
81
  Art World in Your Pocket or Your Trendy Tech Company''s Tote, Artsy''s iOS
84
82
  app.","fork":false,"url":"https://api.github.com/repos/artsy/eigen","forks_url":"https://api.github.com/repos/artsy/eigen/forks","keys_url":"https://api.github.com/repos/artsy/eigen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/eigen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/eigen/teams","hooks_url":"https://api.github.com/repos/artsy/eigen/hooks","issue_events_url":"https://api.github.com/repos/artsy/eigen/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/eigen/events","assignees_url":"https://api.github.com/repos/artsy/eigen/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/eigen/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/eigen/tags","blobs_url":"https://api.github.com/repos/artsy/eigen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/eigen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/eigen/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/eigen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/eigen/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/eigen/languages","stargazers_url":"https://api.github.com/repos/artsy/eigen/stargazers","contributors_url":"https://api.github.com/repos/artsy/eigen/contributors","subscribers_url":"https://api.github.com/repos/artsy/eigen/subscribers","subscription_url":"https://api.github.com/repos/artsy/eigen/subscription","commits_url":"https://api.github.com/repos/artsy/eigen/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/eigen/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/eigen/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/eigen/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/eigen/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/eigen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/eigen/merges","archive_url":"https://api.github.com/repos/artsy/eigen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/eigen/downloads","issues_url":"https://api.github.com/repos/artsy/eigen/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/eigen/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/eigen/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/eigen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/eigen/labels{/name}","releases_url":"https://api.github.com/repos/artsy/eigen/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/eigen/deployments","created_at":"2015-01-22T21:52:39Z","updated_at":"2018-06-08T09:35:58Z","pushed_at":"2018-06-07T09:42:39Z","git_url":"git://github.com/artsy/eigen.git","ssh_url":"git@github.com:artsy/eigen.git","clone_url":"https://github.com/artsy/eigen.git","svn_url":"https://github.com/artsy/eigen","homepage":"http://iphone.artsy.net","size":201857,"stargazers_count":2331,"watchers_count":2331,"language":"Objective-C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":357,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"mit","name":"MIT
85
83
  License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":357,"open_issues":35,"watchers":2331,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/eigen/pulls/800"},"html":{"href":"https://github.com/artsy/eigen/pull/800"},"issue":{"href":"https://api.github.com/repos/artsy/eigen/issues/800"},"comments":{"href":"https://api.github.com/repos/artsy/eigen/issues/800/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/eigen/pulls/800/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/eigen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/eigen/pulls/800/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/eigen/statuses/561827e46167077b5e53515b4b7349b8ae04610b"}},"author_association":"MEMBER","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":8,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":60,"deletions":77,"changed_files":10}'
86
- http_version:
87
- recorded_at: Sun, 10 Jun 2018 08:32:45 GMT
84
+ recorded_at: Tue, 26 Jun 2018 03:03:35 GMT
88
85
  - request:
89
86
  method: get
90
87
  uri: https://api.github.com/repos/artsy/eigen/issues/800
@@ -98,8 +95,6 @@ http_interactions:
98
95
  - Octokit Ruby Gem 4.9.0
99
96
  Content-Type:
100
97
  - application/json
101
- Authorization:
102
- - token ABC123
103
98
  Accept-Encoding:
104
99
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
105
100
  response:
@@ -108,7 +103,7 @@ http_interactions:
108
103
  message: OK
109
104
  headers:
110
105
  Date:
111
- - Sun, 10 Jun 2018 08:32:45 GMT
106
+ - Tue, 26 Jun 2018 03:03:35 GMT
112
107
  Content-Type:
113
108
  - application/json; charset=utf-8
114
109
  Transfer-Encoding:
@@ -120,9 +115,9 @@ http_interactions:
120
115
  X-Ratelimit-Limit:
121
116
  - '5000'
122
117
  X-Ratelimit-Remaining:
123
- - '4998'
118
+ - '4994'
124
119
  X-Ratelimit-Reset:
125
- - '1528623165'
120
+ - '1529984687'
126
121
  Cache-Control:
127
122
  - private, max-age=60, s-maxage=60
128
123
  Vary:
@@ -131,7 +126,7 @@ http_interactions:
131
126
  Etag:
132
127
  - W/"1f3136ab9bc2d15839bfa57a1fa2d687"
133
128
  Last-Modified:
134
- - Fri, 18 May 2018 16:19:54 GMT
129
+ - Fri, 22 Jun 2018 20:25:38 GMT
135
130
  X-Oauth-Scopes:
136
131
  - public_repo
137
132
  X-Accepted-Oauth-Scopes:
@@ -156,12 +151,12 @@ http_interactions:
156
151
  Content-Security-Policy:
157
152
  - default-src 'none'
158
153
  X-Runtime-Rack:
159
- - '0.062097'
154
+ - '0.083916'
160
155
  X-Github-Request-Id:
161
- - F7AF:7BFC:E6FCA7:1223747:5B1CE22D
156
+ - C53A:19F8:225B7CE:2AFBE56:5B31AD07
162
157
  body:
163
158
  encoding: ASCII-8BIT
164
159
  string: '{"url":"https://api.github.com/repos/artsy/eigen/issues/800","repository_url":"https://api.github.com/repos/artsy/eigen","labels_url":"https://api.github.com/repos/artsy/eigen/issues/800/labels{/name}","comments_url":"https://api.github.com/repos/artsy/eigen/issues/800/comments","events_url":"https://api.github.com/repos/artsy/eigen/issues/800/events","html_url":"https://github.com/artsy/eigen/pull/800","id":106433441,"node_id":"MDExOlB1bGxSZXF1ZXN0NDQ5ODQzNzk=","number":800,"title":"[DEV-1] some title with issue keys in it ABC-1","user":{"login":"orta","id":49038,"node_id":"MDQ6VXNlcjQ5MDM4","avatar_url":"https://avatars2.githubusercontent.com/u/49038?v=4","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2015-09-14T21:38:28Z","updated_at":"2015-12-14T22:37:26Z","closed_at":"2015-09-17T18:52:12Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/artsy/eigen/pulls/800","html_url":"https://github.com/artsy/eigen/pull/800","diff_url":"https://github.com/artsy/eigen/pull/800.diff","patch_url":"https://github.com/artsy/eigen/pull/800.patch"},"body":"this is a body with a key in it XYZ-1","closed_by":{"login":"orta","id":49038,"node_id":"MDQ6VXNlcjQ5MDM4","avatar_url":"https://avatars2.githubusercontent.com/u/49038?v=4","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false}}'
165
160
  http_version:
166
- recorded_at: Sun, 10 Jun 2018 08:32:45 GMT
161
+ recorded_at: Tue, 26 Jun 2018 03:03:35 GMT
167
162
  recorded_with: VCR 4.0.0
@@ -79,6 +79,39 @@ RSpec.describe Danger::DangerJiraSync do
79
79
  value = plugin.configure(jira_settings)
80
80
  expect(value).to be_a(JIRA::Client)
81
81
  end
82
+
83
+ it "should render a warning when the jira_url is blank" do
84
+ jira_settings[:jira_url] = ""
85
+
86
+ plugin.configure(jira_settings)
87
+
88
+ has_jira_url_warning = dangerfile.status_report[:warnings].any? do |warning|
89
+ warning == "danger-jira_sync plugin configuration is missing jira_url"
90
+ end
91
+ expect(has_jira_url_warning).to be(true)
92
+ end
93
+
94
+ it "should render a warning when the jira_username is blank" do
95
+ jira_settings[:jira_username] = ""
96
+
97
+ plugin.configure(jira_settings)
98
+
99
+ has_jira_url_warning = dangerfile.status_report[:warnings].any? do |warning|
100
+ warning == "danger-jira_sync plugin configuration is missing jira_username"
101
+ end
102
+ expect(has_jira_url_warning).to be(true)
103
+ end
104
+
105
+ it "should render a warning when the jira_api_token is blank" do
106
+ jira_settings[:jira_api_token] = ""
107
+
108
+ plugin.configure(jira_settings)
109
+
110
+ has_jira_url_warning = dangerfile.status_report[:warnings].any? do |warning|
111
+ warning == "danger-jira_sync plugin configuration is missing jira_api_token"
112
+ end
113
+ expect(has_jira_url_warning).to be(true)
114
+ end
82
115
  end
83
116
 
84
117
  describe "autolabel_pull_request" do
@@ -192,7 +225,7 @@ RSpec.describe Danger::DangerJiraSync do
192
225
  end
193
226
 
194
227
  issue_warning_count = dangerfile.status_report[:warnings].count do |warning|
195
- warning.start_with?("Error while retrieving JIRA issue")
228
+ warning.start_with?("404 Error while retrieving JIRA issue")
196
229
  end
197
230
 
198
231
  expect(issue_warning_count).to eq(issue_prefixes.length)
@@ -206,7 +239,7 @@ RSpec.describe Danger::DangerJiraSync do
206
239
  end
207
240
 
208
241
  issue_warning_count = dangerfile.status_report[:warnings].count do |warning|
209
- warning.start_with?("Error while retrieving JIRA issue")
242
+ warning.start_with?("503 Error while retrieving JIRA issue")
210
243
  end
211
244
 
212
245
  expect(issue_warning_count).to eq(1)
data/spec/spec_helper.rb CHANGED
@@ -39,6 +39,15 @@ end
39
39
  VCR.configure do |config|
40
40
  config.cassette_library_dir = "#{File.dirname(__FILE__)}/fixtures/vcr_cassettes"
41
41
  config.hook_into :webmock
42
+ config.filter_sensitive_data("<GITHUB_TOKEN>") { ENV["DANGER_GITHUB_API_TOKEN"] }
43
+ config.filter_sensitive_data("<JIRA_URL>") { ENV["DANGER_JIRA_URL"] }
44
+ config.filter_sensitive_data("<JIRA_USER>") { ENV["DANGER_JIRA_USERNAME"] }
45
+ config.filter_sensitive_data("<JIRA_PASS>") { ENV["DANGER_JIRA_API_TOKEN"] }
46
+
47
+ config.before_record do |interaction|
48
+ interaction.response.headers.delete("Set-Cookie")
49
+ interaction.request.headers.delete("Authorization")
50
+ end
42
51
  end
43
52
 
44
53
  require "danger_plugin"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-jira_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Menesini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-16 00:00:00.000000000 Z
11
+ date: 2018-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api