Skip to content

Commit

Permalink
modify title text
Browse files Browse the repository at this point in the history
  • Loading branch information
echoulen committed Mar 9, 2020
1 parent dbea786 commit 6e1ba51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5258,7 +5258,7 @@ function processPullRequest() {
widgets: [
{
textParagraph: {
text: `<b><font color="${getTextColor(pullRequest.state, pullRequest.merged)}">${pullRequest.title}</font></b>`
text: `<b><font color="${getTextColor(pullRequest.state, pullRequest.merged)}">${pullRequest.title}</font> has been ${pullRequest.merged ? 'merged' : pullRequest.state}</br>`
}
}
]
Expand Down Expand Up @@ -5301,7 +5301,7 @@ function processPullRequestComment() {
widgets: [
{
textParagraph: {
text: `<b><font color="#ff9800">${pullRequest.title}</font></b>`
text: `<b>Comment to <font color="#ff9800">${pullRequest.title}</font></br>`
}
}
]
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": "typescript-action-google-chat-notification",
"version": "1.1.0",
"version": "1.1.1",
"description": "google-chat-notification template action",
"main": "lib/main.js",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ async function processPullRequest(): Promise<object> {
text: `<b><font color="${getTextColor(
pullRequest.state,
pullRequest.merged
)}">${pullRequest.title}</font></b>`
)}">${pullRequest.title}</font> has been ${
pullRequest.merged ? 'merged' : pullRequest.state
}</br>`
}
}
]
Expand Down Expand Up @@ -88,7 +90,7 @@ async function processPullRequestComment(): Promise<object> {
widgets: [
{
textParagraph: {
text: `<b><font color="#ff9800">${pullRequest.title}</font></b>`
text: `<b>Comment to <font color="#ff9800">${pullRequest.title}</font></br>`
}
}
]
Expand Down

0 comments on commit 6e1ba51

Please sign in to comment.