Discover and explore top open-source AI tools and projects—updated daily.
Python script for automated Git commits
Top 53.5% on SourcePulse
This Python script automates daily Git commits by incrementing a number in a text file and scheduling its execution via cron. It's designed for users aiming to maintain a GitHub commit streak or track sequential data with a dynamic schedule, offering an optional LLM-powered commit message generation.
How It Works
The core functionality involves a Python script that reads a number from number.txt
, increments it, commits the change to Git, and then updates a cron job to schedule the next execution at a random time. The LLM integration uses Hugging Face models for generating commit messages, requiring uv
for dependency management.
Quick Start & Requirements
git clone https://github.com/Shogun89/fancy_job
python update_number.py
FANCY_JOB_USE_LLM=true uv run python update_number.py
uv
and a Hugging Face model download are required.0 6 * * * cd /path/to/your/repo && python update_number.py
(or LLM variant) to crontab -e
.Highlighted Details
Maintenance & Community
No specific information on contributors, sponsorships, or community channels is provided in the README.
Licensing & Compatibility
The README does not specify a license. Compatibility for commercial use or closed-source linking is not detailed.
Limitations & Caveats
The script's primary function relies on Git and cron, which may not be universally available or configured. The LLM integration requires significant downloads and setup. The README implies a "random time" scheduling but provides a fixed cron example.
8 months ago
Inactive