@@ -58,10 +58,23 @@ export class CustomRemote extends RemoteProvider {
5858 return this . getUrl ( this . urls . commit , this . getContext ( { id : sha } ) ) ;
5959 }
6060
61- protected override getUrlForComparison ( base : string , compare : string , notation : '..' | '...' ) : string | undefined {
61+ protected override getUrlForComparison ( base : string , head : string , notation : '..' | '...' ) : string | undefined {
6262 if ( this . urls . comparison == null ) return undefined ;
6363
64- return this . getUrl ( this . urls . comparison , this . getContext ( { ref1 : base , ref2 : compare , notation : notation } ) ) ;
64+ return this . getUrl ( this . urls . comparison , this . getContext ( { ref1 : base , ref2 : head , notation : notation } ) ) ;
65+ }
66+
67+ protected override getUrlForCreatePullRequest (
68+ base : { branch ?: string ; remote : { path : string ; url : string } } ,
69+ compare : { branch : string ; remote : { path : string ; url : string } } ,
70+ _options ?: { title ?: string ; description ?: string } ,
71+ ) : string | undefined {
72+ if ( this . urls . createPullRequest == null ) return undefined ;
73+
74+ return this . getUrl (
75+ this . urls . createPullRequest ,
76+ this . getContext ( { base : base . branch ?? '' , head : compare . branch } ) ,
77+ ) ;
6578 }
6679
6780 protected getUrlForFile ( fileName : string , branch ?: string , sha ?: string , range ?: Range ) : string {
0 commit comments