Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lawvs/lark-bot-worker

Lark/Feishu bot on Cloudflare Workers
https://github.com/lawvs/lark-bot-worker

cloudflare cloudflare-workers feishu feishu-bot gitlab lark webhook

Last synced: about 2 months ago
JSON representation

Lark/Feishu bot on Cloudflare Workers

Awesome Lists containing this project

README

        

# Lark Bot Worker

[![Workflow](https://github.com/lawvs/lark-bot-worker/actions/workflows/nodejs.yml/badge.svg)](https://github.com/lawvs/lark-bot-worker/actions/workflows/nodejs.yml)

[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/lawvs/lark-bot-worker)

Lark/Feishu bot on Cloudflare Workers.

## Features

- Forward GitLab's comment to Feishu/Lark

image

## Usages

- Deploy bot to Cloudflare Workers

- Add Webhooks at GitLab

![image](https://user-images.githubusercontent.com/18554747/160115957-e4f56e15-4628-4c98-9cd1-dc00fb5332ad.png)

## Config

Environment variables:

```sh
CLOUDFLARE_ACCOUNT_ID=xxx
CF_API_TOKEN=xxx
# (Optional)
CF_ZONE_ID=xxx

# Lark/Feishu bot webhook
WEBHOOK=https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxxxxxxx
# (Optional) Lark/Feishu bot signature secret
SIGN_SECRET=xxxxxxxxxxxx
```

## References

- [Cloudflare Workers documentation](https://developers.cloudflare.com/workers/)
- [Webhook events | GitLab](https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html)