Skip to content

Commit 2425a47

Browse files
authored
fix(chore): corrected the issue number (#124)
now will show correct issue description as well GH-123
1 parent e9655ea commit 2425a47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/release_notes/post-processing.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ module.exports = async function (data, callback) {
1515
});
1616

1717
commit.messageLines.forEach((message) => {
18-
commit.issueno = message.includes('GH-') ? message.slice(3) : null;
18+
commit.issueno = message.includes('GH-')
19+
? message.replace('GH-', '').trim()
20+
: null;
1921
});
2022

2123
const issueDesc = await getIssueDesc(commit.issueno).then((res) => {
@@ -59,7 +61,7 @@ function getIssueDesc(issueNo) {
5961
);
6062
let issueTitle = '';
6163
for (const ele of title) {
62-
if (ele.nodeName === 'SPAN') {
64+
if (ele.nodeName === 'BDI') {
6365
issueTitle = ele.innerHTML;
6466
}
6567
}

0 commit comments

Comments
 (0)