From 701bcd182b1b3afe2dbb930b334189ae36d04e43 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Fri, 6 Jul 2018 15:53:33 -0700 Subject: [PATCH] fix(gitlab docs): switched to lowercase anchors for readmes --- git-host-info.js | 1 - test/gitlab.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/git-host-info.js b/git-host-info.js index cb0bfa6..090a232 100644 --- a/git-host-info.js +++ b/git-host-info.js @@ -22,7 +22,6 @@ var gitHosts = module.exports = { 'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ], 'domain': 'gitlab.com', 'treepath': 'tree', - 'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#README', 'bugstemplate': 'https://{domain}/{user}/{project}/issues', 'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}' }, diff --git a/test/gitlab.js b/test/gitlab.js index 786d05f..7a5fda3 100644 --- a/test/gitlab.js +++ b/test/gitlab.js @@ -12,7 +12,7 @@ test('fromUrl(gitlab url)', function (t) { t.is(hostinfo.browse(), 'https://gitlab.com/111/222' + (branch ? '/tree/' + branch : ''), label + ' -> browse') t.is(hostinfo.browse('C'), 'https://gitlab.com/111/222/tree/' + (branch || 'master') + '/C', label + ' -> browse(path)') t.is(hostinfo.browse('C', 'A'), 'https://gitlab.com/111/222/tree/' + (branch || 'master') + '/C#a', label + ' -> browse(path, fragment)') - t.is(hostinfo.docs(), 'https://gitlab.com/111/222' + (branch ? '/tree/' + branch : '') + '#README', label + ' -> docs') + t.is(hostinfo.docs(), 'https://gitlab.com/111/222' + (branch ? '/tree/' + branch : '') + '#readme', label + ' -> docs') t.is(hostinfo.ssh(), 'git@gitlab.com:111/222.git' + hash, label + ' -> ssh') t.is(hostinfo.sshurl(), 'git+ssh://git@gitlab.com/111/222.git' + hash, label + ' -> sshurl') t.is(hostinfo.shortcut(), 'gitlab:111/222' + hash, label + ' -> shortcut')