diff --git a/lib/get-git-auth-url.js b/lib/get-git-auth-url.js index 421d19d1..6f130bcb 100644 --- a/lib/get-git-auth-url.js +++ b/lib/get-git-auth-url.js @@ -44,7 +44,7 @@ module.exports = async ({cwd, env, branch, options: {repositoryUrl}}) => { const gitCredentials = `${GIT_TOKENS[envVar] || ''}${env[envVar] || ''}`; if (gitCredentials) { - // If credentials are set via anvironment variables, convert the URL to http/https and add basic auth, otherwise return `repositoryUrl` as is + // If credentials are set via environment variables, convert the URL to http/https and add basic auth, otherwise return `repositoryUrl` as is const [match, auth, host, path] = /^(?!.+:\/\/)(?:(.*)@)?(.*?):(.*)$/.exec(repositoryUrl) || []; return format({ ...parse(match ? `ssh://${auth ? `${auth}@` : ''}${host}/${path}` : repositoryUrl), diff --git a/lib/plugins/pipeline.js b/lib/plugins/pipeline.js index 4ed7f0cf..d36c8608 100644 --- a/lib/plugins/pipeline.js +++ b/lib/plugins/pipeline.js @@ -4,7 +4,7 @@ const AggregateError = require('aggregate-error'); const {extractErrors} = require('../utils'); /** - * A Function that execute a list of function sequencially. If at least one Function ins the pipeline throw an Error or rejects, the pipeline function rejects as well. + * A Function that execute a list of function sequencially. If at least one Function ins the pipeline throws an Error or rejects, the pipeline function rejects as well. * * @typedef {Function} Pipeline * @param {Any} input Argument to pass to the first step in the pipeline.