Skip to content

Commit

Permalink
Generate headline (#2)
Browse files Browse the repository at this point in the history
* feat: generate headline
* chore: bump to 1.2.3
  • Loading branch information
Klemensas authored Mar 17, 2020
1 parent 0df6de5 commit 380682c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async function run() {
structure
.replace(/({{message}})|({{messageHeadline}})|({{author}})|({{sha}})/g, (match, message, messageHeadline, author, sha) => {
if (message) return commit.commit.message
if (messageHeadline) return commit.commit.messageHeadline
if (messageHeadline) return commit.commit.message.split('\n')[0]
if (author) return !commit.hasOwnProperty('author') || !commit.author.hasOwnProperty('login') ? '' : commit.author.login
if (sha) return commit.sha
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "autotag-action",
"version": "1.2.2",
"version": "1.2.3",
"private": true,
"description": "Automatically create a tag whenever the version changes in package.json",
"main": "lib/main.js",
Expand Down

0 comments on commit 380682c

Please sign in to comment.