{"id":19581168,"url":"https://github.com/google-github-actions/send-google-chat-webhook","last_synced_at":"2025-04-27T09:32:55.631Z","repository":{"id":182417065,"uuid":"668447793","full_name":"google-github-actions/send-google-chat-webhook","owner":"google-github-actions","description":"A GitHub Action for sending a message to Google Chat via a webhook.","archived":false,"fork":false,"pushed_at":"2025-02-01T14:13:10.000Z","size":27,"stargazers_count":15,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T23:33:20.723Z","etag":null,"topics":["chat","google-chat"],"latest_commit_sha":null,"homepage":"https://chat.google.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google-github-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-19T20:41:53.000Z","updated_at":"2025-04-04T19:53:47.000Z","dependencies_parsed_at":"2024-11-11T07:33:27.953Z","dependency_job_id":"47c7ec17-60e2-413f-a228-c46840f28a66","html_url":"https://github.com/google-github-actions/send-google-chat-webhook","commit_stats":null,"previous_names":["google-github-actions/send-google-chat-webhook"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-github-actions%2Fsend-google-chat-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-github-actions%2Fsend-google-chat-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-github-actions%2Fsend-google-chat-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-github-actions%2Fsend-google-chat-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-github-actions","download_url":"https://codeload.github.com/google-github-actions/send-google-chat-webhook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251118847,"owners_count":21539189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat","google-chat"],"created_at":"2024-11-11T07:33:18.567Z","updated_at":"2025-04-27T09:32:55.357Z","avatar_url":"https://github.com/google-github-actions.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# send-google-chat-webhook\n\nThis github action will enable users to send notification to google chat via github actions.\n\n## Prerequisites\n### Obtain a web hook from your google chat workspace.\n1. Go to your chat space which you want to add a webhook.\n2. At the top, click on the space title, select Apps \u0026 Integration.\n3. Click Manage webhooks\n4. Create a webhook or add another webhook if there is already one.\n5. Copy the webhook URL that you intend to use for this github action.\n\nFor your own security purposes, we would suggest to store your webhook url in github secrets, and use `${{ secrets.WEBHOOK_URL}}` to get it's value.\n\n## Usage\n\n```yaml\njobs:\n  job_id:\n    # ...\n\n    permissions:\n      contents: 'read'\n      id-token: 'write'\n\n    steps:\n    # ...\n\n    - id: 'notify_google_chat'\n      uses: 'google-github-actions/send-google-chat-webhook@v0.0.2'\n      with:\n        webhook_url: '${{ secrets.WEBHOOK_URL }}'\n        mention: \"\u003cusers/all\u003e\"\n```\n\nYou can customize the condition for when you want this action is called..\n\n```yaml\n- id: 'notify google chat'\n  if: ${{ inputs.fail_intentionally }}\n  uses: 'google-github-actions/send-google-chat-webhook@v0.0.2'\n  with:\n    webhook_url: '${{ secrets.WEBHOOK_URL }}'\n    mention: \"\u003cusers/all\u003e\"\n```\n\nHelpful references:\n* Messages and Cards\n  * [Create, read, update, delete messages](https://developers.google.com/chat/api/guides/crudl/messages)\n  * [Send a card message](https://developers.google.com/chat/api/guides/message-formats/cards)\n  * [REST Resource: spaces.messages](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages)\n  * [Method: spaces.messages.create](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages/create)\n  * [Cards v2](https://developers.google.com/chat/api/reference/rest/v1/cards)\n* abcxyz\n  * [abcxyz/pkg/cli](https://pkg.go.dev/github.com/abcxyz/pkg/cli)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-github-actions%2Fsend-google-chat-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-github-actions%2Fsend-google-chat-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-github-actions%2Fsend-google-chat-webhook/lists"}