项目作者: ti-community-infra

项目描述 :
A bot for tidb community.
高级语言: TypeScript
项目地址: git://github.com/ti-community-infra/ti-community-bot.git
创建时间: 2020-09-16T08:28:22Z
项目社区:https://github.com/ti-community-infra/ti-community-bot

开源协议:ISC License

下载


ti-community-bot

GitHub Actions
codecov
Probot
jest
ISC License

A GitHub App built with 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

  1. # Copy .env.example to .env (fill in the relevant environment variables)
  2. copy .env.example .env
  3. # docker-compose up the db and bot
  4. 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.

  1. # Rebuild bot Docker image
  2. docker-compose -f dev.docker-compose.yml build bot
  3. # Restart running frontend container (if it's already running)
  4. docker-compose -f dev.docker-compose.yml stop bot
  5. docker-compose -f dev.docker-compose.yml rm bot
  6. docker-compose -f dev.docker-compose.yml up -d

Deploy

Deploy using the docker-compose file of the production environment.

  1. # docker-compose up the bot
  2. 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.

License

ISC © 2020 Rustin-Liu rustin.liu@gmail.com