Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 2.12 KB

setup.md

File metadata and controls

37 lines (29 loc) · 2.12 KB

Setup

Making a Webhook in Google Chat

First, you need to get a webhook URL from google chat, which can be done with the following steps:

  1. Go into a room in Google Chat, click the name, and click manage webhooks
    image
  2. Once you do that, you should be taken to the make a webhook screen right away, but if not click 'Add Another'
    image
    image
  3. Enter a name (presumably GitHub) and optional avatar url then click 'Save'
  4. When you are back at the manage webhooks screen, click the copy icon next to your webhook
    image

Linking that Webhook with GitHub (via this)

  1. Open the page for the repo you want to link to google chat, and open the settings tab.
  2. Click on 'Webhooks' on the sidebar to the left
  3. Click 'Add Webhook' (to the right)
    image
  4. Under payload url, type https://github-to-google-chat.vercel.app/?url=
  5. Paste in the Webhook url from google chat, so the payload URL looks like this:
    https://github-to-google-chat.vercel.app/?url={Google Chat Webhook URL}
  6. Set the content type to application/json
    image
  7. Choose the events you would like to be notified about, and then click 'Add Webhook'
    IMPORTANT NOTE: Currently, only some events have a custom message. These events are:
  • Pull Requests
  • Pushes
  • Issues

Everything else will use the default message, seen below.

If all goes well, you should see a message like this in google chat:
image