Welcome, programmer! This project is designed to generate daily commits with custom messages using AI. It’s all automated, but you’re free to modify everything to suit your needs. Let’s explore the world of fun, automation, and creativity! 🌟
- Certifique-se de ter o Docker e o Docker Compose instalados.
- Configure sua chave SSH:
- Aviso: Você precisa ter uma conta no GitHub configurada com sua chave SSH. Sem isso, nada vai funcionar! 😱
- Copie sua chave pública e privada usando o comando do Makefile:
make build.
- Para iniciar o projeto, execute:
make up
- Para executar os testes:
make test - Desligue tudo:
make down
- Nota Importante: Sempre que você alterar os valores nos parâmetros do
main.go, lembre-se de executarmake buildnovamente. Sem isso, suas alterações não serão aplicadas! 🔧
- Ensure Docker and Docker Compose are installed.
- Set up your SSH key:
- Warning: You must have a GitHub account configured with your SSH key. Without it, nothing will work! 😱
- Use the Makefile command to copy your public and private keys:
make build.
- Start the project with:
make up
- Run tests:
make test - Shut down:
make down
- Important Note: Whenever you change values in the
main.goparameters, remember to runmake buildagain. Without this, your changes won’t take effect! 🔧
- Asegúrate de tener Docker y Docker Compose instalados.
- Configura tu clave SSH:
- Advertencia: Debes tener una cuenta de GitHub configurada con tu clave SSH. ¡Sin esto, nada funcionará! 😱
- Usa el comando del Makefile para copiar tus claves pública y privada:
make build.
- Inicia el proyecto con:
make up
- Ejecuta las pruebas:
make test - Apaga todo:
make down
- Nota Importante: Siempre que cambies los valores en los parámetros de
main.go, recuerda ejecutarmake buildnuevamente. ¡Sin esto, tus cambios no se aplicarán! 🔧
All configurations for this project are located in the const block:
const (
ollamaURL = "http://ollama:11434/api/generate" // URL for the Ollama API
outputDir = "generated_files" // Directory for saving generated files
promptOllama = "I'm going to write a simple readme.md that explains how to write a simple hello world in Python:" // The AI prompt
cronSchedule = "0 10 * * 1-5" // At 10:00 AM, Monday to Friday // Cron schedule for generating commits
fileExtension = "md" // File extension for generated files
)ollamaURL: Update the URL if your Ollama API is hosted elsewhere.outputDir: Change the directory where generated files are saved.promptOllama: Modify the prompt to generate messages tailored to your needs.cronSchedule: Adjust the cron schedule to generate commits at different times.fileExtension: Change the file type for the generated files (e.g.,txt,json).
Important Reminder: Whenever you make changes to these values, you must rebuild the project using make build. Otherwise, your changes won’t apply, and you’ll be stuck wondering why things aren’t working. 🤔
- Ollama Documentation: Learn more about Ollama and its capabilities.
This project uses the llama3.2:1b model from Ollama. It’s lightweight, fast, and efficient for generating meaningful messages. Feel free to experiment with other models available in the Ollama suite.
- Fork-Friendly: Clone, fork, and modify this project as you like.
- Customizable Cron Jobs: Edit the
cronScheduleto generate commits as frequently as desired. - Extensible Code: The code is clean and modular, so you can easily add new features or modify existing ones.
- Always ensure your SSH keys are correctly set up.
- Test modifications locally using
make testbefore deploying changes. - Keep the fun alive by exploring new prompts and tweaking automation settings.