Creates a repo with a README and clones the repo all in just two lines or one if you'd like The README is pre-filled with the Repo title and description
Wanted github's cli features but not all of the features.
So I did the next best thing, spent hours researching how to to do it so that I can do it in 30sec
Now you can too
Note
Recommend generating a new personal token with only repo permission
You need an internet connection for the script to work
Clone the repository
git clone https://github.com/musaubrian/auto-github
cd auto-github
./setup.py
./main.py --help
or
python3 main.py --help
usage: main.py [-h] [-r REPO] [-i ISSUE]
creates repo on github with README && gitignore
optional arguments:
-h, --help show this help message and exit
-r REPO, --repo REPO Name of the github repositiory
-i ISSUE, --issue ISSUE
get issues using issue status [open |
closed | all]
Repositroy arg (-r | --repo)
./main.py -r repository_name
Add repo description: description of the repo
Make it private (y/n)? y
<Response [201]>
========== successfully created repository_name ==========
Cloning into 'repository_name'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 6 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), 463 bytes | 33.00 KiB/s, done.
========== Process complete ==========
Issues arg (-i | --issue)
./main.py -i closed
issues status: closed
Repo to search issues: auto-github
Issue(title="clone function", number=2)
Issue(title="add issue tracker", number=1)