{"id":20849435,"url":"https://github.com/kaneamiller/daily-commits","last_synced_at":"2026-04-04T16:36:13.730Z","repository":{"id":261012153,"uuid":"882982245","full_name":"kaneAmiller/daily-commits","owner":"kaneAmiller","description":"Automates daily commits to maintain an active GitHub contribution graph, with customizable commit messages, automatic conflict handling, and setup options for different operating systems.","archived":false,"fork":false,"pushed_at":"2025-03-12T00:00:04.000Z","size":213,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T01:18:29.017Z","etag":null,"topics":["automation","cron-jobs","devops","git","github-actions","nodejs","task-scheduler"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaneAmiller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T06:57:52.000Z","updated_at":"2025-03-12T00:00:07.000Z","dependencies_parsed_at":"2024-11-04T08:17:36.040Z","dependency_job_id":"ba475ad2-e4e4-465b-b553-dc19b84a5ff7","html_url":"https://github.com/kaneAmiller/daily-commits","commit_stats":null,"previous_names":["kaneamiller/daily-commits"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaneAmiller%2Fdaily-commits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaneAmiller%2Fdaily-commits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaneAmiller%2Fdaily-commits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaneAmiller%2Fdaily-commits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaneAmiller","download_url":"https://codeload.github.com/kaneAmiller/daily-commits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213982,"owners_count":20254902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cron-jobs","devops","git","github-actions","nodejs","task-scheduler"],"created_at":"2024-11-18T03:05:02.790Z","updated_at":"2025-12-26T16:45:22.572Z","avatar_url":"https://github.com/kaneAmiller.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Daily Commits Automation\n\n![Status](https://img.shields.io/badge/status-live-brightgreen)\n![License](https://img.shields.io/badge/license-MIT-blue)\n![Version](https://img.shields.io/badge/version-1.0.0-orange)\n![Made with Node.js](https://img.shields.io/badge/Made%20with-Node.js-green)\n![GitHub Actions](https://img.shields.io/badge/Automation-Cron%20Job%20%7C%20Task%20Scheduler-lightgrey)\n![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-blue)\n\nThis project automates daily commits to keep your GitHub contribution graph active. It generates a new commit each day with a unique message, pushes it to the repository, and handles potential conflicts automatically.\n\n## Features\n\n- **Automated Daily Commits**: Automatically commits a file (`temp.txt`) with a new timestamp every day.\n- **Conflict Handling**: Resolves conflicts by force-syncing the local branch with the remote branch before each commit.\n- **Customizable**: Easily adjust the commit message or modify the content of each commit.\n\n## Setup\n\n1. **Clone the Repository**:\n   ```bash\n   git clone git@github.com:kaneAmiller/daily-commits.git\n   cd daily-commits\n   ```\n\n2. **Install Node.js**: Make sure you have Node.js installed to run the script. [Download Node.js here](https://nodejs.org/).\n\n3. **Set Up GitHub SSH Authentication**:\n   - [Generate an SSH key](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh) if you haven't already.\n   - Add the key to your GitHub account.\n\n4. **Edit `dailyCommit.js` (Optional)**:\n   - By default, the script creates a unique message using the current date and time.\n   - If you want to change the commit message format, update the `message` variable in `dailyCommit.js`.\n\n## Usage\n\n### Running the Script Manually\n\nTo run the script manually, navigate to the project directory and execute:\n\n```bash\nnode dailyCommit.js\n```\n\nThis will:\n1. Force-sync the local branch with the remote branch.\n2. Generate a new commit message with the current date and time.\n3. Push the new commit to the GitHub repository.\n\n### Automate with a Cron Job (macOS/Linux)\n\nTo run this script automatically every day, set up a cron job:\n\n1. Open your crontab:\n   ```bash\n   crontab -e\n   ```\n\n2. Add the following line to schedule the script to run daily at 9 AM:\n   ```bash\n   0 9 * * * /usr/local/bin/node /path/to/dailyCommit.js\n   ```\n\n   Replace `/path/to/dailyCommit.js` with the full path to your `dailyCommit.js` file.\n\n### Automate with Task Scheduler (Windows)\n\n1. Open **Task Scheduler**.\n2. Create a new task with the following settings:\n   - **Trigger**: Daily at your preferred time.\n   - **Action**: Start a Program.\n   - **Program**: Path to `node.exe`, usually `C:\\Program Files\\nodejs\\node.exe`.\n   - **Arguments**: Full path to `dailyCommit.js`, e.g., `C:\\path\\to\\dailyCommit.js`.\n\n## Customization\n\n- **Change Commit Message**: Update the `message` variable in `dailyCommit.js` to customize the commit message format.\n- **File Content**: The script writes a new message to `temp.txt` daily. You can modify this to add different content or even add more files if needed.\n\n## Troubleshooting\n\n- **Conflict Issues**: This script uses `git reset --hard` to resolve conflicts by syncing the local branch with the remote branch before each commit.\n- **GitHub Authentication**: Make sure your SSH key is properly set up on GitHub if you encounter authentication issues.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaneamiller%2Fdaily-commits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaneamiller%2Fdaily-commits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaneamiller%2Fdaily-commits/lists"}