From a0bee56fb009de42f8b4c712cfdd0fad6982fd47 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Mon, 17 Sep 2018 19:48:44 +0300 Subject: [PATCH] Add gitlab.com support (#282) Closes #281 --- lib/ui.js | 3 ++- readme.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ui.js b/lib/ui.js index cf5ce18a..d3af2a58 100644 --- a/lib/ui.js +++ b/lib/ui.js @@ -55,7 +55,8 @@ function printCommitLog(repositoryUrl) { module.exports = options => { const pkg = util.readPkg(); const oldVersion = pkg.version; - const repositoryUrl = pkg.repository && githubUrlFromGit(pkg.repository.url); + const extraBaseUrls = ['gitlab.com']; + const repositoryUrl = pkg.repository && githubUrlFromGit(pkg.repository.url, {extraBaseUrls}); console.log(`\nPublish a new version of ${chalk.bold.magenta(pkg.name)} ${chalk.dim(`(current: ${oldVersion})`)}\n`); diff --git a/readme.md b/readme.md index 8d82ee41..1bacbfe7 100644 --- a/readme.md +++ b/readme.md @@ -15,7 +15,7 @@ - Bumps the version in package.json and npm-shrinkwrap.json (if present) and creates a git tag - Prevents [accidental publishing](https://github.com/npm/npm/issues/13248) of pre-release versions under the `latest` [dist-tag](https://docs.npmjs.com/cli/dist-tag) - Publishes the new version to npm, optionally under a dist-tag -- Pushes commits and tags to GitHub +- Pushes commits and tags to GitHub/GitLab - Supports [two-factor authentication](https://docs.npmjs.com/getting-started/using-two-factor-authentication)