Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

ti-community-infra/ti-community-bot

Repository files navigation

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

# 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.

# 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.

# 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.

License

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