docs: fix typos (#3052)

This commit is contained in:
xiaolou86 2023-11-09 13:56:53 +08:00 committed by GitHub
parent f09e55f39f
commit b1683a7b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View File

@ -60,7 +60,7 @@ export function release({ release }) {
return 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; let lastVersion = getLatestVersion(tagsToVersions(release[0].tags)) || FIRST_RELEASE;
return release.map(({ name, tags, channel, ...rest }, idx) => { return release.map(({ name, tags, channel, ...rest }, idx) => {

View File

@ -36,7 +36,7 @@ function formatAuthUrl(protocol, repositoryUrl, gitCredentials) {
* @param {Object} context semantic-release context. * @param {Object} context semantic-release context.
* @param {String} authUrl Repository URL to verify * @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) { async function ensureValidAuthUrl({ cwd, env, branch }, authUrl) {
try { try {

View File

@ -98,7 +98,7 @@ export async function gitCommits(messages, execaOptions) {
/** /**
* Get the list of parsed commits since a git reference. * 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`. * @param {Object} [execaOpts] Options to pass to `execa`.
* *
* @return {Array<Object>} The list of parsed commits. * @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. * Get the first commit sha referenced by the tag `tagName` in the remote repository.
* *
* @param {String} repositoryUrl The repository remote URL. * @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`. * @param {Object} [execaOpts] Options to pass to `execa`.
* *
* @return {String} The sha of the commit associated with `tagName` on the remote repository. * @return {String} The sha of the commit associated with `tagName` on the remote repository.

View File

@ -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" }; const env = { secretKey: "secret" };
t.is( t.is(
hideSensitive(env)(`https://user:${env.secretKey}@host.com?token=${env.secretKey}`), hideSensitive(env)(`https://user:${env.secretKey}@host.com?token=${env.secretKey}`),

View File

@ -96,7 +96,7 @@ test("Normalize and load plugin from function", async (t) => {
t.is(typeof plugin, "function"); 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( const plugin = await normalize(
{ cwd, options: {}, logger: t.context.logger }, { cwd, options: {}, logger: t.context.logger },
"verifyConditions", "verifyConditions",

View File

@ -52,7 +52,7 @@ test("validateStep: optional plugin configuration", (t) => {
t.true(validateStep(type, { path: () => {}, options: "value" })); t.true(validateStep(type, { path: () => {}, options: "value" }));
t.false(validateStep(type, { path: null })); 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, [() => {}, { options: "value" }]));
t.false(validateStep(type, ["plugin-path.js", { 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.true(validateStep(type, { path: () => {}, options: "value" }));
t.false(validateStep(type, { path: null })); 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, [() => {}, { options: "value" }]));
t.false(validateStep(type, ["plugin-path.js", { options: "value" }])); t.false(validateStep(type, ["plugin-path.js", { options: "value" }]));