File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export const publish = async (options) => {
115
115
return {
116
116
hash : c . hash . substring ( 0 , 7 ) ,
117
117
body : c . body ,
118
- message : c . message ,
118
+ subject : parsed . subject ?? '' ,
119
119
author_name : c . author_name ,
120
120
author_email : c . author_email ,
121
121
type : parsed . type ?. toLowerCase ( ) ?? 'other' ,
@@ -145,7 +145,7 @@ export const publish = async (options) => {
145
145
if ( commit . body . includes ( 'BREAKING CHANGE' ) ) {
146
146
releaseLevel = Math . max ( releaseLevel , 2 )
147
147
}
148
- if ( commit . message . includes ( 'RELEASE_ALL' ) || commit . body . includes ( 'RELEASE_ALL' ) ) {
148
+ if ( commit . subject . includes ( 'RELEASE_ALL' ) || commit . body . includes ( 'RELEASE_ALL' ) ) {
149
149
RELEASE_ALL = true
150
150
}
151
151
}
@@ -296,9 +296,9 @@ export const publish = async (options) => {
296
296
}
297
297
298
298
const scope = commit . scope ? `${ commit . scope } : ` : ''
299
- const message = commit . message
299
+ const subject = commit . subject
300
300
301
- return `- ${ scope } ${ message } (${ commit . hash } ) ${
301
+ return `- ${ scope } ${ subject } (${ commit . hash } ) ${
302
302
username
303
303
? `by @${ username } `
304
304
: `by ${ commit . author_name || commit . author_email } `
Original file line number Diff line number Diff line change 1
1
export type Commit = {
2
2
hash : string
3
3
body : string
4
- message : string
4
+ subject : string
5
5
author_name : string
6
6
author_email : string
7
7
type : string
You can’t perform that action at this time.
0 commit comments