Running cog automatically against GitHub pull requests

from blog Simon Willison TIL, | ↗ original
I really like Cog (previously) as a tool for automating aspects of my Python project documentation - things like the SQL schemas shown on the LLM logging page. When using cog in this way it's important to remember to run cog -r to update those generated files before pushing a commit. I've previously been enforcing this using GitHub Actions - as...