From 6caaf8622c5e9b9dac7b8f3a7218b6d110239bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Ate=C5=9F=20Uzun?= Date: Tue, 29 Aug 2023 22:42:13 +0300 Subject: [PATCH 1/3] chore: fix readme.md self link (#212) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e8bfd3df..498e3d28 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ eg, `github:npm/hosted-git-info` eg, `https://github.com/npm/hosted-git-info/tree/v1.2.0`, `https://github.com/npm/hosted-git-info/tree/v1.2.0/package.json`, -`https://github.com/npm/hosted-git-info/tree/v1.2.0/REAMDE.md#supported-hosts` +`https://github.com/npm/hosted-git-info/tree/v1.2.0/README.md#supported-hosts` * info.bugs(opts) From d7bac33726d6a65788d16e3314f52449f0da58c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlad-=C8=98tefan=20Harbuz?= <291640+vladh@users.noreply.github.com> Date: Wed, 13 Sep 2023 15:20:11 +0100 Subject: [PATCH 2/3] fix: remove sourcehut bugstemplate (#213) Currently, using https://git.sr.ht/~user/repo in `npm init` results in the package.json file having a `bugs` URL of https://todo.sr.ht/~user/repo. However, this is not how SourceHut works. An issue tracker need not exist at that URL, and often projects have issue trackers that are named differently from the repository. Therefore, no information can be inferred about the issue tracker from the git URL. --- lib/hosts.js | 3 +-- test/sourcehut.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/hosts.js b/lib/hosts.js index 013712b7..6dac685f 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 a0531147..b6719f87 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' }), From 2a295d3a0b49967dd16d49313808ddacb82d17c9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:21:08 +0000 Subject: [PATCH 3/3] chore: release 7.0.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 6 ++++++ package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index aeda91d8..9995fe5e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "7.0.0" + ".": "7.0.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 89069348..33e2f796 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [7.0.1](https://github.com/npm/hosted-git-info/compare/v7.0.0...v7.0.1) (2023-09-13) + +### Bug Fixes + +* [`d7bac33`](https://github.com/npm/hosted-git-info/commit/d7bac33726d6a65788d16e3314f52449f0da58c4) [#213](https://github.com/npm/hosted-git-info/pull/213) remove sourcehut bugstemplate (#213) (@vladh) + ## [7.0.0](https://github.com/npm/hosted-git-info/compare/v6.1.1...v7.0.0) (2023-08-14) ### ⚠️ BREAKING CHANGES diff --git a/package.json b/package.json index 262a6c20..c2e31fa5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hosted-git-info", - "version": "7.0.0", + "version": "7.0.1", "description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab", "main": "./lib/index.js", "repository": {