Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

351 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– Auto Commit Bot

GitHub Actions GitHub Shell Script Last Update

๐Ÿš€ Keep your GitHub contribution graph active with daily motivational commits

๐Ÿ“š Table of Contents

๐ŸŒŸ Features

Click to expand/collapse
  • โฐ Automated daily commits - Keeps your GitHub activity green
  • ๐Ÿ’ฌ Random inspirational quotes - Stay motivated with a new quote every day
  • ๐Ÿ˜„ Random emojis - Adds fun visual elements to your commits
  • ๐Ÿ“ˆ Progress tracking - Counts and tracks your commit streak
  • ๐Ÿ† Milestone summaries - Special files created every 10th commit to celebrate progress
  • ๐Ÿ“… Weekly summaries - Added to your log every 7th commit
  • ๐ŸŽฎ Interactive manual triggers - Run the workflow on-demand with custom messages
  • ๐Ÿ”„ Smart log rotation - Automatically archives logs when they get too large

๐Ÿš€ Getting Started

Click to expand/collapse

Prerequisites

  • A GitHub account
  • A personal access token (PAT) with repo scope

Setup Instructions

  1. Fork or clone this repository

  2. Set up the PAT_TOKEN secret

    Repository Settings โ†’ Secrets โ†’ Actions โ†’ New Repository Secret
    Name: PAT_TOKEN
    Value: [your personal access token]
    
  3. Enable the workflow

    Actions tab โ†’ "I understand my workflows, go ahead and enable them"
    
  4. Set up the USERNAME / EMAIL secret

    name: Setup Git
         run: |
           git config user.name "goutham-shankar"
           git config user.email "gouthamsankarv@gmail.com"
    
  5. First run

    • Manually trigger your first run by clicking "Run workflow"
    • The bot will create your first commit and start tracking!
  6. Sit back and watch

    • The bot will now commit daily at 07:00 UTC
    • Your GitHub contribution graph will stay active!

โš™๏ธ Configuration

Click to expand/collapse

Schedule

The bot is configured to run daily at 07:00 UTC. To change this schedule, edit the cron expression in .github/workflows/auto-commit.yml:

on:
  schedule:
    - cron: '0 7 * * *'  # Format: minute hour day_month month day_week

Manual Trigger Options

When manually triggering the workflow, you can customize:

Option Description
Custom message Add a personal note to your commit
Skip quote Choose not to include a motivational quote
Extra emoji Specify a custom emoji instead of using a random one

Customizing Quotes and Emojis

To add your own inspirational quotes or favorite emojis, edit these arrays in the workflow file:

EMOJIS=("๐ŸŽฏ" "๐Ÿ”ฅ" "๐Ÿ’ช" "๐Ÿ“…" "๐Ÿง " "๐Ÿš€" "๐Ÿ’ป" "โœ…" "๐ŸŒŸ" "โšก" "๐Ÿ†" "๐Ÿ”„" "๐ŸŒˆ" "๐ŸŽจ" "๐Ÿ“Š" "๐Ÿ”")
QUOTES=(
  "Push yourself, because no one else is going to do it for you."
  "Stay positive, work hard, make it happen."
  # Add your favorite quotes here!
)

๐Ÿ“Š Understanding the Output

Click to expand/collapse

Commit Log Format

Each entry in your commit_log.txt will look like:

42. ๐Ÿš€ Commit on 2025-06-14 08:55:55 (Saturday): Success doesn't just find you. You have to go out and get it.

Weekly Summaries

Every 7th commit adds a weekly summary to your log:

---- Weekly Summary (Commit #7) ----
โœจ Total commits this week: 7
๐Ÿ“† Days left in year: 200
๐ŸŽฏ Keep the streak going!
-----------------------------------

Milestone Summaries

Every 10th commit creates a special markdown file (milestone_summary_XX.md) that contains:

  • A congratulatory header
  • Current statistics (date, time, day of week)
  • Recent commit history

Example milestone summary:

# Milestone Reached: Commit #50 ๐ŸŽ‰

Congratulations on reaching 50 daily commits!

## Stats
- Date: 2025-06-14
- Time: 08:55:55
- Day of week: Saturday
- Days left in year: 200

## Recent Commits
[Last 10 entries from your commit_log.txt]

๐ŸŽฎ Interactive Usage

Click to expand/collapse

Manual Trigger

To manually trigger a commit:

  1. Go to the Actions tab in your repository
  2. Select the Auto Commit workflow
  3. Click Run workflow
  4. (Optional) Fill in the custom options:
    • Add a custom message
    • Choose a specific emoji
    • Opt to skip the motivational quote

Example Custom Commits

Purpose Custom Message Emoji Result
Celebrate Reached 1000 stars! ๐ŸŽ‰ chore: ๐ŸŽ‰ Auto commit #42 - Reached 1000 stars! (manual trigger)
Project update Updated Node.js version ๐Ÿ“ฆ chore: ๐Ÿ“ฆ Auto commit #43 - Updated Node.js version (manual trigger)
Daily reminder Remember to update docs ๐Ÿ“ chore: ๐Ÿ“ Auto commit #44 - Remember to update docs (manual trigger)

๐Ÿ‘จโ€๐Ÿ’ป Author

Goutham Shankar

GitHub

Stay committed to your goals, one auto-commit at a time.

About

# Auto Commit Bot A lightweight GitHub Actions workflow that automatically creates daily commits to keep your GitHub contribution graph active. ## Features - ๐Ÿ”„ Daily automated commits (7:00 UTC) - ๐Ÿ’ฌ Motivational quotes with each commit - ๐Ÿ˜„ Random fun emojis - ๐Ÿ“ˆ Progress tracking - ๐Ÿ† Milestone celebrations

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors