{"id":20733397,"url":"https://github.com/codewithmayank-py/automation-script-commits","last_synced_at":"2026-04-24T13:31:47.714Z","repository":{"id":255465870,"uuid":"851040909","full_name":"CodeWithMayank-Py/automation-script-commits","owner":"CodeWithMayank-Py","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-17T14:01:45.000Z","size":9071,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-17T16:05:35.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/CodeWithMayank-Py.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-02T10:10:03.000Z","updated_at":"2026-04-17T14:01:49.000Z","dependencies_parsed_at":"2026-04-17T16:02:05.705Z","dependency_job_id":null,"html_url":"https://github.com/CodeWithMayank-Py/automation-script-commits","commit_stats":null,"previous_names":["codewithmayank-py/automation-script-commits"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeWithMayank-Py/automation-script-commits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithMayank-Py%2Fautomation-script-commits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithMayank-Py%2Fautomation-script-commits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithMayank-Py%2Fautomation-script-commits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithMayank-Py%2Fautomation-script-commits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeWithMayank-Py","download_url":"https://codeload.github.com/CodeWithMayank-Py/automation-script-commits/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithMayank-Py%2Fautomation-script-commits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32225732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-17T05:25:09.867Z","updated_at":"2026-04-24T13:31:47.681Z","avatar_url":"https://github.com/CodeWithMayank-Py.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Automation Script Commits\n\nWelcome to the **Automation Script Commits** repository! This project is designed to automate daily commits to a GitHub repository using a Python script. The script is configured to make multiple commits daily, which can be useful for testing or other purposes.\n\n## 📁 Table of Contents\n\n- [📜 Overview](#-overview)\n- [⚙️ Setup](#-setup)\n- [🔧 Configuration](#-configuration)\n- [📅 Scheduling](#-scheduling)\n- [📜 Usage](#-usage)\n- [🛠️ Troubleshooting](#-troubleshooting)\n- [📄 License](#-license)\n\n## 📜 Overview\n\nThis project uses a Python script to create multiple commits in a GitHub repository daily. It leverages GitHub Actions to automate the running of this script at a specified time each day.\n\n## ⚙️ Setup\n\n### 🖥️ Prerequisites\n\n- Python 3.9+\n- Git\n- GitHub account\n\n### 🛠️ Installation\n\n1. **Clone the repository:**\n\n    ```sh\n    git clone https://github.com/CodeWithMayank-Py/automation-script-commits-new.git\n    cd automation-script-commits-new\n    ```\n\n2. **Set up a virtual environment:**\n\n    ```sh\n    python -m venv venv\n    source venv/bin/activate  # On Windows use: venv\\Scripts\\activate\n    ```\n\n3. **Install dependencies:**\n\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n4. **Configure GitHub Actions:**\n\n   Ensure the `.github/workflows/daily-commits.yml` file is set up with the correct schedule and environment as described in the [Scheduling](#-scheduling) section.\n\n## 🔧 Configuration\n\n### 🌟 Customizing the Script\n\nEdit `main.py` to customize the commit messages or the number of commits:\n\n- **Modify commit messages:** Change the `commit_message` variable.\n- **Adjust the number of commits:** Update the `for i in range(40)` loop in `main.py`.\n\n### 📅 GitHub Actions\n\nEnsure that the GitHub Actions YAML file in `.github/workflows/daily-commits.yml` is properly configured. It should look like:\n\n```yaml\nname: Daily Commits\n\non:\n  schedule:\n    - cron: '30 12 * * *'  # Runs at 12:30 PM UTC (05:30 PM IST)\n  workflow_dispatch:  # Allows manual trigger if needed\n\njobs:\n  daily-commits:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v3\n\n      - name: Set up Python\n        uses: actions/setup-python@v4\n        with:\n          python-version: 3.9\n\n      - name: Install dependencies\n        run: |\n          python -m pip install --upgrade pip\n          pip install -r requirements.txt\n\n      - name: Run script\n        run: python main.py\n\n      - name: Commit changes\n        run: git status\n\n```\n## 📅 Scheduling\n\nThe script is scheduled to run daily at **05:30 PM IST** (12:30 PM UTC) using GitHub Actions. To confirm or adjust the schedule, edit the `cron` expression in the `.github/workflows/daily-commits.yml` file.\n\n### Cron Expression\n\n- **Cron Syntax:** `30 12 * * *`\n  - `30` - Minute (30th minute)\n  - `12` - Hour (12 PM UTC)\n  - `*` - Day of the month (Every day)\n  - `*` - Month (Every month)\n  - `*` - Day of the week (Every day of the week)\n\n## 📜 Usage\n\n1. **Run Locally:** Test the script locally before deploying to ensure it behaves as expected. Run the following command:\n\n    ```sh\n    python main.py\n    ```\n\n2. **Deploy:** Once you have confirmed that everything works correctly, push your changes to the GitHub repository. The GitHub Actions workflow will handle the rest.\n\n3. **Monitor Actions:** Check the \"Actions\" tab on GitHub to ensure the workflow is running as expected. This tab will provide information about each run and any potential errors.\n\n## 🛠️ Troubleshooting\n\n- **Workflow Not Triggering:** If the workflow is not running as expected:\n  - Ensure that the `cron` schedule is correctly set in the `.github/workflows/daily-commits.yml` file.\n  - Verify that the workflow file is properly committed to the repository.\n  - Check the \"Actions\" tab for any error messages or failed runs.\n\n- **Script Errors:** If the script fails to execute:\n  - Review the logs provided in GitHub Actions for specific error messages.\n  - Check the script’s dependencies and ensure all required modules are installed.\n\n- **Authentication Issues:** If you encounter authentication errors:\n  - Ensure that the `GITHUB_TOKEN` has the necessary permissions.\n  - Verify that any secrets or environment variables required for authentication are correctly set up in the GitHub repository settings.\n\n## 📄 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\nHappy coding! 🚀 If you have any questions or run into issues, feel free to [open an issue](https://github.com/CodeWithMayank-Py/automation-script-commits-new/issues).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmayank-py%2Fautomation-script-commits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithmayank-py%2Fautomation-script-commits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithmayank-py%2Fautomation-script-commits/lists"}