docs: fix typos (#3052)
This commit is contained in:
parent
f09e55f39f
commit
b1683a7b4d
@ -60,7 +60,7 @@ export function release({ release }) {
|
||||
return release;
|
||||
}
|
||||
|
||||
// The intial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0)
|
||||
// The initial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0)
|
||||
let lastVersion = getLatestVersion(tagsToVersions(release[0].tags)) || FIRST_RELEASE;
|
||||
|
||||
return release.map(({ name, tags, channel, ...rest }, idx) => {
|
||||
|
@ -36,7 +36,7 @@ function formatAuthUrl(protocol, repositoryUrl, gitCredentials) {
|
||||
* @param {Object} context semantic-release context.
|
||||
* @param {String} authUrl Repository URL to verify
|
||||
*
|
||||
* @return {String} The authUrl as is if the connection was successfull, null otherwise
|
||||
* @return {String} The authUrl as is if the connection was successful, null otherwise
|
||||
*/
|
||||
async function ensureValidAuthUrl({ cwd, env, branch }, authUrl) {
|
||||
try {
|
||||
|
@ -98,7 +98,7 @@ export async function gitCommits(messages, execaOptions) {
|
||||
/**
|
||||
* Get the list of parsed commits since a git reference.
|
||||
*
|
||||
* @param {String} [from] Git reference from which to seach commits.
|
||||
* @param {String} [from] Git reference from which to search commits.
|
||||
* @param {Object} [execaOpts] Options to pass to `execa`.
|
||||
*
|
||||
* @return {Array<Object>} The list of parsed commits.
|
||||
@ -240,7 +240,7 @@ export async function gitTagHead(tagName, execaOptions) {
|
||||
* Get the first commit sha referenced by the tag `tagName` in the remote repository.
|
||||
*
|
||||
* @param {String} repositoryUrl The repository remote URL.
|
||||
* @param {String} tagName The tag name to seach for.
|
||||
* @param {String} tagName The tag name to search for.
|
||||
* @param {Object} [execaOpts] Options to pass to `execa`.
|
||||
*
|
||||
* @return {String} The sha of the commit associated with `tagName` on the remote repository.
|
||||
|
@ -11,7 +11,7 @@ test("Replace multiple sensitive environment variable values", (t) => {
|
||||
);
|
||||
});
|
||||
|
||||
test("Replace multiple occurences of sensitive environment variable values", (t) => {
|
||||
test("Replace multiple occurrences of sensitive environment variable values", (t) => {
|
||||
const env = { secretKey: "secret" };
|
||||
t.is(
|
||||
hideSensitive(env)(`https://user:${env.secretKey}@host.com?token=${env.secretKey}`),
|
||||
|
@ -96,7 +96,7 @@ test("Normalize and load plugin from function", async (t) => {
|
||||
t.is(typeof plugin, "function");
|
||||
});
|
||||
|
||||
test("Normalize and load plugin that retuns multiple functions", async (t) => {
|
||||
test("Normalize and load plugin that returns multiple functions", async (t) => {
|
||||
const plugin = await normalize(
|
||||
{ cwd, options: {}, logger: t.context.logger },
|
||||
"verifyConditions",
|
||||
|
@ -52,7 +52,7 @@ test("validateStep: optional plugin configuration", (t) => {
|
||||
t.true(validateStep(type, { path: () => {}, options: "value" }));
|
||||
t.false(validateStep(type, { path: null }));
|
||||
|
||||
// Considered as an Array of 2 definitions and not as one Array definition in case of a muliple plugin type
|
||||
// Considered as an Array of 2 definitions and not as one Array definition in case of a multiple plugin type
|
||||
t.false(validateStep(type, [() => {}, { options: "value" }]));
|
||||
t.false(validateStep(type, ["plugin-path.js", { options: "value" }]));
|
||||
|
||||
@ -134,7 +134,7 @@ test("validateStep: required plugin configuration", (t) => {
|
||||
t.true(validateStep(type, { path: () => {}, options: "value" }));
|
||||
t.false(validateStep(type, { path: null }));
|
||||
|
||||
// Considered as an Array of 2 definitions and not as one Array definition in the case of a muliple plugin type
|
||||
// Considered as an Array of 2 definitions and not as one Array definition in the case of a multiple plugin type
|
||||
t.false(validateStep(type, [() => {}, { options: "value" }]));
|
||||
t.false(validateStep(type, ["plugin-path.js", { options: "value" }]));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user