Skip to content

πŸ”„ A GitHub Actions-powered bot that commits automatically on weekdays to keep your contribution graph active β€” great for learning CI/CD, Git automation, and workflow scheduling.

License

Notifications You must be signed in to change notification settings

TRahulsingh/green-squares-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌿 green-squares-bot

A fun and educational GitHub Actions bot that automatically commits on weekdays to keep your contribution graph active.

GitHub Workflow Status


πŸ’‘ What is green-squares-bot?

Welcome to green-squares-bot β€” a simple yet creative bot that automatically generates commits to make your GitHub contribution graph colorful and active 🌱.

This is a demo project that showcases how you can use GitHub Actions to automate routine tasks, like generating commits on a schedule. It’s a great way to explore GitHub automation, scheduled workflows (via CRON), and Git operations β€” all within a lightweight and transparent project.


✨ Key Features

  • πŸ” Automated Commits
    Generates between 3–15 commits per weekday (Mon–Sat) with natural variability

  • πŸ•’ Multiple Time Slots
    Runs three times daily (Morning, Afternoon, Evening) to spread activity

  • 🧠 Human-like Commit Messages
    Each commit includes random quotes, emojis, or messages to simulate real development

  • πŸ“œ Commit Logging
    Tracks all commits in commit_log.txt for transparency

  • πŸ§ͺ Educational Purpose Only
    Intended as a sandbox for learning about GitHub Actions and CI/CD workflows


βš™οΈ How It Works

This project uses a commit.py Python script and a scheduled GitHub Actions workflow (.github/workflows/activity.yml).

The workflow runs on:

  • Morning: 06:00 UTC (11:30 AM IST)
  • Afternoon: 12:00 UTC (5:30 PM IST)
  • Evening: 15:45 UTC (9:15 PM IST)

Each run performs:

  1. 🧾 Git checkout
  2. βš™οΈ Git identity setup
  3. πŸ“„ Running commit.py to generate 1–5 commits
  4. πŸ—‚οΈ Random file updates
  5. πŸ“€ Git push

πŸš€ Getting Started

Clone the repo:

git clone https://github.com/YOUR_USERNAME/green-squares-bot.git
cd green-squares-bot

Push to your own GitHub repository:

git remote rename origin old-origin
git remote add origin https://github.com/YOUR_USERNAME/green-squares-bot.git
git push -u origin master

Make sure the repository is public so commits show up on your GitHub profile contribution graph!


πŸ”§ File Structure

green-squares-bot/
β”œβ”€β”€ commit.py             # Main commit generator script
β”œβ”€β”€ daily_log.txt         # Rotating dummy file
β”œβ”€β”€ progress.md           # Rotating dummy file
β”œβ”€β”€ inspiration.txt       # Rotating dummy file
β”œβ”€β”€ commit_log.txt        # Records commit history
└── .github/
    └── workflows/
        └── activity.yml  # GitHub Actions workflow

🀝 Contributing

Contributions are welcome! πŸŽ‰
If you have ideas for:

  • Better commit logic
  • Cool new features
  • Code cleanup or optimization

Feel free to fork this repo and open a pull request.


⚠️ Disclaimer

This project is for educational and demonstration purposes only.
It is designed to show how GitHub Actions can be used for scheduled automation tasks β€” not for inflating contributions or misleading viewers.

Automating your GitHub activity can be a fun and informative way to learn about CI/CD, bots, scripting, and workflows β€” but it's important to use this responsibly:

  • Be transparent in your usage
  • Avoid spammy or misleading behavior
  • Present it clearly as a testbed for learning automation

πŸ§ͺ Built for learning, not for production.
πŸ’š Happy green squares!
πŸ“… Automation starts from: 2025-07-01


πŸ“„ License

This project is licensed under the MIT License.
Feel free to use, modify, and distribute it for learning and personal projects.
See the full license in the LICENSE file.

About

πŸ”„ A GitHub Actions-powered bot that commits automatically on weekdays to keep your contribution graph active β€” great for learning CI/CD, Git automation, and workflow scheduling.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages