We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75cb258 commit 346f989Copy full SHA for 346f989
src/domain/getLabelConfigs.ts
@@ -20,9 +20,8 @@ const getFilePath = (configurationPath: string): string | undefined => {
20
)
21
return
22
}
23
- const files = allFiles.filter((elem) =>
24
- jsonTypes.map((elem) => `auto-label.${elem}`).includes(elem)
25
- )
+ const expectedFilenames = jsonTypes.map((type) => `auto-label.${type}`);
+ const files = allFiles.filter((filename) => expectedFilenames.includes(filename));
26
if (!files.length) return
27
return `${repoPath}/${files[0]}`.replace('//', '/')
28
0 commit comments