Skip to content

Commit 872b3cb

Browse files
committed
Fix script
1 parent 54050e2 commit 872b3cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev-tools/src/create-change-log.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ interface PullRequest {
2424
body: string
2525
user: {
2626
login: string,
27-
avatar_url: "https://avatars.githubusercontent.com/u/233559?v=4",
28-
url: "https://api.github.com/users/kyuridenamida",
27+
avatar_url: string;
28+
html_url: string;
2929
},
3030
merged_at: string,
3131
milestone: {
@@ -147,7 +147,7 @@ const createChangelog = async (latestVersion: string, changelogMdPath: string) =
147147

148148

149149
pullRequests.forEach(pr => {
150-
if (pr.labels.find((label) => label.name == "Release") !== undefined) {
150+
if (pr.labels.find((label) => label.name === "release") !== undefined) {
151151
// Exclude Release PRs because they are useless to show
152152
return;
153153
}
@@ -157,7 +157,7 @@ const createChangelog = async (latestVersion: string, changelogMdPath: string) =
157157
`[#${pr.number}](${pr.html_url})`,
158158
`${pr.title}`.replace(/\|/g, " "),
159159
labels.join("<br/>") || " ",
160-
`[${pr.user.login}](${pr.user.url})`
160+
`[${pr.user.login}](${pr.user.html_url})`
161161
];
162162
changeLogMarkdownLines.push(`|${columns.join("|")}|`);
163163
});

0 commit comments

Comments
 (0)