Skip to content

Commit 6d4efcb

Browse files
authored
fix: render usernames in github changelog (#265)
1 parent 46cd50c commit 6d4efcb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: src/commands/github.ts

+7
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ export async function githubRelease(
101101
() => undefined
102102
);
103103
}
104+
105+
// Transform body to be better rendered on Github releases
106+
release = {
107+
...release,
108+
body: release.body.replaceAll(/\(\[(@.+)\]\(.+\)\)/g, "($1)"),
109+
};
110+
104111
const result = await syncGithubRelease(config, release);
105112
if (result.status === "manual") {
106113
if (result.error) {

0 commit comments

Comments
 (0)