code_ownership 1.32.11 → 1.32.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/code_ownership/private/codeowners_file.rb +6 -0
- data/lib/code_ownership/private.rb +1 -1
- 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: ad23d35594c57c575faa7afa4bdd7133efc848319d7279b6b28c8d7f67b7d2c0
|
4
|
+
data.tar.gz: 7e21f92921d9053820eaf3722d4ee7064e5af726ea6c9c4af653bc7330e777bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb45989ddbd059ba89632015ee8dc345bfb38932d008fe8edd1ea687de16b97367625a84db7c550cdd7ae20d08fe86d876f3252574564f4a6374ae3fcb9e49b
|
7
|
+
data.tar.gz: fc2ee0036fe2780910ae7a6fe290c738a7466fd3608f4b06ae3c9daa470160bca203106c51a90772365bfd6563c0b0651ecb8d47a3849550a04a91c1491599a9
|
@@ -135,6 +135,12 @@ module CodeOwnership
|
|
135
135
|
# This will skip over lines that are not of the correct form
|
136
136
|
next if split_line.count > 2
|
137
137
|
entry, github_team = split_line
|
138
|
+
code_team = github_team_to_code_team_map[T.must(github_team)]
|
139
|
+
# If a GitHub team is changed and a user runs `bin/codeownership validate`, we won't be able to identify
|
140
|
+
# what team is associated with the removed github team.
|
141
|
+
# Therefore, if we can't determine the team, we just skip it.
|
142
|
+
# This affects how complete the cache is, but that will still be caught by `bin/codeownership validate`.
|
143
|
+
next if code_team.nil?
|
138
144
|
raw_cache_contents[current_mapper] ||= {}
|
139
145
|
raw_cache_contents.fetch(current_mapper)[T.must(entry)] = github_team_to_code_team_map.fetch(T.must(github_team))
|
140
146
|
end
|
@@ -92,7 +92,7 @@ module CodeOwnership
|
|
92
92
|
File.fnmatch?(owned_glob, file, File::FNM_PATHNAME | File::FNM_EXTGLOB)
|
93
93
|
end
|
94
94
|
|
95
|
-
in_unowned_globs = configuration.unowned_globs.
|
95
|
+
in_unowned_globs = configuration.unowned_globs.any? do |unowned_glob|
|
96
96
|
File.fnmatch?(unowned_glob, file, File::FNM_PATHNAME | File::FNM_EXTGLOB)
|
97
97
|
end
|
98
98
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_ownership
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.32.
|
4
|
+
version: 1.32.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gusto Engineers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: code_teams
|