From 6e1ba51f16276a537ee2aec95b772eefe30cf895 Mon Sep 17 00:00:00 2001 From: carlos Date: Mon, 9 Mar 2020 23:30:44 +0800 Subject: [PATCH] modify title text --- dist/index.js | 4 ++-- package.json | 2 +- src/notify.ts | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 99a17db..a7540dd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5258,7 +5258,7 @@ function processPullRequest() { widgets: [ { textParagraph: { - text: `${pullRequest.title}` + text: `${pullRequest.title} has been ${pullRequest.merged ? 'merged' : pullRequest.state}
` } } ] @@ -5301,7 +5301,7 @@ function processPullRequestComment() { widgets: [ { textParagraph: { - text: `${pullRequest.title}` + text: `Comment to ${pullRequest.title}
` } } ] diff --git a/package.json b/package.json index 5c2c215..d9191ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typescript-action-google-chat-notification", - "version": "1.1.0", + "version": "1.1.1", "description": "google-chat-notification template action", "main": "lib/main.js", "scripts": { diff --git a/src/notify.ts b/src/notify.ts index 281d4c6..690b933 100644 --- a/src/notify.ts +++ b/src/notify.ts @@ -46,7 +46,9 @@ async function processPullRequest(): Promise { text: `${pullRequest.title}` + )}">${pullRequest.title} has been ${ + pullRequest.merged ? 'merged' : pullRequest.state + }
` } } ] @@ -88,7 +90,7 @@ async function processPullRequestComment(): Promise { widgets: [ { textParagraph: { - text: `${pullRequest.title}` + text: `Comment to ${pullRequest.title}
` } } ]