Skip to content

Commit 1d67963

Browse files
committed
fix: repository load in sha256 line in correct url
1 parent cff6fa6 commit 1d67963

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/changelog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const setBasic = (commit: Commit, config: GeneriOptions) => {
4848
result = commit.summary;
4949
}
5050

51-
const sha = config?.repository
51+
const sha = config?.repository && config?.repository !== 'https:'
5252
? ` - [[${commit.sha}](${config.repository}/commit/${commit.sha})]`
5353
: '';
5454

src/defines/generi-default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"repository": "https",
2+
"repository": "https:",
33
"silent": false,
44
"commits": "none",
55
"tag": true,

src/git.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { glob } from 'tinyglobby';
66
import type {
77
Commit,
88
GeneriConsole,
9-
GeneriOptions,
109
GitNewTag,
1110
GitPrerelease,
1211
Root,
@@ -161,7 +160,6 @@ export const setTag = (target: string, console: GeneriConsole) => {
161160

162161
if (tags.stdout?.includes(target)) {
163162
console.error('Tag already exists!');
164-
return;
165163
}
166164

167165
const tag = execa.sync('git', ['tag', target]);

0 commit comments

Comments
 (0)