puppet-community-rangefinder-webhook 0.0.4.1 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/rangefinder/webhook.rb +3 -0
- data/lib/rangefinder/webhook/version.rb +1 -1
- data/views/impact.erb +11 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0809e37af3ecb6e28e1a5b4dcfe4e2e70e82cf3259b5c066f57eeb1f950ad737'
|
4
|
+
data.tar.gz: 9056ddf1b0ffe4f7227e37634aab33c37f5e64833ca61b7699368033ac45cb2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 778fc282d724c156e20278de341d9fb6436ede49d5f2b835559b32fe6557002d4c3a9fedb6479889b45c120bc619a47f6f51ddec3dfeeaf49f619593b39e23d5
|
7
|
+
data.tar.gz: 13e5d89eb483f393d696e8ce8095b95535858ca689bd814aea531b58b5dcfd0daf7c307f05554df4d02639df759032ed307b291604b844d5c93df416279ea352
|
data/CHANGELOG.md
CHANGED
data/lib/rangefinder/webhook.rb
CHANGED
@@ -92,6 +92,9 @@ class Rangefinder::Webhook < Sinatra::Base
|
|
92
92
|
# don't comment if we don't know anything about any of the changed files
|
93
93
|
return if @impact.compact.empty?
|
94
94
|
|
95
|
+
# This really only works on a single module root anyways
|
96
|
+
@puppetfiles = @impact.map { |item| item[:puppetfile] }.compact.uniq.first
|
97
|
+
|
95
98
|
# Add the file url to each entry
|
96
99
|
@impact.each do |item|
|
97
100
|
uri = files.shift[:blob_url] # this order is intentional, it keeps the two lists in sync
|
data/views/impact.erb
CHANGED
@@ -2,29 +2,34 @@
|
|
2
2
|
[<%= result[:name] %>](<%= result[:fileuri] %>) is a _<%= result[:kind] %>_
|
3
3
|
----------------------------------
|
4
4
|
|
5
|
-
<% unless result[:puppetfile].empty? %>
|
6
|
-
The enclosing module is declared in <%= result[:puppetfile] %> indexed public Puppetfiles.
|
7
|
-
<% end %>
|
8
|
-
|
9
5
|
<% if result[:exact].empty? and result[:near].empty? %>
|
10
6
|
that may have no external impact to Forge modules.
|
11
7
|
<% end %>
|
12
8
|
|
13
9
|
<% unless result[:exact].empty? %>
|
14
|
-
|
10
|
+
<details>
|
11
|
+
<summary>Breaking changes to this file WILL impact these <%= result[:exact].count %> modules (exact match):</summary>
|
15
12
|
|
16
13
|
<% result[:exact].each do |row| %>
|
17
14
|
* [<%= row[:module] %>](<%= row[:repo] %>)
|
18
15
|
<% end %>
|
16
|
+
</details>
|
19
17
|
<% end %>
|
20
18
|
|
21
19
|
<% unless result[:near].empty? %>
|
22
|
-
|
20
|
+
<details>
|
21
|
+
<summary>Breaking changes to this file MAY impact these <%= result[:near].count %> modules (near match):</summary>
|
23
22
|
|
24
23
|
<% result[:near].each do |row| %>
|
25
24
|
* [<%= row[:module] %>](<%= row[:repo] %>)
|
26
25
|
<% end %>
|
26
|
+
</details>
|
27
27
|
<% end %>
|
28
|
+
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<% unless @puppetfiles.nil? %>
|
32
|
+
#### This module is declared in <%= @puppetfiles %> indexed public `Puppetfiles`.
|
28
33
|
<% end %>
|
29
34
|
|
30
35
|
---------------------------------
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-community-rangefinder-webhook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Ford
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.0.
|
108
|
+
rubygems_version: 3.0.6
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Provides impact analysis for Puppet modules PRs on GitHub.
|