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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 756b158d9806a76c2da939b3fa458628b2f90ac0380fb7b7caf6798a1b0b7d02
4
- data.tar.gz: babbfbca6d21e6fdeea4bfd7c66c2afcae9637ca7d3ab529e38b30c59ab63381
3
+ metadata.gz: '0809e37af3ecb6e28e1a5b4dcfe4e2e70e82cf3259b5c066f57eeb1f950ad737'
4
+ data.tar.gz: 9056ddf1b0ffe4f7227e37634aab33c37f5e64833ca61b7699368033ac45cb2b
5
5
  SHA512:
6
- metadata.gz: 4ea38939fed415185ace61557ce60ea8873372e4b0e2eef7307356277d150c68a9a1fd1de84c88482fdd1c4df43c2f723939856f0700d13dd438b1e5e6dba106
7
- data.tar.gz: c48a0459c70b2372c31cff115c5c2f104c352aace8cb262bbbc240858c6fc092f4a75ed28f99973fe3ec27e85f3db56663905ba614e8bb58868fd221f165c241
6
+ metadata.gz: 778fc282d724c156e20278de341d9fb6436ede49d5f2b835559b32fe6557002d4c3a9fedb6479889b45c120bc619a47f6f51ddec3dfeeaf49f619593b39e23d5
7
+ data.tar.gz: 13e5d89eb483f393d696e8ce8095b95535858ca689bd814aea531b58b5dcfd0daf7c307f05554df4d02639df759032ed307b291604b844d5c93df416279ea352
@@ -1,4 +1,9 @@
1
- # v0.0.4
1
+ # v0.0.5
2
+
3
+ Cleaned up output format so that the github comment is more readable.
4
+
5
+
6
+ # v0.0.4.1
2
7
 
3
8
  * Add Puppetfile output
4
9
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  require 'rangefinder/version'
2
2
  class Rangefinder::Webhook
3
- VERSION = '0.0.4.1'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
 
@@ -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
- Breaking changes to this file WILL impact these modules (exact match):
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
- Breaking changes to this file MAY impact these modules (near match):
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.1
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: 2019-03-19 00:00:00.000000000 Z
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.2
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.