Skip to content

Commit

Permalink
fix(log-repo): use the original form of the repo url to remove the ne…
Browse files Browse the repository at this point in the history
…ed to mask credentials (semantic-release#2459)

fixes semantic-release#2449
  • Loading branch information
travi authored and adityahex27 committed Oct 31, 2022
1 parent 70d3560 commit a05a33b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -86,7 +86,7 @@ async function run(context, plugins) {
}

logger[options.dryRun ? 'warn' : 'success'](
`Run automated release from branch ${ciBranch} on repository ${options.repositoryUrl}${
`Run automated release from branch ${ciBranch} on repository ${options.originalRepositoryURL}${
options.dryRun ? ' in dry-run mode' : ''
}`
);
Expand Down Expand Up @@ -293,6 +293,7 @@ module.exports = async (cliOptions = {}, {cwd = process.cwd(), env = process.env
context.logger.log(`Running ${pkg.name} version ${pkg.version}`);
try {
const {plugins, options} = await getConfig(context, cliOptions);
options.originalRepositoryURL = options.repositoryUrl;
context.options = options;
try {
const result = await run(context, plugins);
Expand Down
1 change: 1 addition & 0 deletions test/index.test.js
Expand Up @@ -91,6 +91,7 @@ test('Plugins are called with expected values', async (t) => {
const config = {
branches: [{name: 'master'}, {name: 'next'}],
repositoryUrl,
originalRepositoryURL: repositoryUrl,
globalOpt: 'global',
tagFormat: `v\${version}`,
allowOutdatedBranch: false,
Expand Down

0 comments on commit a05a33b

Please sign in to comment.