Tweak wording of message

This commit is contained in:
Henry Mercer 2022-04-28 14:12:05 +01:00
parent 0256599547
commit 5227afabbe
6 changed files with 10 additions and 10 deletions

6
lib/util.js generated
View file

@ -612,9 +612,9 @@ async function checkActionVersion(version) {
githubVersion.type === GitHubVariant.GHAE ||
(githubVersion.type === GitHubVariant.GHES &&
semver.satisfies((_a = semver.coerce(githubVersion.version)) !== null && _a !== void 0 ? _a : "0.0.0", ">=3.4"))) {
core.warning("CodeQL Action version 1 will be deprecated on December 7th, 2022. Please upgrade to " +
"version 2. For more information, see " +
"https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/.");
core.warning("CodeQL Action v1 will be deprecated on December 7th, 2022. Please upgrade to v2. For " +
"more information, see " +
"https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/");
}
}
}

File diff suppressed because one or more lines are too long

2
lib/util.test.js generated
View file

@ -307,7 +307,7 @@ for (const [version, githubVersion, shouldReportWarning,] of CHECK_ACTION_VERSIO
const isActionsStub = sinon.stub(util, "isActions").returns(true);
await util.checkActionVersion(version);
if (shouldReportWarning) {
t.true(warningSpy.calledOnceWithExactly(sinon.match("CodeQL Action version 1 will be deprecated")));
t.true(warningSpy.calledOnceWithExactly(sinon.match("CodeQL Action v1 will be deprecated")));
}
else {
t.false(warningSpy.called);

File diff suppressed because one or more lines are too long

View file

@ -429,7 +429,7 @@ for (const [
if (shouldReportWarning) {
t.true(
warningSpy.calledOnceWithExactly(
sinon.match("CodeQL Action version 1 will be deprecated")
sinon.match("CodeQL Action v1 will be deprecated")
)
);
} else {

View file

@ -731,9 +731,9 @@ export async function checkActionVersion(version: string) {
))
) {
core.warning(
"CodeQL Action version 1 will be deprecated on December 7th, 2022. Please upgrade to " +
"version 2. For more information, see " +
"https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/."
"CodeQL Action v1 will be deprecated on December 7th, 2022. Please upgrade to v2. For " +
"more information, see " +
"https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/"
);
}
}