Skip to content

Commit 9e51028

Browse files
committed
Fix open PR description for SSH remotes
Fixes #4768
1 parent bbabd45 commit 9e51028

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/github/repositoriesManager.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,12 @@ export class RepositoriesManager implements vscode.Disposable {
126126
if (issueModel === undefined) {
127127
return undefined;
128128
}
129-
const issueRemoteUrl = issueModel.remote.url.substring(
130-
0,
131-
issueModel.remote.url.length - path.extname(issueModel.remote.url).length,
132-
);
129+
const issueRemoteUrl = `${issueModel.remote.owner.toLowerCase()}/${issueModel.remote.repositoryName.toLowerCase()}`;
133130
for (const folderManager of this._folderManagers) {
134131
if (
135132
folderManager.gitHubRepositories
136133
.map(repo =>
137-
repo.remote.url.substring(0, repo.remote.url.length - path.extname(repo.remote.url).length),
134+
`${repo.remote.owner.toLowerCase()}/${repo.remote.repositoryName.toLowerCase()}`
138135
)
139136
.includes(issueRemoteUrl)
140137
) {

0 commit comments

Comments
 (0)