https://github.com/nirmalyax/git-bot
Git Bot is a Node.js tool automating the creation of random-date commits in Git repositories. Ideal for testing and simulating diverse commit histories.
https://github.com/nirmalyax/git-bot
commit git nodejs
Last synced: 12 months ago
JSON representation
Git Bot is a Node.js tool automating the creation of random-date commits in Git repositories. Ideal for testing and simulating diverse commit histories.
- Host: GitHub
- URL: https://github.com/nirmalyax/git-bot
- Owner: nirmalyax
- License: mit
- Created: 2023-11-12T19:40:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T19:26:38.000Z (over 2 years ago)
- Last Synced: 2025-01-23T04:41:31.043Z (over 1 year ago)
- Topics: commit, git, nodejs
- Language: JavaScript
- Homepage:
- Size: 1000 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Git Bot
Git Bot is a Node.js application that automates the process of creating commits with random dates in a Git repository. This tool can be useful for testing and simulating commit histories with diverse timestamp scenarios.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [License](#license)
## Installation
To use Git Bot, follow these steps:
1. Clone the repository:
```bash
git clone https://github.com/nirmalyax/Git-Bot.git
```
2. Navigate to the project directory:
```bash
cd Git-Bot
```
3. Install dependencies:
```bash
npm is already provided
```
## Usage
To run Git Bot, use the following command:
```bash
node index.js
```
This command will generate random commits with different dates and push them to the remote repository.
**Note:** Ensure that you are in the correct Git repository before running the command.
## Configuration
You can customize the behavior of Git Bot by modifying the `config.js` file. The configuration file includes options such as the number of commits to generate, the starting date, and the commit message format.
```javascript
// config.js
const x = random.integer(0, 54);
const y = random.integer(0, 6);
const DATE = moment()
.subtract(1, "y")
.add(1, "d")
.add(x, "w")
.add(y, "d")
.format();
```
Adjust these options according to your requirements.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.