Auto-Commit Bot is a Python-based tool designed to automate the process of generating, committing, and pushing changes to a GitHub repository. Ideal for developers and teams who need to ensure their repositories stay updated with minimal manual intervention. This bot can be scheduled to run at regular intervals, such as every 24 hours, to handle file creation and git operations automatically.
- Automated File Generation: Create Python scripts with autogenerated headers including author information, date, and description.
- Seamless Git Operations: Automate adding, committing, and pushing changes to your GitHub repository.
- Scheduled Execution: Set up a sleep timer to run the bot at specified intervals for ongoing automation.
- GUI Application: A user-friendly graphical interface for configuring and running the bot without needing to edit code manually.
- Standalone Executable: An easy-to-use Windows executable that includes all necessary modules and dependencies.
- Automation
- GitHub Actions
- Python Scripts
- Code Commit
- Automated Git Operations
- Scheduled Tasks
- Programming
- GUI Application
- Python 3.6 or higher is required to run the script. Ensure your Python environment meets this requirement.
Follow these steps to set up and use the Auto-Commit Bot:
git clone https://github.com/Hamed-Gharghi/Auto-Commit-Bot-Github.git
cd Auto-Commit-Bot-Github
-
Open
Auto_Commit.py
and update the following placeholders:path_to_your_repository
: Specify the local path to your Git repository.your_github_username
: Enter your GitHub username.your_github_token
: Generate and enter your GitHub token.your_repository_name
: Provide the name of your GitHub repository.
-
Run the Script:
python Auto_Commit.py
-
Schedule the Script: Use a scheduler such as
cron
on Unix-based systems or Task Scheduler on Windows to automate script execution at your desired interval (e.g., every 24 hours).
-
Download the Executable: Download the Windows executable from the Releases page.
-
Run the Executable:
- Double-click
Auto_Commit_GUI.exe
to launch the application. - Enter the repository path, GitHub username, GitHub token, file name, and sleep time.
- Click "Start Auto Commit Bot" to begin automation.
- Click "Stop Auto Commit Bot" to halt the process.
- Double-click
-
Configure the GUI:
- Browse Repository: Use the "Browse" button to select your Git repository directory.
- GitHub Token Tutorial: Click the "How to get GitHub Token?" button for detailed instructions on obtaining a GitHub Personal Access Token.
This project is licensed under the MIT License. See the LICENSE file for more details.
We welcome contributions to enhance the Auto-Commit Bot. If you have suggestions or want to contribute, please fork the repository, make your changes, and submit a pull request. Your contributions are greatly appreciated!
- Author: Hamed Gharghi
- Email: Hamedgharghi1@gmail.com
- GitHub Profile: Hamed-Gharghi
- GitHub Personal Access Token Tutorial: For information on generating a GitHub Personal Access Token, refer to the GitHub Documentation.
- PyInstaller Documentation: For details on how to package Python applications, visit the PyInstaller Documentation.
Thank you for using the Auto-Commit Bot! If you have any questions or feedback, feel free to reach out through the contact details provided above.