@backstage/cli-module-github 0.1.2 → 0.1.4-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @backstage/cli-module-github
2
2
 
3
+ ## 0.1.4-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/cli-common@0.3.0-next.0
9
+ - @backstage/cli-node@0.3.4-next.0
10
+
11
+ ## 0.1.3
12
+
13
+ ### Patch Changes
14
+
15
+ - 696c78c: The `--help` output for commands now shows a generated usage line that lists the available flags and any positional arguments the command accepts.
16
+ - 2e6ffe6: Updated the standalone CLI executable to use the new CLI module runner.
17
+ - Updated dependencies
18
+ - @backstage/cli-node@0.3.3
19
+
3
20
  ## 0.1.2
4
21
 
5
22
  ### Patch Changes
@@ -26,7 +26,7 @@ if (isLocal) {
26
26
  require('@backstage/cli-node/config/nodeTransform.cjs');
27
27
  }
28
28
 
29
- const { runCliModule } = require('@backstage/cli-node');
29
+ const { runCli } = require('@backstage/cli-node');
30
30
  const cliModule = require(isLocal ? '../src/index' : '..').default;
31
31
  const pkg = require('../package.json');
32
- runCliModule({ module: cliModule, name: pkg.name, version: pkg.version });
32
+ runCli({ modules: [cliModule], name: pkg.name, version: pkg.version });
@@ -21,7 +21,7 @@ var openBrowser__default = /*#__PURE__*/_interopDefaultCompat(openBrowser);
21
21
  var index = async ({ args, info }) => {
22
22
  const { _: positionals } = cleye.cli(
23
23
  {
24
- help: { ...info, usage: `${info.usage} <github-org>` },
24
+ name: info.usage,
25
25
  booleanFlagNegation: true,
26
26
  parameters: ["<github-org>"]
27
27
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../src/commands/create-github-app/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport fs from 'fs-extra';\nimport chalk from 'chalk';\nimport { stringify as stringifyYaml } from 'yaml';\nimport inquirer, { Question, Answers } from 'inquirer';\nimport { targetPaths } from '@backstage/cli-common';\nimport { cli } from 'cleye';\n\nimport { GithubCreateAppServer } from './GithubCreateAppServer';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\n// This is an experimental command that at this point does not support GitHub Enterprise\n// due to lacking support for creating apps from manifests.\n// https://docs.github.com/en/free-pro-team@latest/developers/apps/creating-a-github-app-from-a-manifest\nexport default async ({ args, info }: CliCommandContext) => {\n const { _: positionals } = cli(\n {\n help: { ...info, usage: `${info.usage} <github-org>` },\n booleanFlagNegation: true,\n parameters: ['<github-org>'],\n },\n undefined,\n args,\n );\n\n const org = positionals[0];\n\n const answers: Answers = await inquirer.prompt({\n name: 'appType',\n type: 'checkbox',\n message:\n 'Select permissions [required] (these can be changed later but then require approvals in all installations)',\n choices: [\n {\n name: 'Read access to content (required by Software Catalog to ingest data from repositories)',\n value: 'read',\n checked: true,\n },\n {\n name: 'Read access to members (required by Software Catalog to ingest GitHub teams)',\n value: 'members',\n checked: true,\n },\n {\n name: 'Read and Write to content and actions (required by Software Templates to create new repositories)',\n value: 'write',\n },\n ],\n });\n\n if (answers.appType.length === 0) {\n console.log(chalk.red('You must select at least one permission'));\n process.exit(1);\n }\n\n await verifyGithubOrg(org);\n const { slug, name, ...config } = await GithubCreateAppServer.run({\n org,\n permissions: answers.appType,\n });\n\n const fileName = `github-app-${slug}-credentials.yaml`;\n const content = `# Name: ${name}\\n${stringifyYaml(config)}`;\n await fs.writeFile(targetPaths.resolveRoot(fileName), content);\n console.log(`GitHub App configuration written to ${chalk.cyan(fileName)}`);\n console.log(\n chalk.yellow(\n 'This file contains sensitive credentials, it should not be committed to version control and handled with care!',\n ),\n );\n console.log(\n \"Here's an example on how to update the integrations section in app-config.yaml\",\n );\n console.log(\n chalk.green(`\nintegrations:\n github:\n - host: github.com\n apps:\n - $include: ${fileName}`),\n );\n};\n\nasync function verifyGithubOrg(org: string): Promise<void> {\n let response;\n\n try {\n response = await fetch(\n `https://api.github.com/orgs/${encodeURIComponent(org)}`,\n );\n } catch (e) {\n console.log(\n chalk.yellow(\n 'Warning: Unable to verify existence of GitHub organization. ',\n e,\n ),\n );\n }\n\n if (response?.status === 404) {\n const questions: Question[] = [\n {\n type: 'confirm',\n name: 'shouldCreateOrg',\n message: `GitHub organization ${chalk.cyan(\n org,\n )} does not exist. Would you like to create a new Organization instead?`,\n },\n ];\n\n const answers = await inquirer.prompt(questions);\n\n if (!answers.shouldCreateOrg) {\n console.log(\n chalk.yellow('GitHub organization must exist to create GitHub app'),\n );\n process.exit(1);\n }\n\n openBrowser('https://github.com/account/organizations/new');\n\n console.log(\n chalk.yellow(\n 'Please re-run this command when you have created your new organization',\n ),\n );\n\n process.exit(0);\n }\n}\n"],"names":["cli","inquirer","chalk","GithubCreateAppServer","stringifyYaml","fs","targetPaths","openBrowser"],"mappings":";;;;;;;;;;;;;;;;;;;;AA8BA,YAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM,EAAE,CAAA,EAAG,WAAA,EAAY,GAAIA,SAAA;AAAA,IACzB;AAAA,MACE,IAAA,EAAM,EAAE,GAAG,IAAA,EAAM,OAAO,CAAA,EAAG,IAAA,CAAK,KAAK,CAAA,aAAA,CAAA,EAAgB;AAAA,MACrD,mBAAA,EAAqB,IAAA;AAAA,MACrB,UAAA,EAAY,CAAC,cAAc;AAAA,KAC7B;AAAA,IACA,MAAA;AAAA,IACA;AAAA,GACF;AAEA,EAAA,MAAM,GAAA,GAAM,YA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NL,sBAAA,CAAM,MAAA;AAAA,QACJ;AAAA;AACF,KACF;AAEA,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../src/commands/create-github-app/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport fs from 'fs-extra';\nimport chalk from 'chalk';\nimport { stringify as stringifyYaml } from 'yaml';\nimport inquirer, { Question, Answers } from 'inquirer';\nimport { targetPaths } from '@backstage/cli-common';\nimport { cli } from 'cleye';\n\nimport { GithubCreateAppServer } from './GithubCreateAppServer';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport type { CliCommandContext } from '@backstage/cli-node';\n\n// This is an experimental command that at this point does not support GitHub Enterprise\n// due to lacking support for creating apps from manifests.\n// https://docs.github.com/en/free-pro-team@latest/developers/apps/creating-a-github-app-from-a-manifest\nexport default async ({ args, info }: CliCommandContext) => {\n const { _: positionals } = cli(\n {\n name: info.usage,\n booleanFlagNegation: true,\n parameters: ['<github-org>'],\n },\n undefined,\n args,\n );\n\n const org = positionals[0];\n\n const answers: Answers = await inquirer.prompt({\n name: 'appType',\n type: 'checkbox',\n message:\n 'Select permissions [required] (these can be changed later but then require approvals in all installations)',\n choices: [\n {\n name: 'Read access to content (required by Software Catalog to ingest data from repositories)',\n value: 'read',\n checked: true,\n },\n {\n name: 'Read access to members (required by Software Catalog to ingest GitHub teams)',\n value: 'members',\n checked: true,\n },\n {\n name: 'Read and Write to content and actions (required by Software Templates to create new repositories)',\n value: 'write',\n },\n ],\n });\n\n if (answers.appType.length === 0) {\n console.log(chalk.red('You must select at least one permission'));\n process.exit(1);\n }\n\n await verifyGithubOrg(org);\n const { slug, name, ...config } = await GithubCreateAppServer.run({\n org,\n permissions: answers.appType,\n });\n\n const fileName = `github-app-${slug}-credentials.yaml`;\n const content = `# Name: ${name}\\n${stringifyYaml(config)}`;\n await fs.writeFile(targetPaths.resolveRoot(fileName), content);\n console.log(`GitHub App configuration written to ${chalk.cyan(fileName)}`);\n console.log(\n chalk.yellow(\n 'This file contains sensitive credentials, it should not be committed to version control and handled with care!',\n ),\n );\n console.log(\n \"Here's an example on how to update the integrations section in app-config.yaml\",\n );\n console.log(\n chalk.green(`\nintegrations:\n github:\n - host: github.com\n apps:\n - $include: ${fileName}`),\n );\n};\n\nasync function verifyGithubOrg(org: string): Promise<void> {\n let response;\n\n try {\n response = await fetch(\n `https://api.github.com/orgs/${encodeURIComponent(org)}`,\n );\n } catch (e) {\n console.log(\n chalk.yellow(\n 'Warning: Unable to verify existence of GitHub organization. ',\n e,\n ),\n );\n }\n\n if (response?.status === 404) {\n const questions: Question[] = [\n {\n type: 'confirm',\n name: 'shouldCreateOrg',\n message: `GitHub organization ${chalk.cyan(\n org,\n )} does not exist. Would you like to create a new Organization instead?`,\n },\n ];\n\n const answers = await inquirer.prompt(questions);\n\n if (!answers.shouldCreateOrg) {\n console.log(\n chalk.yellow('GitHub organization must exist to create GitHub app'),\n );\n process.exit(1);\n }\n\n openBrowser('https://github.com/account/organizations/new');\n\n console.log(\n chalk.yellow(\n 'Please re-run this command when you have created your new organization',\n ),\n );\n\n process.exit(0);\n }\n}\n"],"names":["cli","inquirer","chalk","GithubCreateAppServer","stringifyYaml","fs","targetPaths","openBrowser"],"mappings":";;;;;;;;;;;;;;;;;;;;AA8BA,YAAe,OAAO,EAAE,IAAA,EAAM,IAAA,EAAK,KAAyB;AAC1D,EAAA,MAAM,EAAE,CAAA,EAAG,WAAA,EAAY,GAAIA,SAAA;AAAA,IACzB;A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AA,QACNC,sBAAA,CAAM,OAAO,qDAAqD;AAAA,OACpE;AACA,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,IAChB;AAEA,IAAAK,4BAAA,CAAY,8CAA8C,CAAA;AAE1D,IAAA,OAAA,CAAQ,GAAA;AAAA,MACNL,sBAAA,CAAM,MAAA;AAAA,QACJ;AAAA;AACF,KACF;AAEA,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF;;;;"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var name = "@backstage/cli-module-github";
6
- var version = "0.1.2";
6
+ var version = "0.1.4-next.0";
7
7
  var description = "CLI module for Backstage CLI";
8
8
  var backstage = {
9
9
  role: "cli-module"
@@ -22,6 +22,7 @@ var repository = {
22
22
  var license = "Apache-2.0";
23
23
  var main = "src/index.ts";
24
24
  var types = "src/index.ts";
25
+ var bin = "bin/backstage-cli-module-github";
25
26
  var files = [
26
27
  "dist",
27
28
  "bin"
@@ -39,7 +40,7 @@ var dependencies = {
39
40
  "@backstage/cli-node": "workspace:^",
40
41
  "@octokit/request": "^8.0.0",
41
42
  chalk: "^4.0.0",
42
- cleye: "^2.3.0",
43
+ cleye: "^2.6.0",
43
44
  express: "^4.22.0",
44
45
  "fs-extra": "^11.2.0",
45
46
  inquirer: "^8.2.0",
@@ -51,7 +52,6 @@ var devDependencies = {
51
52
  "@types/express": "^4.17.6",
52
53
  "@types/fs-extra": "^11.0.0"
53
54
  };
54
- var bin = "bin/backstage-cli-module-github";
55
55
  var packageJson = {
56
56
  name: name,
57
57
  version: version,
@@ -63,11 +63,11 @@ var packageJson = {
63
63
  license: license,
64
64
  main: main,
65
65
  types: types,
66
+ bin: bin,
66
67
  files: files,
67
68
  scripts: scripts,
68
69
  dependencies: dependencies,
69
- devDependencies: devDependencies,
70
- bin: bin
70
+ devDependencies: devDependencies
71
71
  };
72
72
 
73
73
  exports.backstage = backstage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/cli-module-github",
3
- "version": "0.1.2",
3
+ "version": "0.1.4-next.0",
4
4
  "description": "CLI module for Backstage CLI",
5
5
  "backstage": {
6
6
  "role": "cli-module"
@@ -19,6 +19,7 @@
19
19
  "license": "Apache-2.0",
20
20
  "main": "dist/index.cjs.js",
21
21
  "types": "dist/index.d.ts",
22
+ "bin": "bin/backstage-cli-module-github",
22
23
  "files": [
23
24
  "dist",
24
25
  "bin"
@@ -32,11 +33,11 @@
32
33
  "test": "backstage-cli package test"
33
34
  },
34
35
  "dependencies": {
35
- "@backstage/cli-common": "^0.2.2",
36
- "@backstage/cli-node": "^0.3.2",
36
+ "@backstage/cli-common": "0.3.0-next.0",
37
+ "@backstage/cli-node": "0.3.4-next.0",
37
38
  "@octokit/request": "^8.0.0",
38
39
  "chalk": "^4.0.0",
39
- "cleye": "^2.3.0",
40
+ "cleye": "^2.6.0",
40
41
  "express": "^4.22.0",
41
42
  "fs-extra": "^11.2.0",
42
43
  "inquirer": "^8.2.0",
@@ -44,11 +45,10 @@
44
45
  "yaml": "^2.0.0"
45
46
  },
46
47
  "devDependencies": {
47
- "@backstage/cli": "^0.36.2",
48
+ "@backstage/cli": "0.36.4-next.2",
48
49
  "@types/express": "^4.17.6",
49
50
  "@types/fs-extra": "^11.0.0"
50
51
  },
51
- "bin": "bin/backstage-cli-module-github",
52
52
  "typesVersions": {
53
53
  "*": {
54
54
  "package.json": [