Skip to content

Commit edc0640

Browse files
authored
fix(chore): correct the changelog format (#80)
now issue description will be visible GH-79
1 parent 2da3301 commit edc0640

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/release_notes/post-processing.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ module.exports = async function (data, callback) {
1111
commit.title = commitTitle.substring(0, commitTitle.indexOf('#') - 1);
1212

1313
commit.messageLines = commit.messageLines.filter(message => {
14-
if (message.indexOf('efs/remotes/origin') === -1) return message;
14+
if (message.indexOf('efs/') === -1) return message;
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)