Skip to content

Commit

Permalink
style(generate-labeler-yml): small touch ups in copy & code style
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Aug 6, 2023
1 parent b47308b commit 286b5bd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/generate-labeler-yml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ function getPatternsForTeam(
return (
pCodeOwners
.filter((pLine) => {
const isARule = pLine.type === "rule";
return (
isARule &&
pLine.type === "rule" &&
lineContainsTeamName(pLine as IInterestingCSTLine, pTeamName)
);
})
Expand All @@ -57,8 +56,8 @@ function transformForYamlAndMinimatch(pOriginalString: string): string {
let lReturnValue = pOriginalString;

// as documented in CODEOWNERS "*" means all files
// similarly in minimatch "*" means all files _in the root folder only_
// all files over there is "**" so ...
// in minimatch "*" means all files _in the root folder only_; all files over
// there is "**" so ...
if (pOriginalString === "*") {
lReturnValue = "**";
}
Expand Down

0 comments on commit 286b5bd

Please sign in to comment.