Skip to content

Commit 3e3d492

Browse files
authored
fix(chore): correct the changelog format (#49)
now issue description will be visible GH-48
1 parent 8843537 commit 3e3d492

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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)