From 086e52cd65021faf8bb407fc1e0301a1c299527a Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 7 Jun 2018 04:48:43 -0400 Subject: [PATCH] More work on release.py --- release.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/release.py b/release.py index 6174d81a..00b95351 100644 --- a/release.py +++ b/release.py @@ -39,6 +39,7 @@ fileToUploadPath = args.file InNoninteractiveMode = args.non_interactive commitMessage = ripmeJson.get("changeList")[0] debug = args.debug +accessToken = args.token if not os.path.isfile(fileToUploadPath): print("[!] Error: {} does not exist".format(fileToUploadPath)) @@ -67,8 +68,12 @@ if expectedHash != actualHash: print("[!] Expected hash is {}".format(expectedHash)) print("[!] Actual hash is {}".format(actualHash)) +# Ask the user to review the information before we precede # This only runs in we're in interactive mode if not InNoninteractiveMode: print("File path: {}\n".format(fileToUploadPath)) print("Release title: {}".format(commitMessage)) - input("\nPlease review the information above and ensure it is correct and then press enter") \ No newline at end of file + input("\nPlease review the information above and ensure it is correct and then press enter") + +print("Accessing github using token") +g = Github(accessToken) \ No newline at end of file