@backstage/plugin-scaffolder-backend 1.4.0 → 1.5.0-next.2

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/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ import { Knex } from 'knex';
21
21
  import { LocationSpec } from '@backstage/plugin-catalog-backend';
22
22
  import { Logger } from 'winston';
23
23
  import { Observable } from '@backstage/types';
24
+ import { Octokit } from 'octokit';
24
25
  import { PluginDatabaseManager } from '@backstage/backend-common';
25
26
  import { Schema } from 'jsonschema';
26
27
  import { ScmIntegrationRegistry } from '@backstage/integration';
@@ -441,6 +442,22 @@ gitAuthorEmail?: string | undefined;
441
442
  sourcePath?: string | undefined;
442
443
  }>;
443
444
 
445
+ /**
446
+ * Creates a new action that creates a Gerrit review
447
+ * @public
448
+ */
449
+ export declare function createPublishGerritReviewAction(options: {
450
+ integrations: ScmIntegrationRegistry;
451
+ config: Config;
452
+ }): TemplateAction< {
453
+ repoUrl: string;
454
+ branch?: string | undefined;
455
+ sourcePath?: string | undefined;
456
+ gitCommitMessage?: string | undefined;
457
+ gitAuthorName?: string | undefined;
458
+ gitAuthorEmail?: string | undefined;
459
+ }>;
460
+
444
461
  /**
445
462
  * Creates a new action that initializes a git repository of the content in the workspace
446
463
  * and publishes it to GitHub.
@@ -497,6 +514,8 @@ draft?: boolean | undefined;
497
514
  targetPath?: string | undefined;
498
515
  sourcePath?: string | undefined;
499
516
  token?: string | undefined;
517
+ reviewers?: string[] | undefined;
518
+ teamReviewers?: string[] | undefined;
500
519
  }>;
501
520
 
502
521
  /**
@@ -534,6 +553,7 @@ description: string;
534
553
  branchName: string;
535
554
  targetPath: string;
536
555
  token?: string | undefined;
556
+ commitAction?: "update" | "create" | "delete" | undefined;
537
557
  /** @deprecated Use projectPath instead */
538
558
  projectid?: string | undefined;
539
559
  removeSourceBranch?: boolean | undefined;
@@ -659,14 +679,14 @@ export declare function fetchContents({ reader, integrations, baseUrl, fetchUrl,
659
679
  }): Promise<void>;
660
680
 
661
681
  /** @public */
662
- export declare interface OctokitWithPullRequestPluginClient {
682
+ export declare type OctokitWithPullRequestPluginClient = Octokit & {
663
683
  createPullRequest(options: createPullRequest.Options): Promise<{
664
684
  data: {
665
685
  html_url: string;
666
686
  number: number;
667
687
  };
668
688
  } | null>;
669
- }
689
+ };
670
690
 
671
691
  /**
672
692
  * RouterOptions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend",
3
3
  "description": "The Backstage backend plugin that helps you create new things",
4
- "version": "1.4.0",
4
+ "version": "1.5.0-next.2",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -35,15 +35,15 @@
35
35
  "build:assets": "node scripts/build-nunjucks.js"
36
36
  },
37
37
  "dependencies": {
38
- "@backstage/backend-common": "^0.14.1",
39
- "@backstage/backend-plugin-api": "^0.1.0",
38
+ "@backstage/backend-common": "^0.15.0-next.1",
39
+ "@backstage/backend-plugin-api": "^0.1.1-next.0",
40
40
  "@backstage/catalog-client": "^1.0.4",
41
41
  "@backstage/catalog-model": "^1.1.0",
42
42
  "@backstage/config": "^1.0.1",
43
43
  "@backstage/errors": "^1.1.0",
44
- "@backstage/integration": "^1.2.2",
45
- "@backstage/plugin-catalog-backend": "^1.3.0",
46
- "@backstage/plugin-catalog-node": "^1.0.0",
44
+ "@backstage/integration": "^1.3.0-next.1",
45
+ "@backstage/plugin-catalog-backend": "^1.3.1-next.2",
46
+ "@backstage/plugin-catalog-node": "^1.0.1-next.0",
47
47
  "@backstage/plugin-scaffolder-common": "^1.1.2",
48
48
  "@backstage/types": "^1.0.0",
49
49
  "@gitbeaker/core": "^35.6.0",
@@ -79,8 +79,8 @@
79
79
  "zod": "^3.11.6"
80
80
  },
81
81
  "devDependencies": {
82
- "@backstage/backend-test-utils": "^0.1.26",
83
- "@backstage/cli": "^0.18.0",
82
+ "@backstage/backend-test-utils": "^0.1.27-next.0",
83
+ "@backstage/cli": "^0.18.1-next.1",
84
84
  "@types/command-exists": "^1.2.0",
85
85
  "@types/fs-extra": "^9.0.1",
86
86
  "@types/git-url-parse": "^9.0.0",
@@ -103,5 +103,5 @@
103
103
  "assets"
104
104
  ],
105
105
  "configSchema": "config.d.ts",
106
- "gitHead": "999878d8f1ae30f6a15925816af2016cb9d717a1"
106
+ "gitHead": "9b7d23351cdbe29fb16060f6f9e8442932d3fa29"
107
107
  }