Update githubRepoCreate.ts

Signed-off-by: Nolan, Tavi <Tavi.Nolan@fmr.com>
This commit is contained in:
Nolan, Tavi
2024-04-11 11:19:51 +01:00
committed by Tavi Nolan
parent 565f2a5eba
commit e381232758
@@ -14,24 +14,22 @@
* limitations under the License.
*/
import * as inputProps from './inputProperties';
import * as outputProps from './outputProperties';
import { InputError } from '@backstage/errors';
import {
GithubCredentialsProvider,
ScmIntegrationRegistry,
} from '@backstage/integration';
import {
createGithubRepoWithCollaboratorsAndTopics,
getOctokitOptions,
} from './helpers';
import { Octokit } from 'octokit';
import {
createTemplateAction,
parseRepoUrl,
} from '@backstage/plugin-scaffolder-node';
import { InputError } from '@backstage/errors';
import { Octokit } from 'octokit';
import {
createGithubRepoWithCollaboratorsAndTopics,
getOctokitOptions,
} from './helpers';
import * as inputProps from './inputProperties';
import * as outputProps from './outputProperties';
import { examples } from './githubRepoCreate.examples';
/**
@@ -190,13 +188,6 @@ export function createGithubRepoCreateAction(options: {
throw new InputError('Invalid repository owner provided in repoUrl');
}
if (ctx.isDryRun) {
ctx.logger.info(`Performing dry run of creating repository`);
ctx.output('remoteUrl', 'www.example.com');
ctx.logger.info(`Dry run complete`);
return;
}
const newRepo = await createGithubRepoWithCollaboratorsAndTopics(
client,
repo,