virtual-code-owners 7.0.3 → 8.0.0

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.
package/README.md CHANGED
@@ -202,6 +202,15 @@ npx virtual-code-owners --emitLabeler
202
202
  If you have an alternate file location for the `labeler.yml` you can specify that
203
203
  with virtual-code-owner's `--labelerLocation` parameter.
204
204
 
205
+ > [!NOTE]
206
+ > actions/labeler changed the labeler.yml format from v4 to v5.
207
+ >
208
+ > - virtual-code-owners < 8.0.0 generates labeler.yml v4 format,
209
+ > - virtual-code-owners >= 8.0.0 generates labeler.yml v5 format.
210
+ >
211
+ > see [actions/labeler#v5](https://github.com/actions/labeler/blob/8558fd74291d67161a8a78ce36a881fa63b766a9/README.md)
212
+ > for details on the v5 format.
213
+
205
214
  ### What validations does virtual-code-owners perform?
206
215
 
207
216
  virtual-code-owners checks for basic CODEOWNERS format errors and invalid
@@ -17,10 +17,15 @@ export default function generateLabelerYml(
17
17
  let lReturnValue = pGeneratedWarning;
18
18
  for (const lTeamName in pTeamMap) {
19
19
  const lPatternsForTeam = getPatternsForTeam(pCodeOwners, lTeamName)
20
- .map((pPattern) => ` - ${transformForYamlAndMinimatch(pPattern)}${EOL}`)
20
+ .map(
21
+ (pPattern) =>
22
+ ` - any-glob-to-any-file: ${transformForYamlAndMinimatch(
23
+ pPattern,
24
+ )}${EOL}`,
25
+ )
21
26
  .join("");
22
27
  if (lPatternsForTeam) {
23
- lReturnValue += `${lTeamName}:${EOL}${lPatternsForTeam}${EOL}`;
28
+ lReturnValue += `${lTeamName}:${EOL} - changed-files:${EOL}${lPatternsForTeam}${EOL}`;
24
29
  }
25
30
  }
26
31
  return lReturnValue;
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "7.0.3";
1
+ export const VERSION = "8.0.0";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "virtual-code-owners",
3
- "version": "7.0.3",
4
- "description": "Makes your CODEOWNERS file liveable again",
3
+ "version": "8.0.0",
4
+ "description": "CODEOWNERS for teams that can't use GitHub teams",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "virtual-code-owners": "dist/run-cli.js"