Merge pull request #1479 from github/koesie10/improve-controller-repo-prompt

Improve prompot for controller repo
This commit is contained in:
Koen Vlaswinkel
2022-08-29 09:53:26 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -288,7 +288,7 @@
"default": "", "default": "",
"pattern": "^$|^(?:[a-zA-Z0-9]+-)*[a-zA-Z0-9]+/[a-zA-Z0-9-_]+$", "pattern": "^$|^(?:[a-zA-Z0-9]+-)*[a-zA-Z0-9]+/[a-zA-Z0-9-_]+$",
"patternErrorMessage": "Please enter a valid GitHub repository", "patternErrorMessage": "Please enter a valid GitHub repository",
"markdownDescription": "[For internal use only] The name of the GitHub repository where you can view the progress and results of the \"Run Variant Analysis\" command. The repository should be of the form `<owner>/<repo>`)." "markdownDescription": "[For internal use only] The name of the GitHub repository in which the GitHub Actions workflow is run when using the \"Run Variant Analysis\" command. The repository should be of the form `<owner>/<repo>`)."
} }
} }
}, },

View File

@@ -217,7 +217,7 @@ export async function runRemoteQuery(
if (!controllerRepo || !REPO_REGEX.test(controllerRepo)) { if (!controllerRepo || !REPO_REGEX.test(controllerRepo)) {
void logger.log(controllerRepo ? 'Invalid controller repository name.' : 'No controller repository defined.'); void logger.log(controllerRepo ? 'Invalid controller repository name.' : 'No controller repository defined.');
controllerRepo = await window.showInputBox({ controllerRepo = await window.showInputBox({
title: 'Controller repository in which to display progress and results of variant analysis', title: 'Controller repository in which to run the GitHub Actions workflow for this variant analysis',
placeHolder: '<owner>/<repo>', placeHolder: '<owner>/<repo>',
prompt: 'Enter the name of a GitHub repository in the format <owner>/<repo>', prompt: 'Enter the name of a GitHub repository in the format <owner>/<repo>',
ignoreFocusOut: true, ignoreFocusOut: true,