https://github.com/delivery-much/actions-chat
Send Google Chat messages
https://github.com/delivery-much/actions-chat
github-actions google-chat
Last synced: 4 months ago
JSON representation
Send Google Chat messages
- Host: GitHub
- URL: https://github.com/delivery-much/actions-chat
- Owner: delivery-much
- License: gpl-3.0
- Created: 2020-06-03T15:09:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-05-15T16:41:19.000Z (5 months ago)
- Last Synced: 2025-05-15T17:45:04.145Z (5 months ago)
- Topics: github-actions, google-chat
- Language: JavaScript
- Homepage:
- Size: 267 KB
- Stars: 7
- Watchers: 33
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @delivery-much/actions-chat
Messages are sent by [chat.js](src/chat.js) and defined in [messages.js](src/messages.js).
We use Axios as HTTP client and the basic instance is defined in [axios.js](src/axios.js).
## Supported messages
- [New pull request](#new-pull-request)
- [New release](#new-release)## Inputs
### `url`
**Required** Your Google Chat Webhook URL. You can find it in "Configure Webhooks" option in Chat rooms.
## Example workflows
### New pull request
- Create a file `chat-pull-request.yml` in `.github/workflows/` directory with the following content:
```yaml
name: chat-pull-request
on:
pull_request:
types: [opened, reopened, ready_for_review]
jobs:
chat:
runs-on: ubuntu-latest
steps:
- uses: delivery-much/actions-chat@v1
with:
url: ${{ secrets.GOOGLE_CHAT_PULL_REQUEST_WEBHOOK_URL }}
```### New release
- Create a file `chat-release.yml` in `.github/workflows/` directory with the following content:
```yaml
name: chat-release
on:
release:
types: [created]
jobs:
chat:
runs-on: ubuntu-latest
steps:
- uses: delivery-much/actions-chat@v1
with:
url: ${{ secrets.GOOGLE_CHAT_RELEASE_WEBHOOK_URL }}
```