From bd393d184ba5ae0f269c1f9d787df0d4309488f5 Mon Sep 17 00:00:00 2001 From: Graham Neubig Date: Fri, 27 Sep 2024 17:11:05 -0400 Subject: [PATCH] Add x-auth-token --- github_resolver/send_pull_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_resolver/send_pull_request.py b/github_resolver/send_pull_request.py index 5b999f0..960f055 100644 --- a/github_resolver/send_pull_request.py +++ b/github_resolver/send_pull_request.py @@ -182,7 +182,7 @@ def send_pull_request( push_owner = fork_owner if fork_owner else github_issue.owner push_repo = github_issue.repo - username_and_token = f"{github_username}:{github_token}" if github_username else github_token + username_and_token = f"{github_username}:{github_token}" if github_username else f"x-auth-token:{github_token}" push_command = ( f"git -C {patch_dir} push " f"https://{username_and_token}@github.com/"