Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ant-design/ant-bot
https://github.com/ant-design/ant-bot
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ant-design/ant-bot
- Owner: ant-design
- Created: 2017-03-21T06:35:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T18:18:04.000Z (about 2 years ago)
- Last Synced: 2024-05-01T09:52:44.121Z (8 months ago)
- Language: JavaScript
- Size: 732 KB
- Stars: 78
- Watchers: 3
- Forks: 20
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ant bot
## Development
### start
```
$ yarn
$ cp env .env
$ vim .env
$ yarn dev
```### a simplest action
```javascript
// src/actions/hello.js
const { commentIssue } = require('../github');function hello(on) {
on('issue_opend', ({ payload }) => {
const user = payload.issue.user.login ;
commentIssue(
payload,
`Hello @${user}`,
);
});
}module.exports = hello;
```