File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -158,15 +158,20 @@ export class BitbucketServerRemote extends RemoteProvider {
158
158
}
159
159
160
160
protected override getUrlForComparison ( base : string , head : string , _notation : '..' | '...' ) : string {
161
- return this . encodeUrl ( `${ this . baseUrl } /branches/compare/${ base } %0D${ head } ` ) . replace ( '%250D' , '%0D' ) ;
161
+ const query = new URLSearchParams ( { sourceBranch : `refs/heads/${ head } ` , targetBranch : `refs/heads/${ base } ` } ) ;
162
+ return `${ this . baseUrl } /compare?${ query . toString ( ) } ` ;
162
163
}
163
164
164
165
protected override getUrlForCreatePullRequest (
165
166
base : { branch ?: string ; remote : { path : string ; url : string } } ,
166
167
head : { branch : string ; remote : { path : string ; url : string } } ,
167
168
options ?: { title ?: string ; description ?: string } ,
168
169
) : string | undefined {
169
- const query = new URLSearchParams ( { sourceBranch : head . branch , targetBranch : base . branch ?? '' } ) ;
170
+ const query = new URLSearchParams ( {
171
+ sourceBranch : head . branch ,
172
+ targetBranch : base . branch ?? '' ,
173
+ activeTab : 'compare-diff-tab' ,
174
+ } ) ;
170
175
// TODO: figure this out
171
176
// query.set('targetRepoId', base.repoId);
172
177
if ( options ?. title ) {
You can’t perform that action at this time.
0 commit comments