Skip to content

Commit

Permalink
commit message bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MCKanpolat committed Nov 25, 2020
1 parent 551739e commit af61de4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ async function run(): Promise<void> {
try {
const versionIdentifier: string = core.getInput('identifier') || ''
const defaultReleaseType: string = core.getInput('releaseType') || ''
const commitMessages = context.payload.commits?.message || []
const commits = context.payload.commits || []
const commitMessages =
commits.map((m: {message: string}) => m.message) || []

core.debug(`Context payload => ${JSON.stringify(context.payload)}`)
const latestVer = await getMostRecentVersionFromTags(context)
Expand Down

0 comments on commit af61de4

Please sign in to comment.