fix(dev-infra): handle no caretaker config being defined (#38862)
Properly handle cases where no caretaker config is provided to ng-dev commands PR Close #38862
This commit is contained in:
parent
5614258cc7
commit
722699fb0c
@ -13,15 +13,9 @@ import {GitClient} from '../../utils/git';
|
|||||||
import {CaretakerConfig} from '../config';
|
import {CaretakerConfig} from '../config';
|
||||||
|
|
||||||
|
|
||||||
interface GithubInfoQuery {
|
|
||||||
[key: string]: {
|
|
||||||
issueCount: number,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Retrieve the number of matching issues for each github query. */
|
/** Retrieve the number of matching issues for each github query. */
|
||||||
export async function printGithubTasks(git: GitClient, config: CaretakerConfig) {
|
export async function printGithubTasks(git: GitClient, config?: CaretakerConfig) {
|
||||||
if (!config.githubQueries?.length) {
|
if (!config?.githubQueries?.length) {
|
||||||
debug('No github queries defined in the configuration, skipping.');
|
debug('No github queries defined in the configuration, skipping.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user