fancy_job  by Shogun89

Python script for automated Git commits

Created 8 months ago
614 stars

Top 53.5% on SourcePulse

GitHubView on GitHub
Project Summary

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

  • Install: git clone https://github.com/Shogun89/fancy_job
  • Run: python update_number.py
  • LLM Integration: FANCY_JOB_USE_LLM=true uv run python update_number.py
  • Prerequisites: Python standard library. For LLM features, uv and a Hugging Face model download are required.
  • Cron Job Setup: Add 0 6 * * * cd /path/to/your/repo && python update_number.py (or LLM variant) to crontab -e.

Highlighted Details

  • Automates daily Git commits for streak maintenance.
  • Supports LLM-based commit message generation.
  • Allows customization of increment value and target file.

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.

Health Check
Last Commit

8 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.