Skip to content

Commit

Permalink
fix(chore): correct the changelog format (#69)
Browse files Browse the repository at this point in the history
* fix(chore): correct the changelog format

now issue description will be visible

GH-68

* chore(deps): upgrading the packages version

upgraded helmet and cookiejar

GH-68
  • Loading branch information
yeshamavani authored Feb 20, 2023
1 parent 17d4b8d commit d71c98a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@loopback/context": "^5.0.8",
"@loopback/core": "^4.0.8",
"@loopback/rest": "^12.0.8",
"helmet": "^5.1.0"
"helmet": "^5.1.1"
},
"devDependencies": {
"@commitlint/cli": "^16.2.3",
Expand Down
6 changes: 4 additions & 2 deletions src/release_notes/post-processing.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ module.exports = async function (data, callback) {
});

commit.messageLines.forEach((message) => {
commit.issueno = message.includes('GH-') ? message.slice(3) : null;
commit.issueno = message.includes('GH-')
? message.replace('GH-', '').trim()
: null;
});

const issueDesc = await getIssueDesc(commit.issueno).then((res) => {
Expand Down Expand Up @@ -59,7 +61,7 @@ function getIssueDesc(issueNo) {
);
let issueTitle = '';
for (const ele of title) {
if (ele.nodeName === 'SPAN') {
if (ele.nodeName === 'BDI') {
issueTitle = ele.innerHTML;
}
}
Expand Down

0 comments on commit d71c98a

Please sign in to comment.