Mooner510 / CommitSpammer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commit Spammer

Spam a lot of dummy-commits!
≪ Report Bugs ≫

Requires Java 21 or higher to run

Give me star if you like this project

Getting Started

1. Fork or Clone this Repository

You can clone this repository as a .zip file here.

Or, you can clone it using your IDE or another git program.

2. Generate Github Token

You can generate new github token here

Remember to copy the generated token. Do not close the window before copying.

3. Edit Config Class

You have to edit Config Class. If you know how to use java, edit the Config class to you want.

If you don't know how to use java, just input requirements between " symbols.

Use the IDE of your choice. You can also use notepad.

Example

package kr.mooner510.commitspammer;

import java.util.List;

public class Config {
    public static final String userName = "Mooner510"; // TODO: Enter your github username
    public static final String email = "mooner@mooner.com"; // TODO: Enter your github email
    public static final String repoPath = "./repo"; // TODO: Enter your root repository directory path
    public static final String token = "ghp_abcdefghijklmnopqrstuvwxyz"; // TODO: Enter your github token
    public static final List<String> remotes = List.of( // TODO: Enter your name of repositories for dummy-commit
            "dummy-commit-3",
            "dummy-commit-4"
    );
}

4. Build and Run

Create new class for run. There is an example.

Make 20000 commit using all repositories without cloning repositories:

import kr.mooner510.commitspammer.Commiter;

public class Main {
    public static void main(String[] args) {
        new Commiter(Config.remotes, false, 20000);
    }
}

Clone all repositories and make 60000 commit using all repositories:

import kr.mooner510.commitspammer.Commiter;

public class Main {
    public static void main(String[] args) {
        new Commiter(Config.remotes, true, 60000);
    }
}

Push all commits made by the Commiter class to all repositories every 20 seconds:

import kr.mooner510.commitspammer.Pusher;

public class Main {
    public static void main(String[] args) {
        new Pusher(Config.remotes, 20000);
    }
}

Enjoy!

About


Languages

Language:Java 100.0%