Skip to content

Commit b1683a7

Browse files
authored
docs: fix typos (#3052)
1 parent f09e55f commit b1683a7

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

lib/branches/normalize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function release({ release }) {
6060
return release;
6161
}
6262

63-
// The intial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0)
63+
// The initial lastVersion is the last release from the base branch of `FIRST_RELEASE` (1.0.0)
6464
let lastVersion = getLatestVersion(tagsToVersions(release[0].tags)) || FIRST_RELEASE;
6565

6666
return release.map(({ name, tags, channel, ...rest }, idx) => {

lib/get-git-auth-url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function formatAuthUrl(protocol, repositoryUrl, gitCredentials) {
3636
* @param {Object} context semantic-release context.
3737
* @param {String} authUrl Repository URL to verify
3838
*
39-
* @return {String} The authUrl as is if the connection was successfull, null otherwise
39+
* @return {String} The authUrl as is if the connection was successful, null otherwise
4040
*/
4141
async function ensureValidAuthUrl({ cwd, env, branch }, authUrl) {
4242
try {

test/helpers/git-utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export async function gitCommits(messages, execaOptions) {
9898
/**
9999
* Get the list of parsed commits since a git reference.
100100
*
101-
* @param {String} [from] Git reference from which to seach commits.
101+
* @param {String} [from] Git reference from which to search commits.
102102
* @param {Object} [execaOpts] Options to pass to `execa`.
103103
*
104104
* @return {Array<Object>} The list of parsed commits.
@@ -240,7 +240,7 @@ export async function gitTagHead(tagName, execaOptions) {
240240
* Get the first commit sha referenced by the tag `tagName` in the remote repository.
241241
*
242242
* @param {String} repositoryUrl The repository remote URL.
243-
* @param {String} tagName The tag name to seach for.
243+
* @param {String} tagName The tag name to search for.
244244
* @param {Object} [execaOpts] Options to pass to `execa`.
245245
*
246246
* @return {String} The sha of the commit associated with `tagName` on the remote repository.

test/hide-sensitive.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test("Replace multiple sensitive environment variable values", (t) => {
1111
);
1212
});
1313

14-
test("Replace multiple occurences of sensitive environment variable values", (t) => {
14+
test("Replace multiple occurrences of sensitive environment variable values", (t) => {
1515
const env = { secretKey: "secret" };
1616
t.is(
1717
hideSensitive(env)(`https://user:${env.secretKey}@host.com?token=${env.secretKey}`),

test/plugins/normalize.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ test("Normalize and load plugin from function", async (t) => {
9696
t.is(typeof plugin, "function");
9797
});
9898

99-
test("Normalize and load plugin that retuns multiple functions", async (t) => {
99+
test("Normalize and load plugin that returns multiple functions", async (t) => {
100100
const plugin = await normalize(
101101
{ cwd, options: {}, logger: t.context.logger },
102102
"verifyConditions",

test/plugins/utils.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test("validateStep: optional plugin configuration", (t) => {
5252
t.true(validateStep(type, { path: () => {}, options: "value" }));
5353
t.false(validateStep(type, { path: null }));
5454

55-
// Considered as an Array of 2 definitions and not as one Array definition in case of a muliple plugin type
55+
// Considered as an Array of 2 definitions and not as one Array definition in case of a multiple plugin type
5656
t.false(validateStep(type, [() => {}, { options: "value" }]));
5757
t.false(validateStep(type, ["plugin-path.js", { options: "value" }]));
5858

@@ -134,7 +134,7 @@ test("validateStep: required plugin configuration", (t) => {
134134
t.true(validateStep(type, { path: () => {}, options: "value" }));
135135
t.false(validateStep(type, { path: null }));
136136

137-
// Considered as an Array of 2 definitions and not as one Array definition in the case of a muliple plugin type
137+
// Considered as an Array of 2 definitions and not as one Array definition in the case of a multiple plugin type
138138
t.false(validateStep(type, [() => {}, { options: "value" }]));
139139
t.false(validateStep(type, ["plugin-path.js", { options: "value" }]));
140140

0 commit comments

Comments
 (0)