From 97cce67ac7814f2d06346234865199eee9c633ad Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Wed, 20 Apr 2022 11:38:32 +0200 Subject: [PATCH] cli: Add config instructions to create-github-app command Signed-off-by: Johan Haals --- .changeset/fuzzy-seahorses-teach.md | 5 +++++ packages/cli/src/commands/create-github-app/index.ts | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .changeset/fuzzy-seahorses-teach.md diff --git a/.changeset/fuzzy-seahorses-teach.md b/.changeset/fuzzy-seahorses-teach.md new file mode 100644 index 0000000000..71ef28dd52 --- /dev/null +++ b/.changeset/fuzzy-seahorses-teach.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Add instructions to `create-github-app` command. diff --git a/packages/cli/src/commands/create-github-app/index.ts b/packages/cli/src/commands/create-github-app/index.ts index c62234c636..f2d6ba0a91 100644 --- a/packages/cli/src/commands/create-github-app/index.ts +++ b/packages/cli/src/commands/create-github-app/index.ts @@ -35,5 +35,15 @@ export default async (org: string) => { 'This file contains sensitive credentials, it should not be committed to version control and handled with care!', ), ); - // TODO: log instructions on how to use the newly created app configuration. + console.log( + "Here's an example on how to update the integrations section in app-config.yaml", + ); + console.log( + chalk.green(` +integrations: + github: + - host: github.com + apps: + - $include: ${fileName}`), + ); };