cheshire-cat-ai / docs

Documentation for the Cheshire Cat AI
https://cheshire-cat-ai.github.io/docs/
31 stars 27 forks source link

Auto-open issues when new hooks are added in the `core` #122

Closed nicola-corbellini closed 5 months ago

nicola-corbellini commented 6 months ago

Here I'll go freestyle proposing a raw and naive solution to automatically open an issue every time a new hook is added to the core. Issue will point missing hooks in the available hooks table.

We could exploit a GitHub action to run a python script when pushing in the doc. The script should scan the existing functions in this module and the modules in this folder. Detected functions can be stored in a JSON or something (e.g. a JSON with a key new_hooks, where new hooks are stored each time). If the already stored differ from the detected ones (i.e. a new hook exists), we set an environment variable to be used in a further step of the action. If the env. variable is true, we open an issue with the hooks in the new_hooks key.

How much dirty is this?

zAlweNy26 commented 6 months ago

So dirty, that's why I like it

valentimarco commented 6 months ago

i like it!

pieroit commented 6 months ago

Hard core automation Beautiful ❤️