Skip to content

Commit

Permalink
fix(ci): fallthrough case
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Feb 9, 2025
1 parent 582b3b8 commit 2c4f30c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/workflowFunctions/validateTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ enum ConflictType {
NoWhiteSpace,
NameNotInKeywords,
Status404Link,
NameLowercase
NameLowercase,
}

type Conflict = {
Expand Down Expand Up @@ -128,7 +128,7 @@ export async function validateTags(
secondName: '',
conflictKeyWords: [],
type: ConflictType.NameLowercase,
})
});
}

if (tag.keywords.some((keyword) => !keyword.replaceAll(/\s+/g, '').length)) {
Expand Down Expand Up @@ -213,6 +213,7 @@ export async function validateTags(
break;
case ConflictType.Status404Link:
a.status404LinkConflicts.push(conflict);
break;
case ConflictType.NameLowercase:
a.nameLowercaseConflicts.push(conflict);
}
Expand Down Expand Up @@ -265,7 +266,7 @@ export async function validateTags(
`Tag validation error: Tag name has to be lowercase:\n${nameLowercaseConflicts
.map((conflict, index) => kleur.red(`${index}. [${conflict.firstName}]`))
.join('\n')}`,
)
);
}

if (emptyKeywordConflicts.length) {
Expand Down

0 comments on commit 2c4f30c

Please sign in to comment.