Skip to content

Commit

Permalink
Update commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
kohchihao committed Aug 31, 2020
1 parent 6a356c5 commit bd4735f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ inputs:
default: ${{ github.event.pull_request.body }}
pr_commit_message:
description: 'Commit message'
default: ${{ github.event.head_commit.message }}
default: ${{ github.event.commits[0].message }}
pr_branch_name:
description: 'PR Branch name'
default: ${{ github.ref }}
default: ${{ github.head_ref }}
runs:
using: 'node12'
main: 'dist/index.js'
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const buildPrContent = () => {
let message =
'-------------------------------------\n' +
`Workflow build <b>${status}!</b>\n` +
`Title: ${title}\n` +
`Title: ${prTitle}\n` +
`Branch: ${prBranchName}\n` +
`User: ${ghActor}\n` +
'<b>Commit Msg:</b>\n' +
Expand Down

0 comments on commit bd4735f

Please sign in to comment.