-
Clone this repository.
-
Create a github developper token with all permissions (I don't know which one you must take) and authorize Epitech.
-
Change
[your token]ofdata.jsonfile by ... your token (NO WAY?!?). So, it should looks like this:{ "token": "itsnotatokenbutyoumayunderstand" } -
Download Python (Don't you already have it?). Then download Pip and, with it, download PyGithub.
-
Now, you can simply use it like this:
./main.py [an ssh link]Where
[an ssh link]must be replaced by an ssh link of an Epitech project. So, it should looks like this:./main.py git@github.com:EpitechPromo20XX/B-DOP-200-NAN-2-1-chocolatine-your.name.git
And that's all! You can now create mirrors of any Epitech project with a little (and free 😉) CI/CD workflow.
You can add put some flag to affect the program. Exemple:
./main.py [an ssh link] -m mirror_name --friend lhay9 -f Queng123
This command line will create the mirror with mirror_name name and add lhay and Queng123 user to mirror repository.
There is the exhaustive list of available flags:
| Flag | Description |
|---|---|
| -h, --help | Show help message and exit |
| --friend FRIEND, -f FRIEND | Can add friend to mirror repository. |
| --mirror-name MIRROR_NAME, -m MIRROR_NAME | Change the mirror repository name. |
| --commit FIRST_COMMIT, -o FIRST_COMMIT | Change the first commit on repository. |