File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
- import * as path from 'path' ;
7
6
import * as vscode from 'vscode' ;
8
7
import { Repository } from '../api/api' ;
9
8
import { AuthProvider } from '../common/authentication' ;
@@ -126,15 +125,12 @@ export class RepositoriesManager implements vscode.Disposable {
126
125
if ( issueModel === undefined ) {
127
126
return undefined ;
128
127
}
129
- const issueRemoteUrl = issueModel . remote . url . substring (
130
- 0 ,
131
- issueModel . remote . url . length - path . extname ( issueModel . remote . url ) . length ,
132
- ) ;
128
+ const issueRemoteUrl = `${ issueModel . remote . owner . toLowerCase ( ) } /${ issueModel . remote . repositoryName . toLowerCase ( ) } ` ;
133
129
for ( const folderManager of this . _folderManagers ) {
134
130
if (
135
131
folderManager . gitHubRepositories
136
132
. map ( repo =>
137
- repo . remote . url . substring ( 0 , repo . remote . url . length - path . extname ( repo . remote . url ) . length ) ,
133
+ ` ${ repo . remote . owner . toLowerCase ( ) } / ${ repo . remote . repositoryName . toLowerCase ( ) } `
138
134
)
139
135
. includes ( issueRemoteUrl )
140
136
) {
You can’t perform that action at this time.
0 commit comments