danger-missing_codeowners 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/missing_codeowners/gem_version.rb +1 -1
- data/lib/missing_codeowners/plugin.rb +13 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87deed89b9d5702658d37e55cc22c2b804142e2b4bbd6dafbcd22c9c95ff510d
|
4
|
+
data.tar.gz: 3203574f2c27a67f36df38f5bf76b25da7e9cf40ad4bc12814142c1764b85147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5779738fd0b9dab10a70df0cf498eedfdb2cc9e0f6be22cb33edbfc7c11461b3b7d00ddbc803dc4f482fdad54c38a87e5f02abe1fec2c047bfbf32240034e673
|
7
|
+
data.tar.gz: 77a436294408c61cac890c5f466519a2e3719867a63919b834375fc9faac07f5183d9a536aaedd5e623ee59680f8a78e410445813e14536b089d51dd1f8e9a92
|
data/Gemfile.lock
CHANGED
@@ -53,20 +53,26 @@ module Danger
|
|
53
53
|
@verbose ||= false
|
54
54
|
|
55
55
|
files = files_to_verify
|
56
|
+
log "Files to verify:"
|
57
|
+
log files.join("\n")
|
58
|
+
|
56
59
|
codeowners_path = find_codeowners_file
|
57
60
|
codeowners_lines = read_codeowners_file(codeowners_path)
|
58
61
|
codeowners_spec = parse_codeowners_spec(codeowners_lines)
|
59
62
|
@files_missing_codeowners = files.reject { |file| codeowners_spec.match file }
|
60
63
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
log @files_missing_codeowners.join("\n")
|
64
|
+
if @files_missing_codeowners.any?
|
65
|
+
log "Files missing CODEOWNERS:"
|
66
|
+
log @files_missing_codeowners.join("\n")
|
65
67
|
|
66
|
-
|
67
|
-
|
68
|
+
markdown format_missing_owners_message(@files_missing_codeowners, @max_number_of_files_to_report)
|
69
|
+
danger_message = "Add CODEOWNERS rules to match all files."
|
70
|
+
@severity == "error" ? (fail danger_message) : (warn danger_message)
|
71
|
+
else
|
72
|
+
log "No files missing CODEOWNERS."
|
73
|
+
end
|
68
74
|
|
69
|
-
|
75
|
+
log "-----"
|
70
76
|
end
|
71
77
|
|
72
78
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-missing_codeowners
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andre-alves
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|