constanswer=awaitwindow.showInformationMessage(localize('fork',"You don't have permissions to push to '{0}/{1}' on GitHub. Would you like to create a fork and push to it instead?",owner,repo),yes,no);
if(answer===no){
return;
}
constmatch=/^([^:]*):([^:]*)$/.exec(refspec);
constlocalName=match?match[1]:refspec;
constremoteName=match?match[2]:refspec;
constoctokit=awaitgetOctokit();
constgithubRepository=awaitwindow.withProgress({location:ProgressLocation.Notification,cancellable:false,title:'Publish to GitHub'},asyncprogress=>{