Always log when combining queries is disabled in the repo properties

This commit is contained in:
Michael B. Gale
2025-09-23 09:49:29 +01:00
parent 54bbe822cc
commit 5a4aa83242
2 changed files with 7 additions and 12 deletions

View File

@@ -2,7 +2,6 @@ import * as path from "path";
import * as semver from "semver";
import { isDefaultSetup } from "../actions-util";
import * as errorMessages from "../error-messages";
import {
RepositoryProperties,
@@ -392,12 +391,10 @@ function combineQueries(
// settings. If they don't allow combining with other query configurations, return just the
// ones configured in the repository properties.
if (!augmentationProperties.repoPropertyQueries.combines) {
if (!isDefaultSetup()) {
logger.info(
`Queries are configured in the repository properties and don't allow combining with other query settings. ` +
`Any queries configured elsewhere will be ignored.`,
);
}
logger.info(
`The queries configured in the repository properties don't allow combining with other query settings. ` +
`Any queries configured elsewhere will be ignored.`,
);
return augmentationProperties.repoPropertyQueries.input;
} else {
// Otherwise, add them to the query array and continue.