thrownewError(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);
}
else{
thrownewError(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);
error=newError(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`);
deprecate(`octokit.get${which.charAt(0).toUpperCase()+which.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
// Remove all refs/remotes/origin/* to avoid conflicts
branches=yieldgit.branchList(true);
for(constbranchofbranches){
yieldgit.branchDelete(true,branch);
}
// Clean
if(clean){
if(!(yieldgit.tryClean())){
core.debug(`The clean command failed. This might be caused by: 1) path too long, 2) permission issue, or 3) file in use. For futher investigation, manually run 'git clean -ffdx' on the directory '${repositoryPath}'.`);
remove=true;
}
elseif(!(yieldgit.tryReset())){
remove=true;
}
if(remove){
core.warning(`Unable to clean or reset the repository. The repository will be recreated instead.`);
letparameters=omit(options,["method","baseUrl","url","headers","request","mediaType"]);// extract variable names from URL to calculate remaining variables later
constuserAgent=`octokit-endpoint.js/${VERSION}${universalUserAgent.getUserAgent()}`;// DEFAULTS has all properties set that EndpointOptions has, except url.
// So we use RequestParameters and add method as additional required property.