Install Blocks
Initialize Blocks
.blocks
directory in the current working directory.Create an automation
create
command..blocks
directory with the following structure:litellm
library to summarize a pull request in a single sentence.litellm
library as a dependency to requirements.txt
. To use gpt-4o
, litellm
expects an environment variable called OPENAI_API_KEY
. You would need to get your own OpenAI API key and add it to the environment variables dashboard.Register an automation
push
command; specify the filename relative to your current working directory. All automations defined the file will be registered, however you can only register one file at a time.Install Github App
.blocks
directory is where automation source code is defined. A typical project structure looks like the following:
pip
packages.