diff --git a/lib/hosts.js b/lib/hosts.js index 013712b..6dac685 100644 --- a/lib/hosts.js +++ b/lib/hosts.js @@ -199,8 +199,7 @@ hosts.sourcehut = { `https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`, tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'HEAD'}.tar.gz`, - bugstemplate: ({ user, project }) => - `https://todo.sr.ht/${user}/${project}`, + bugstemplate: ({ user, project }) => null, extract: (url) => { let [, user, project, aux] = url.pathname.split('/', 4) diff --git a/test/sourcehut.js b/test/sourcehut.js index a053114..b6719f8 100644 --- a/test/sourcehut.js +++ b/test/sourcehut.js @@ -106,7 +106,7 @@ t.test('string methods populate correctly', t => { t.equal(parsed.tarball(), 'https://git.sr.ht/~foo/bar/archive/HEAD.tar.gz') t.equal(parsed.file(), 'https://git.sr.ht/~foo/bar/blob/HEAD/') t.equal(parsed.file('/lib/index.js'), 'https://git.sr.ht/~foo/bar/blob/HEAD/lib/index.js') - t.equal(parsed.bugs(), 'https://todo.sr.ht/~foo/bar') + t.equal(parsed.bugs(), null) t.equal( parsed.docs({ committish: 'fix/bug' }),