Merge branch 'main' into update-supported-enterprise-server-versions
This commit is contained in:
commit
c592f89989
9 changed files with 9 additions and 9 deletions
|
|
@ -858,7 +858,7 @@ export async function isAnalyzingDefaultBranch(): Promise<boolean> {
|
|||
// Get the current ref and trim and refs/heads/ prefix
|
||||
let currentRef = await getRef();
|
||||
currentRef = currentRef.startsWith("refs/heads/")
|
||||
? currentRef.substr("refs/heads/".length)
|
||||
? currentRef.slice("refs/heads/".length)
|
||||
: currentRef;
|
||||
|
||||
const event = getWorkflowEvent();
|
||||
|
|
|
|||
|
|
@ -849,7 +849,7 @@ async function addQueriesAndPacksFromWorkflow(
|
|||
// should instead be added in addition
|
||||
function shouldAddConfigFileQueries(queriesInput: string | undefined): boolean {
|
||||
if (queriesInput) {
|
||||
return queriesInput.trimStart().substr(0, 1) === "+";
|
||||
return queriesInput.trimStart().slice(0, 1) === "+";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ async function sendSuccessStatusReport(
|
|||
}
|
||||
if (queriesInput !== undefined) {
|
||||
queriesInput = queriesInput.startsWith("+")
|
||||
? queriesInput.substr(1)
|
||||
? queriesInput.slice(1)
|
||||
: queriesInput;
|
||||
queries.push(...queriesInput.split(","));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue