From fd46f02285ffb6bdeeac8fda47bd9ad84702a5e2 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Tue, 10 Dec 2024 08:20:21 -0800 Subject: [PATCH] MicrosoftDocs/AzureRestPreview's default branch is now main --- eng/pipelines/branch-cleanup.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/eng/pipelines/branch-cleanup.yml b/eng/pipelines/branch-cleanup.yml index d5ff81a588f..9c5f2a6497f 100644 --- a/eng/pipelines/branch-cleanup.yml +++ b/eng/pipelines/branch-cleanup.yml @@ -175,12 +175,9 @@ jobs: pwsh: true workingDirectory: $(System.DefaultWorkingDirectory) filePath: $(System.DefaultWorkingDirectory)/eng/common/scripts/Delete-RemoteBranches.ps1 - # TODO: 00a0dc86-3419-4dd5-b119-e83edaf17e7e needs to be skipped because it's the default - # branch for the repository. This will be removed once the default branch has been changed - # to main arguments: > -RepoId "${{ repo }}" - -BranchRegex "^(result_)?(?!00a0dc86-3419-4dd5-b119-e83edaf17e7e)([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-)|(openapiHub_production_)|(openapiHub_preproduction_)[0-9a-z]{12}$" + -BranchRegex "^(result_)?([0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-)|(openapiHub_production_)|(openapiHub_preproduction_)[0-9a-z]{12}$" -LastCommitOlderThan ((Get-Date).AddDays(-14)) -AuthToken $(azuresdk-github-pat) -WhatIf:$${{parameters.WhatIfPreference}} \ No newline at end of file