danger 6.2.1 → 6.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45b362f1e56f963bb7e924c541d6934d426ce840f092fb26aa4158956bb9fb5d
|
4
|
+
data.tar.gz: af30407cccc20cd672276fe288626506c2e6835215fbc4ee8c775119c4703099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf6970506bab77f49b534185392873b8448af90d4ac1a7ba6004673a900d63e3f8141f3561372fa5da2935be0fe00646d08f7fea97da1165826d1851932ad038
|
7
|
+
data.tar.gz: b1cfca29b03ac5ad85089b92d2ea5d17df40a6a4ed2e0da15e4fa772f50696347976f1d701a4f891febf3d42acaab864aa15d1e5c2f8894fc344cb352c208f14
|
@@ -115,7 +115,7 @@ module Danger
|
|
115
115
|
end
|
116
116
|
|
117
117
|
def delete_old_comments(danger_id: "danger")
|
118
|
-
@api.
|
118
|
+
@api.fetch_comments.each do |c|
|
119
119
|
next if c[:user][:uuid] != @api.my_uuid
|
120
120
|
@api.delete_comment(c[:id]) if c[:content][:raw] =~ /generated_by_#{danger_id}/
|
121
121
|
end
|
@@ -48,12 +48,13 @@ module Danger
|
|
48
48
|
values = []
|
49
49
|
# TODO: use a url parts encoder to encode the query
|
50
50
|
uri = "#{pr_api_endpoint}/comments?pagelen=100&q=deleted+%7E+false+AND+user.username+%7E+%22#{@username}%22"
|
51
|
-
|
51
|
+
|
52
|
+
while uri
|
52
53
|
json = fetch_json(URI(uri))
|
53
54
|
values += json[:values]
|
54
55
|
uri = json[:next]
|
55
|
-
values
|
56
56
|
end
|
57
|
+
values
|
57
58
|
end
|
58
59
|
|
59
60
|
def delete_comment(id)
|
data/lib/danger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.2.
|
4
|
+
version: 6.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-02-
|
12
|
+
date: 2020-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|