From fafc7d7dbfc95bb3e7a591241e6f4b3956346675 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu Date: Mon, 12 Oct 2020 11:32:31 -0700 Subject: [PATCH] Fix powershell naming --- .../{Delete-Remote-Branches.ps1 => Delete-RemoteBranches.ps1} | 4 ++-- eng/pipelines/templates/jobs/tools-cleanup.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename eng/common/scripts/{Delete-Remote-Branches.ps1 => Delete-RemoteBranches.ps1} (84%) diff --git a/eng/common/scripts/Delete-Remote-Branches.ps1 b/eng/common/scripts/Delete-RemoteBranches.ps1 similarity index 84% rename from eng/common/scripts/Delete-Remote-Branches.ps1 rename to eng/common/scripts/Delete-RemoteBranches.ps1 index 71dcf3982ec..66913163bf4 100644 --- a/eng/common/scripts/Delete-Remote-Branches.ps1 +++ b/eng/common/scripts/Delete-RemoteBranches.ps1 @@ -20,11 +20,11 @@ foreach ($branch in $syncBranches) $branchName = $branch.Trim() $head = "${RepoOwner}/${RepoName}:${branchName}" LogDebug "Operating on branch [ $branchName ]" - $response = ListPullRequests -RepoOwner $RepoOwner -RepoName $RepoName -head $head + $response = List-PullRequests -RepoOwner $RepoOwner -RepoName $RepoName -head $head -AuthToken $AuthToken } catch { - LogError "ListPullRequests failed with exception:`n$_" + LogError "List-PullRequests failed with exception:`n$_" exit 1 } diff --git a/eng/pipelines/templates/jobs/tools-cleanup.yml b/eng/pipelines/templates/jobs/tools-cleanup.yml index 8ba4d2e9407..a7bb15e956c 100644 --- a/eng/pipelines/templates/jobs/tools-cleanup.yml +++ b/eng/pipelines/templates/jobs/tools-cleanup.yml @@ -24,7 +24,7 @@ jobs: inputs: pwsh: true workingDirectory: $(System.DefaultWorkingDirectory) - filePath: $(System.DefaultWorkingDirectory)/eng/common/scripts/Delete-Remote-Branches.ps1 + filePath: $(System.DefaultWorkingDirectory)/eng/common/scripts/Delete-RemoteBranches.ps1 arguments: > -RepoName ${{ repo }} -BranchPrefix "sync-eng/common-"