Skip to content

Commit 8acb051

Browse files
authored
Change template button has no purpose if there are 0 or 1 templates in repo (#8347)
Fixes #8344
1 parent aae226d commit 8acb051

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/github/createPRViewProvider.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,7 @@ export class CreatePullRequestViewProvider extends BaseCreatePullRequestViewProv
807807
const templates = await this._folderRepositoryManager.getAllPullRequestTemplates(this.model.baseOwner);
808808

809809
if (!templates || templates.length === 0) {
810-
vscode.window.showInformationMessage(vscode.l10n.t('No pull request templates found'));
811-
return this._replyMessage(message, undefined);
812-
}
813-
814-
if (templates.length === 1) {
815-
vscode.window.showInformationMessage(vscode.l10n.t('Only one template is available'));
810+
vscode.window.showQuickPick([vscode.l10n.t('No pull request templates found')]);
816811
return this._replyMessage(message, undefined);
817812
}
818813

0 commit comments

Comments
 (0)