File tree Expand file tree Collapse file tree
apps/server/src/sourceControl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88import * as VcsProcess from "../vcs/VcsProcess.ts" ;
99import * as AzureDevOpsPullRequests from "./azureDevOpsPullRequests.ts" ;
10- import type * as SourceControlProvider from "./SourceControlProvider.ts" ;
10+ import * as SourceControlProvider from "./SourceControlProvider.ts" ;
1111
1212const DEFAULT_TIMEOUT_MS = 30_000 ;
1313
@@ -158,9 +158,9 @@ function normalizeChangeRequestId(reference: string): string {
158158}
159159
160160function normalizeSourceBranch ( headSelector : string ) : string {
161- const trimmed = headSelector . trim ( ) ;
162- const ownerSelector = / ^ ( [ ^ : / \s ] + ) : ( . + ) $ / u . exec ( trimmed ) ;
163- return ownerSelector ?. [ 2 ] ?. trim ( ) ?? trimmed ;
161+ return (
162+ SourceControlProvider . parseSourceControlOwnerRef ( headSelector ) ?. refName ?? headSelector . trim ( )
163+ ) ;
164164}
165165
166166function sourceBranch ( input : {
You can’t perform that action at this time.
0 commit comments