https://github.com/ti-community-infra/ti-community-bot
A bot for tidb community.
https://github.com/ti-community-infra/ti-community-bot
bot github pingcap ti-community-bot tidb tikv
Last synced: 3 months ago
JSON representation
A bot for tidb community.
- Host: GitHub
- URL: https://github.com/ti-community-infra/ti-community-bot
- Owner: ti-community-infra
- License: isc
- Created: 2020-09-16T08:28:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T02:17:04.000Z (almost 3 years ago)
- Last Synced: 2023-03-03T22:52:24.083Z (over 2 years ago)
- Topics: bot, github, pingcap, ti-community-bot, tidb, tikv
- Language: TypeScript
- Homepage:
- Size: 2.06 MB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ti-community-bot
[](https://github.com/features/actions)
[](https://codecov.io/gh/ti-community-infra/ti-community-bot)
[](https://probot.github.io/)
[](https://github.com/facebook/jest)
[](https://ti-community-infra.isc-license.org)> A GitHub App built with [Probot](https://github.com/probot/probot) that a community bot for tidb.
## Require
- Git >= 2.13.0 (**For husky support**)
- Node >= 10
- MYSQL 5.7
- Docker
- Docker Compose >= 3## Development
```sh
# Copy .env.example to .env (fill in the relevant environment variables)
copy .env.example .env# docker-compose up the db and bot
docker-compose -f dev.docker-compose.yml up -d --build
```### Changing code
The directory is mounted directly into the ti-community-bot Docker container, which means that the nodemon live-reload server will still just work.
If you change some configuration files or environment variables, we need to restart the service to take effect.
```sh
# Rebuild bot Docker image
docker-compose -f dev.docker-compose.yml build bot# Restart running frontend container (if it's already running)
docker-compose -f dev.docker-compose.yml stop bot
docker-compose -f dev.docker-compose.yml rm bot
docker-compose -f dev.docker-compose.yml up -d
```## Deploy
Deploy using the docker-compose file of the production environment.
```sh
# docker-compose up the bot
docker-compose -f prod.docker-compose.yml up -d
```## Contributing
If you have suggestions for how ti-community-bot could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
For more, check out the [Contributing Guide](CONTRIBUTING.md).
## License
[ISC](LICENSE) © 2020 Rustin-Liu