code_ownership 1.32.6 → 1.32.7

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: 51a1c1b52a35af9d0c7c7a48101ccd18cd120577bfd038ce83e6552e8b40e878
4
- data.tar.gz: dc7ed2634d7adf107d59b4a4d9480429894e168b203c9ddc12767743ba52e12e
3
+ metadata.gz: 76d700471a2e895926f184939c856b08ac75d5240a0d924a8e4474ac733a7204
4
+ data.tar.gz: 3b62947009df98089b522614022643762c4c51d82af4f90f957606bcedfe60bc
5
5
  SHA512:
6
- metadata.gz: 0aa8dd88901d526386ea1f3aae175f013e32e77cbfe7e36b2113ea8c3efccc4e8950f12f09bb01f9b3756a8de9cbe03ae470eee8de5a8bf64d599e8dab1eebf1
7
- data.tar.gz: be6d7103274d1c628db0d28d1497b62364b5998540ba5e69bcd6ba0d9c2a5d5f834fe3b7aaa70654db7cfb9bbbd3af88c3c1ac9b055de0cf8475d1a9971f1435
6
+ metadata.gz: df833467c3721e6b7d67aebd0732d59c46073589210251bd0859cb05979103741876264dd336df10401005360bca7a2937c65e861044b22abd698a2b8b65a20d
7
+ data.tar.gz: 1b8f489aa18295cd8c534f3d5bcb3e2ab569553f26ec7e5a9445faff90da3aee3860bd3d7a02d6e91b80815d65b96680b0f54b085770ba85a54efa13aa0109b1
@@ -56,14 +56,15 @@ module CodeOwnership
56
56
  ownership_map_cache.each do |path, code_team|
57
57
  team_mapping = github_team_map[code_team.name]
58
58
  next if team_mapping.nil?
59
- next if ignored_teams.include?(code_team.name)
60
- entry = "/#{path} #{team_mapping}"
61
- # In order to use the codeowners file as a proper cache, we'll need to insert commented out entries for ignored teams
62
- # entry = if ignored_teams.include?(code_team.name)
63
- # "# /#{path} #{team_mapping}"
64
- # else
65
- # "/#{path} #{team_mapping}"
66
- # end
59
+
60
+ # Leaving a commented out entry has two major benefits:
61
+ # 1) It allows the CODEOWNERS file to be used as a cache for validations
62
+ # 2) It allows users to specifically see what their team will not be notified about.
63
+ entry = if ignored_teams.include?(code_team.name)
64
+ "# /#{path} #{team_mapping}"
65
+ else
66
+ "/#{path} #{team_mapping}"
67
+ end
67
68
  ownership_entries << entry
68
69
  end
69
70
 
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.6
4
+ version: 1.32.7
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-10 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_teams