Remove bolded context text
This commit is contained in:
@@ -57,7 +57,7 @@ jobs:
|
||||
expect(result).not.toBeUndefined();
|
||||
expect(result?.contents).toEqual(
|
||||
"Prevents a workflow run from failing when a job fails. Set to true to allow a workflow run to pass when this job fails.\n\n" +
|
||||
"**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`"
|
||||
"Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`"
|
||||
);
|
||||
});
|
||||
|
||||
@@ -154,7 +154,7 @@ jobs:
|
||||
|
||||
// The `ref` is a `string` definition and inherits the context from `step-with`
|
||||
const expected =
|
||||
"**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`";
|
||||
"Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`";
|
||||
expect(result?.contents).toEqual(expected);
|
||||
});
|
||||
});
|
||||
@@ -180,7 +180,7 @@ jobs:
|
||||
|
||||
const expected =
|
||||
"The branch, tag or SHA to checkout.\n\n" +
|
||||
"**Available expression contexts:** `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`";
|
||||
"Available expression contexts: `github`, `inputs`, `vars`, `needs`, `strategy`, `matrix`, `secrets`, `steps`, `job`, `runner`, `env`, `hashFiles(1,255)`";
|
||||
expect(result?.contents).toEqual(expected);
|
||||
});
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ function appendContext(description: string, allowedContext?: string[]) {
|
||||
return description;
|
||||
}
|
||||
|
||||
const contextDescription = `**Available expression contexts:** ${allowedContext.map(c => `\`${c}\``).join(", ")}`;
|
||||
const contextDescription = `Available expression contexts: ${allowedContext.map(c => `\`${c}\``).join(", ")}`;
|
||||
if (description.length == 0) {
|
||||
return contextDescription;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user