Skip to content

Commit 3007f5f

Browse files
committed
fix: add whitespace after cveId
1 parent 000d25e commit 3007f5f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

commit-to-output.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function toStringPlaintext (data) {
4141
let s = ''
4242

4343
if (data.cveId) {
44-
s += `(${data.cveId})`
44+
s += `(${data.cveId}) `
4545
}
4646

4747
s += (data.semver || []).length ? `(${data.semver.join(', ').toUpperCase()}) ` : ''

test.js

+10
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,13 @@ test('test conventionalcommit style', (t) => {
169169
`)
170170
t.end()
171171
})
172+
173+
test('test plaintext, CVE-ID', (t) => {
174+
const out = exec('--start-ref=43d428b3d2 --end-ref=43d428b3d2 --group --filter-release --plaintext')
175+
t.equal(
176+
out,
177+
`feat:
178+
* (CVE-2024-22020) add cveId support to commmit output (RafaelGSS) https://github.com/nodejs/node/pull/55819
179+
`)
180+
t.end()
181+
})

0 commit comments

Comments
 (0)