From bd4735f190c4f1c6948536cb6bfebcf7fe44ef6a Mon Sep 17 00:00:00 2001 From: Marcus Koh Date: Mon, 31 Aug 2020 14:51:58 +0800 Subject: [PATCH] Update commit message --- action.yml | 4 ++-- index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index ad3111d..c29db09 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/index.js b/index.js index 9c9bd14..3ce6be4 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,7 @@ const buildPrContent = () => { let message = '-------------------------------------\n' + `Workflow build ${status}!\n` + - `Title: ${title}\n` + + `Title: ${prTitle}\n` + `Branch: ${prBranchName}\n` + `User: ${ghActor}\n` + 'Commit Msg:\n' +