You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: eng/common/scripts/Delete-RemoteBranches.ps1
+54-14
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,16 @@
1
+
[CmdletBinding(SupportsShouldProcess)]
1
2
param(
2
3
# The repo owner: e.g. Azure
3
4
$RepoOwner,
4
5
# The repo name. E.g. azure-sdk-for-java
5
6
$RepoName,
6
7
# Please use the RepoOwner/RepoName format: e.g. Azure/azure-sdk-for-java
7
8
$RepoId="$RepoOwner/$RepoName",
8
-
[Parameter(Mandatory=$true)]
9
-
$BranchPrefix,
9
+
# CentralRepoId the original PR to generate sync PR. E.g Azure/azure-sdk-tools for eng/common
10
+
$CentralRepoId,
11
+
# We start from the sync PRs, use the branch name to get the PR number of central repo. E.g. sync-eng/common-(<branchName>)-(<PrNumber>). Have group name on PR number.
12
+
# For sync-eng/common work, we use regex as "^sync-eng/common.*-(?<PrNumber>\d+).*$".
13
+
$BranchRegex,
10
14
# Date format: e.g. Tuesday, April 12, 2022 1:36:02 PM. Allow to use other date format.
0 commit comments