From 0faf6021de115201454afd70ce9aceb092023adf Mon Sep 17 00:00:00 2001 From: Akash Ghanate <37879272+aku98@users.noreply.github.com> Date: Thu, 14 May 2020 21:28:46 +0530 Subject: [PATCH 1/5] update in my_commands.sh the first statement cd takes you to the home directory which makes create.py unaccessible. Therefore the cd should be removed --- .my_commands.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.my_commands.sh b/.my_commands.sh index 3844488..c4d7ff4 100644 --- a/.my_commands.sh +++ b/.my_commands.sh @@ -1,7 +1,7 @@ #!/bin/bash function create() { - cd + source .env python create.py $1 cd $FILEPATH$1 From 680efdd988633c45a34353ab59d128a407d261b1 Mon Sep 17 00:00:00 2001 From: bhumilad <70130258+bhumilad@users.noreply.github.com> Date: Thu, 1 Oct 2020 23:12:40 +0530 Subject: [PATCH 2/5] Update create.py --- create.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create.py b/create.py index 7a33ca5..39400b8 100644 --- a/create.py +++ b/create.py @@ -14,7 +14,8 @@ def create(): os.makedirs(path + str(folderName)) user = Github(username, password).get_user() repo = user.create_repo(folderName) - print("Succesfully created repository {}".format(folderName)) + # f strings + print(f"Succesfully created repository {folderName}") if __name__ == "__main__": create() From 4f5bdb867d0aa3370f13ec7c3d9974ccd86acc89 Mon Sep 17 00:00:00 2001 From: Amlan-007 <56549024+Amlan-007@users.noreply.github.com> Date: Tue, 6 Oct 2020 21:10:32 +0530 Subject: [PATCH 3/5] Update remote.py --- windows_OS/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows_OS/remote.py b/windows_OS/remote.py index e842a0f..f5fad0f 100644 --- a/windows_OS/remote.py +++ b/windows_OS/remote.py @@ -27,7 +27,7 @@ os.system(c) print(f'{foldername} created locally') - os.system('code .') + os.system('code .') # add github token to the env vars else: print("create ") From 82b500ce00309a8e4170efdb0ff22e95d42b89c8 Mon Sep 17 00:00:00 2001 From: EricDev52 Date: Mon, 17 May 2021 20:08:22 +0200 Subject: [PATCH 4/5] Added the required username variable in the remove script --- remove.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remove.py b/remove.py index 6780127..144fd00 100644 --- a/remove.py +++ b/remove.py @@ -13,10 +13,10 @@ def remove(): browser.find_elements_by_xpath("//input[@name='login']")[0].send_keys(username) browser.find_elements_by_xpath("//input[@name='password']")[0].send_keys(password) browser.find_elements_by_xpath("//input[@name='commit']")[0].click() - browser.get('https://github.com/silv4b/' + reponame + '/settings') + browser.get('https://github.com/' + username + '/' + reponame + '/settings') browser.find_elements_by_xpath('//*[@id="options_bucket"]/div[9]/ul/li[4]/details/summary')[0].click() browser.find_elements_by_xpath( - '//*[@id="options_bucket"]/div[9]/ul/li[4]/details/details-dialog/div[3]/form/p/input')[0].send_keys(reponame) + '//*[@id="options_bucket"]/div[9]/ul/li[4]/details/details-dialog/div[3]/form/p/input')[0].send_keys(username + "/" + reponame) browser.find_elements_by_xpath( '//*[@id="options_bucket"]/div[9]/ul/li[4]/details/details-dialog/div[3]/form/button')[0].click() browser.get("https://github.com/" + username) From 6645d86b581b55f3b2b905390b9491f83d017471 Mon Sep 17 00:00:00 2001 From: Sitanshu Shrestha <88359842+ItsSitanshu@users.noreply.github.com> Date: Wed, 13 Oct 2021 22:24:15 +0545 Subject: [PATCH 5/5] Update README.md Also, great project --- windows_OS/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows_OS/README.md b/windows_OS/README.md index 4fef476..ab239ee 100644 --- a/windows_OS/README.md +++ b/windows_OS/README.md @@ -2,7 +2,7 @@ ``` create env vars : > projects directory as - "mp" -> Github tocken as - "gt" +> Github token as - "gt" ``` ### setup: