Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ant-design/ant-bot


https://github.com/ant-design/ant-bot

Last synced: about 2 months ago
JSON representation

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;
```