Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: http to https in src & test #272

Merged
merged 1 commit into from Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/deployer.js
Expand Up @@ -41,7 +41,7 @@ module.exports = function(args) {
help += ' branch: [branch]\n';
help += ' message: [message]\n\n';
help += ' extend_dirs: [extend directory]\n\n';
help += 'For more help, you can check the docs: ' + underline('http://hexo.io/docs/deployment.html');
help += 'For more help, you can check the docs: ' + underline('https://hexo.io/docs/deployment.html');

console.log(help);
return;
Expand Down
8 changes: 4 additions & 4 deletions test/parse_config.js
Expand Up @@ -127,10 +127,10 @@ describe('parse config', () => {
// http
parseConfig({
repo: {
url: 'http://github.com/hexojs/hexojs.github.io.git',
url: 'https://github.com/hexojs/hexojs.github.io.git',
token: 'plain_text_token'
}
})[0].url.should.eql('http://plain_text_token@github.com/hexojs/hexojs.github.io.git');
})[0].url.should.eql('https://plain_text_token@github.com/hexojs/hexojs.github.io.git');

// token config for git scheme should be ignored
parseConfig({
Expand All @@ -147,10 +147,10 @@ describe('parse config', () => {
// http
parseConfig({
repo: {
url: 'http://github.com/hexojs/hexojs.github.io.git',
url: 'https://github.com/hexojs/hexojs.github.io.git',
token: '$GIT_TOKEN'
}
})[0].url.should.eql('http://env_token@github.com/hexojs/hexojs.github.io.git');
})[0].url.should.eql('https://env_token@github.com/hexojs/hexojs.github.io.git');

// token config for git scheme should be ignored
parseConfig({
Expand Down