Skip to content

Commit

Permalink
Merge pull request #13 from nakamuraos/feature/update-example
Browse files Browse the repository at this point in the history
Fix not working when no theadKey
  • Loading branch information
nakamuraos authored Mar 16, 2024
2 parents 8cdaf1b + ae0be2a commit 57909b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This repository is generated by [typescript-action](https://github.com/actions/t

```yaml
- name: Google Chat Notification
uses: nakamuraos/google-chat-notifications@v3.1.0
uses: nakamuraos/google-chat-notifications@v3.2.0
with:
title: Build
subtitle: ${{ github.event.head_commit.message }}
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": "google-chat-notifications",
"version": "3.1.0",
"version": "3.2.0",
"private": true,
"description": "Google Chat Notifications for GitHub Actions",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function notify({
}

const response = await axios.default.post(
webhookUrl + '&messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD',
webhookUrl + body.thread ? '&messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD' : '',
body,
)
if (response.status !== 200) {
Expand Down

0 comments on commit 57909b4

Please sign in to comment.