Rocket.Chat integrate Gitea's notifications via Incoming Webhook
Go to file
Marius Alwan Meyer 34dc0d3d05
Some checks failed
Lint / Run linters (push) Failing after 41s
new package.json stuff
2023-05-01 22:41:09 +00:00
.gitea/workflows don't use package-lock.json 2023-05-01 22:33:05 +00:00
img Update README & Script & Demo 2020-09-20 16:42:47 +08:00
.gitignore [lint] try to fix linting issues 2023-05-01 22:14:52 +00:00
gitea-rocketchat.hooks.js Don't impersonate users 2023-05-01 21:57:15 +00:00
LICENSE Initial commit 2020-09-20 02:20:31 +08:00
package-lock.json new package.json stuff 2023-05-01 22:41:09 +00:00
package.json new package.json stuff 2023-05-01 22:41:09 +00:00
README.md Update README & Script & Demo 2020-09-20 16:42:47 +08:00

About

Rocket.Chat integrate notifications via an Incoming Webhook in Gitea

Instructions

Rocket.Chat

  1. Login Rocket.Chat with Administrator

  2. Go to Adminisration -> Integrations -> Create a new Incoming webhook

  3. Set "Enabled" option to True

  4. Select Channel/User that you want to post notification

  5. Select an Account to post message. In Rocket.Chat can set account role be a BOT

  6. Copy/Paste gitea-rocketchat.hooks.js to Scripts Block in Rocket.Chat.

  7. Set "Script Enabled" Option to True

  8. Save the integration first, then you can copy Webhook URL for Gitea trigger.

Gitea

  • System Webhook
    1. Go to Site Administration -> System Webhooks
    2. Create New Webook -> Select Gitea webhook
    3. Past Webhook URL to Target URL
    4. Keep HTTP Method as POST
    5. Keep POST Content Type as application/json
    6. Let Secret be empty.
    7. Select what type of notification you want to post (This sciprt will support all message)
    8. Select Active to Enable notification webhook
  • Repository Webhook
    1. Go to any repository -> Settings -> Webhooks
    2. Create New Webook -> Select Gitea webhook
    3. Past Webhook URL to Target URL
    4. Keep HTTP Method as POST
    5. Keep POST Content Type as application/json
    6. Let Secret be empty.
    7. Select what type of notification you want to post (This sciprt will support all message)
    8. Select Active to Enable notification webhook

Demo

rocketchat-gitea-hook