Skip to content

Commit

Permalink
Moves toke fetching after checking for a valid repo
Browse files Browse the repository at this point in the history
  • Loading branch information
N0W0RK committed Jul 29, 2024
1 parent 55ef13c commit 5f6bf9a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@ def main(argv):
args = parser.parse_args(argv)
if args.verbose:
logging.getLogger().setLevel(logging.DEBUG)
if args.token is None:
args.token = getpass.getpass("Please enter your GitHub token: ")
logging.info(f"Using current branch: {args.branch_name}")
if args.base_branch_name is None:
args.base_branch_name = "origin/develop"
logging.info(f"Base branch set to: {args.base_branch_name}")
Expand All @@ -321,6 +318,10 @@ def main(argv):

client_file_changes, server_file_changes = filter_file_changes(file_changes)

if args.token is None:
args.token = getpass.getpass("Please enter your GitHub token: ")
logging.info(f"Using current branch: {args.branch_name}")

headers = {
"Authorization": f"token {args.token}",
"Accept": "application/vnd.github.v3+json",
Expand Down

0 comments on commit 5f6bf9a

Please sign in to comment.