{"id":25828154,"url":"https://github.com/mirai-web3/auto-commit-bot","last_synced_at":"2025-02-28T17:23:58.905Z","repository":{"id":279490721,"uuid":"938981857","full_name":"mirai-web3/auto-commit-bot","owner":"mirai-web3","description":"Automatically commit changes to your repository through GitHub Actions with customizable schedules.","archived":false,"fork":false,"pushed_at":"2025-02-25T21:18:49.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T21:25:30.249Z","etag":null,"topics":["auto-commit","commit","github","github-actions"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirai-web3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-25T19:59:52.000Z","updated_at":"2025-02-25T21:19:51.000Z","dependencies_parsed_at":"2025-02-25T21:25:33.111Z","dependency_job_id":"725f00f1-008c-49d1-905c-207a5113a49d","html_url":"https://github.com/mirai-web3/auto-commit-bot","commit_stats":null,"previous_names":["mirai-web3/auto-commit-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Fauto-commit-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Fauto-commit-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Fauto-commit-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Fauto-commit-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirai-web3","download_url":"https://codeload.github.com/mirai-web3/auto-commit-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241189615,"owners_count":19924845,"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":["auto-commit","commit","github","github-actions"],"created_at":"2025-02-28T17:23:58.421Z","updated_at":"2025-02-28T17:23:58.900Z","avatar_url":"https://github.com/mirai-web3.png","language":null,"readme":"# Auto Commit Bot 🤖\n\nAutomatically commit changes to your repository through GitHub Actions with customizable schedules.\n\n## Features ✨\n- Automated commits on schedule (Mon \u0026 Wed at 7 AM, 9 AM, 11 AM UTC)\n- Random meaningful commit messages\n- Web-only setup (no local configuration needed)\n- Safe credential handling\n- Manual trigger capability\n\n## Setup Guide 🛠️\n\n### Step 1: Create Workflow File\n1. In your repository, go to the **Actions** tab\n2. Click **New workflow**\n3. Choose **set up a workflow yourself**\n4. Name the file `.github/workflows/auto-commit.yml`\n5. Paste this content:\n\n```yaml\nname: auto-commit-bot\n\non:\n  schedule:\n    - cron: \"0 7,9,11 * * 1,3\" # 7 AM, 9 AM, 11 AM UTC on Mon/Wed\n  workflow_dispatch: # Allow manual triggering\n\njobs:\n  auto_commit:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          fetch-depth: 0\n\n      - name: Update timestamp\n        run: |\n          echo \"$(date -u +'%Y-%m-%dT%H:%M:%SZ')\" \u003e LAST_UPDATED\n\n      - name: Setup Git Config\n        run: |\n          git config --global user.email \"your@email.com\"\n          git config --global user.name \"yourusername\"\n\n      - name: Generate commit message\n        id: commit-msg\n        shell: bash\n        run: |\n          messages=(\n            \"chore(bot): 🚀 Project update\"\n            \"chore(bot): 🌟 Code improvements\"\n            \"chore(bot): 📦 Dependency sync\"\n            \"chore(bot): 🎨 Format tweaks\"\n            \"chore(bot): 🐛 Fix minor issues\"\n            \"chore(bot): 🔄 Routine sync\"\n            \"chore(bot): ⚡ Performance tweaks\"\n            \"chore(bot): ✨ Content update\"\n            \"chore(bot): 🔒 Security updates\"\n            \"chore(bot): 🌐 Localization\"\n          )\n          idx=$(( RANDOM % ${#messages[@]} ))\n          echo \"message=${messages[idx]}\" \u003e\u003e $GITHUB_OUTPUT\n\n      - name: Commit changes\n        id: commit\n        shell: bash\n        run: |\n          git add -A\n          if ! git diff-index --quiet HEAD; then\n            git commit -m \"${{ steps.commit-msg.outputs.message }}\"\n            echo \"commit_made=true\" \u003e\u003e $GITHUB_OUTPUT\n          fi\n\n      - name: Push changes\n        if: steps.commit.outputs.commit_made == 'true'\n        uses: ad-m/github-push-action@v0.8.0\n        with:\n          github_token: ${{ secrets.GITHUB_TOKEN }}\n          tags: false\n          force: false\n```\n\n6. Click **Start commit** and commit directly to `main`/`master` branch\n\n### Step 2: Update Workflow Permissions\n1. Go to **Settings** → **Actions** → **General**\n2. Under **Workflow permissions**:\n   - Select **Read and write permissions**\n   - Check **Allow GitHub Actions to create and approve pull requests**\n3. Click **Save**\n\n### Step 3: Manual Trigger (Optional)\n1. Go to **Actions** tab\n2. Select **auto-commit-bot** workflow\n3. Click **Run workflow**\n4. Select branch and click green **Run workflow** button\n\n## FAQ ❓\n\n**Q: Why aren't commits showing up?**\u003cbr\u003e\nA: 1) Check workflow runs for errors 2) Ensure cron schedule matches UTC time 3) Verify workflow permissions\n\n**Q: How to change commit schedule?**\u003cbr\u003e\nA: Edit the cron pattern in the workflow file using [crontab.guru](https://crontab.guru)\n\n**Q: Is this safe for public repos?**\u003cbr\u003e\nA: Yes! The GITHUB_TOKEN is automatically secured by GitHub.\n\n**Q: Can I customize commit messages?**\u003cbr\u003e\nA: Yes! Edit the `git commit -m` line in the workflow file.\n\n## Notes 📌\n- Commits will only occur when file changes exist\n- All times are in UTC\n- Emojis are randomized using WhatTheCommit API\n- No personal credentials required\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirai-web3%2Fauto-commit-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirai-web3%2Fauto-commit-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirai-web3%2Fauto-commit-bot/lists"}