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

https://github.com/finnfiddle/tidy-bot

GitHub workflow that use AI to clean up source files.
https://github.com/finnfiddle/tidy-bot

Last synced: 12 months ago
JSON representation

GitHub workflow that use AI to clean up source files.

Awesome Lists containing this project

README

          

# ๐Ÿงน TidyBot

TidyBot is a GitHub Action that selects a random source file once a day (or on demand) and uses OpenAI to refactor it using your preferred style guides and custom rules.

## ๐Ÿ“ฆ Setup

1. Add `.tidy-bot.yml` to the root of your repo:
```yaml
srcDir: "./src"

extensions:
- ".js"
- ".ts"
- ".tsx"

styleGuides:
- "Airbnb JavaScript/TypeScript style guide"
- "React best practices"

customInstructions: |
- Use const where possible.
- Prefer arrow functions.