A Serverless Github bot using umijs build tool.
Take the github hooks robot as an example, you can write your function in
src
.
Create your serverless function easily:
- TypeScript
- ES6
- Exclude Serverless platform
built-in
functions and libraries - Function independence, not depending on node_modules
for example, we use Aliyun Function Compute.
fill in your WEB_HOOK
url (serverless will send a notification to it, you can send multiple-address using ,
separator), if your github hook has Secret
, you should supply the GITHUB_HOOK_SECRET
in template.yml
.
$ npm install
$ npm run deploy