mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 03:58:05 +00:00
Update comments in getMatchConfigs to represent updated types
This commit is contained in:
@@ -106,10 +106,10 @@ async function getMatchConfigs(
|
|||||||
configurationPath
|
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);
|
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);
|
return getLabelConfigMapFromObject(configObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user