Skip to content

Commit

Permalink
Migrate to git-url-parse v12
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jul 25, 2022
1 parent 322ef9a commit 41aad00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -65,7 +65,7 @@
"cosmiconfig": "7.0.1",
"execa": "6.1.0",
"form-data": "4.0.0",
"git-url-parse": "11.6.0",
"git-url-parse": "12.0.0",
"globby": "13.1.2",
"got": "12.1.0",
"inquirer": "9.0.2",
Expand Down
8 changes: 4 additions & 4 deletions test/github.js
Expand Up @@ -13,7 +13,7 @@ import {
} from './stub/github.js';

const tokenRef = 'GITHUB_TOKEN';
const pushRepo = 'git://github.com:user/repo';
const pushRepo = 'git://github.com/user/repo';
const host = 'github.com';
const git = { changelog: '' };
const requestErrorOptions = { request: { url: '', headers: {} }, response: { headers: {} } };
Expand Down Expand Up @@ -198,7 +198,7 @@ test('should create new release for unreleased tag', async t => {
});

test('should release to enterprise host', async t => {
const options = { git, github: { tokenRef, pushRepo: 'git://github.example.org:user/repo' } };
const options = { git, github: { tokenRef, pushRepo: 'git://github.example.org/user/repo' } };
const github = factory(GitHub, { options });
const exec = sinon.stub(github.shell, 'exec').callThrough();
exec.withArgs('git remote get-url origin').resolves(`https://github.example.org/user/repo`);
Expand Down Expand Up @@ -227,7 +227,7 @@ test('should release to alternative host and proxy', async t => {
git,
github: {
tokenRef,
pushRepo: `git://custom.example.org:user/repo`,
pushRepo: `git://custom.example.org/user/repo`,
host: 'custom.example.org',
proxy: 'http://proxy:8080'
}
Expand Down Expand Up @@ -402,7 +402,7 @@ test('should generate GitHub web release url for enterprise host', async t => {
const options = {
git,
github: {
pushRepo: 'git://custom.example.org:user/repo',
pushRepo: 'git@custom.example.org:user/repo',
release: true,
web: true,
host: 'custom.example.org',
Expand Down

0 comments on commit 41aad00

Please sign in to comment.