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/TypeSpec-Project-Process.ps1
+17-11Lines changed: 17 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ param (
8
8
[Parameter(Position=1)]
9
9
[string] $CommitHash,
10
10
[Parameter(Position=2)]
11
-
[string] $RepoUrl
11
+
[string] $RepoUrl,
12
+
[switch] $SkipSyncAndGenerate
12
13
)
13
14
14
15
.$PSScriptRoot/common.ps1
@@ -111,7 +112,7 @@ $specRepoRoot = ""
111
112
$generateFromLocalTypeSpec=$false
112
113
# remote url scenario
113
114
# example url of tspconfig.yaml: https://github.com/Azure/azure-rest-api-specs-pr/blob/724ccc4d7ef7655c0b4d5c5ac4a5513f19bbef35/specification/containerservice/Fleet.Management/tspconfig.yaml
114
-
if ($TypeSpecProjectDirectory-match'^https://github.com/(?<repo>Azure/azure-rest-api-specs(-pr)?)/blob/(?<commit>[0-9a-f]{40})/(?<path>.*)/tspconfig.yaml$') {
115
+
if ($TypeSpecProjectDirectory-match'^https://github.com/(?<repo>[^/]*/azure-rest-api-specs(-pr)?)/blob/(?<commit>[0-9a-f]{40})/(?<path>.*)/tspconfig.yaml$') {
0 commit comments