1
0
mirror of https://github.com/actions/labeler synced 2026-05-05 11:17:48 +02:00

Update comments in getMatchConfigs to represent updated types

This commit is contained in:
Josh Dales
2023-03-18 15:04:24 -04:00
parent e939550344
commit 51b763cbf2

View File

@@ -106,10 +106,10 @@ async function getMatchConfigs(
configurationPath
);
// loads (hopefully) a `{[label:string]: string | StringOrMatchConfig[]}`, but is `any`:
// loads (hopefully) a `{[label:string]: MatchConfig[]}`, but is `any`:
const configObject: any = yaml.load(configurationContent);
// transform `any` => `Map<string,StringOrMatchConfig[]>` or throw if yaml is malformed:
// transform `any` => `Map<string,MatchConfig[]>` or throw if yaml is malformed:
return getLabelConfigMapFromObject(configObject);
}