@backstage/plugin-scaffolder-backend 1.5.0-next.1 → 1.6.0-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/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  /// <reference types="node" />
8
8
 
9
- import { BackendRegistrable } from '@backstage/backend-plugin-api';
9
+ import { BackendFeature } from '@backstage/backend-plugin-api';
10
10
  import { CatalogApi } from '@backstage/catalog-client';
11
11
  import { CatalogProcessor } from '@backstage/plugin-catalog-backend';
12
12
  import { CatalogProcessorEmit } from '@backstage/plugin-catalog-backend';
@@ -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';
@@ -263,6 +264,7 @@ export declare function createGithubRepoCreateAction(options: {
263
264
  }): TemplateAction< {
264
265
  repoUrl: string;
265
266
  description?: string | undefined;
267
+ homepage?: string | undefined;
266
268
  access?: string | undefined;
267
269
  deleteBranchOnMerge?: boolean | undefined;
268
270
  gitAuthorName?: string | undefined;
@@ -408,21 +410,6 @@ enableLFS?: boolean | undefined;
408
410
  token?: string | undefined;
409
411
  }>;
410
412
 
411
- /**
412
- * This task is useful for local development and testing of both the scaffolder
413
- * and scaffolder templates.
414
- *
415
- * @remarks
416
- *
417
- * This action is not installed by default and should not be installed in
418
- * production, as it writes the files to the local filesystem of the scaffolder.
419
- *
420
- * @public
421
- */
422
- export declare function createPublishFileAction(): TemplateAction< {
423
- path: string;
424
- }>;
425
-
426
413
  /**
427
414
  * Creates a new action that initializes a git repository of the content in the workspace
428
415
  * and publishes it to a Gerrit instance.
@@ -470,6 +457,7 @@ export declare function createPublishGithubAction(options: {
470
457
  }): TemplateAction< {
471
458
  repoUrl: string;
472
459
  description?: string | undefined;
460
+ homepage?: string | undefined;
473
461
  access?: string | undefined;
474
462
  defaultBranch?: string | undefined;
475
463
  protectDefaultBranch?: boolean | undefined;
@@ -513,6 +501,8 @@ draft?: boolean | undefined;
513
501
  targetPath?: string | undefined;
514
502
  sourcePath?: string | undefined;
515
503
  token?: string | undefined;
504
+ reviewers?: string[] | undefined;
505
+ teamReviewers?: string[] | undefined;
516
506
  }>;
517
507
 
518
508
  /**
@@ -615,6 +605,8 @@ export declare interface CurrentClaimedTask {
615
605
  export declare class DatabaseTaskStore implements TaskStore {
616
606
  private readonly db;
617
607
  static create(options: DatabaseTaskStoreOptions): Promise<DatabaseTaskStore>;
608
+ private static getClient;
609
+ private static runMigrations;
618
610
  private constructor();
619
611
  list(options: {
620
612
  createdBy?: string;
@@ -625,14 +617,14 @@ export declare class DatabaseTaskStore implements TaskStore {
625
617
  createTask(options: TaskStoreCreateTaskOptions): Promise<TaskStoreCreateTaskResult>;
626
618
  claimTask(): Promise<SerializedTask | undefined>;
627
619
  heartbeatTask(taskId: string): Promise<void>;
628
- listStaleTasks({ timeoutS }: {
620
+ listStaleTasks(options: {
629
621
  timeoutS: number;
630
622
  }): Promise<{
631
623
  tasks: {
632
624
  taskId: string;
633
625
  }[];
634
626
  }>;
635
- completeTask({ taskId, status, eventBody, }: {
627
+ completeTask(options: {
636
628
  taskId: string;
637
629
  status: TaskStatus;
638
630
  eventBody: JsonObject;
@@ -640,7 +632,7 @@ export declare class DatabaseTaskStore implements TaskStore {
640
632
  emitLogEvent(options: TaskStoreEmitOptions<{
641
633
  message: string;
642
634
  } & JsonObject>): Promise<void>;
643
- listEvents({ taskId, after, }: TaskStoreListEventsOptions): Promise<{
635
+ listEvents(options: TaskStoreListEventsOptions): Promise<{
644
636
  events: SerializedTaskEvent[];
645
637
  }>;
646
638
  }
@@ -651,7 +643,7 @@ export declare class DatabaseTaskStore implements TaskStore {
651
643
  * @public
652
644
  */
653
645
  export declare type DatabaseTaskStoreOptions = {
654
- database: Knex;
646
+ database: PluginDatabaseManager | Knex;
655
647
  };
656
648
 
657
649
  /**
@@ -667,7 +659,7 @@ export declare const executeShellCommand: (options: RunCommandOptions) => Promis
667
659
  *
668
660
  * @public
669
661
  */
670
- export declare function fetchContents({ reader, integrations, baseUrl, fetchUrl, outputPath, }: {
662
+ export declare function fetchContents(options: {
671
663
  reader: UrlReader;
672
664
  integrations: ScmIntegrations;
673
665
  baseUrl?: string;
@@ -676,14 +668,14 @@ export declare function fetchContents({ reader, integrations, baseUrl, fetchUrl,
676
668
  }): Promise<void>;
677
669
 
678
670
  /** @public */
679
- export declare interface OctokitWithPullRequestPluginClient {
671
+ export declare type OctokitWithPullRequestPluginClient = Octokit & {
680
672
  createPullRequest(options: createPullRequest.Options): Promise<{
681
673
  data: {
682
674
  html_url: string;
683
675
  number: number;
684
676
  };
685
677
  } | null>;
686
- }
678
+ };
687
679
 
688
680
  /**
689
681
  * 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.5.0-next.1",
4
+ "version": "1.6.0-next.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -35,16 +35,16 @@
35
35
  "build:assets": "node scripts/build-nunjucks.js"
36
36
  },
37
37
  "dependencies": {
38
- "@backstage/backend-common": "^0.15.0-next.1",
39
- "@backstage/backend-plugin-api": "^0.1.1-next.0",
40
- "@backstage/catalog-client": "^1.0.4",
38
+ "@backstage/backend-common": "^0.15.1-next.0",
39
+ "@backstage/backend-plugin-api": "^0.1.2-next.0",
40
+ "@backstage/catalog-client": "^1.0.5-next.0",
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.3.0-next.1",
45
- "@backstage/plugin-catalog-backend": "^1.3.1-next.1",
46
- "@backstage/plugin-catalog-node": "^1.0.1-next.0",
47
- "@backstage/plugin-scaffolder-common": "^1.1.2",
44
+ "@backstage/integration": "^1.3.1-next.0",
45
+ "@backstage/plugin-catalog-backend": "^1.3.2-next.0",
46
+ "@backstage/plugin-catalog-node": "^1.0.2-next.0",
47
+ "@backstage/plugin-scaffolder-common": "^1.2.0-next.0",
48
48
  "@backstage/types": "^1.0.0",
49
49
  "@gitbeaker/core": "^35.6.0",
50
50
  "@gitbeaker/node": "^35.1.0",
@@ -79,8 +79,8 @@
79
79
  "zod": "^3.11.6"
80
80
  },
81
81
  "devDependencies": {
82
- "@backstage/backend-test-utils": "^0.1.27-next.0",
83
- "@backstage/cli": "^0.18.1-next.0",
82
+ "@backstage/backend-test-utils": "^0.1.28-next.0",
83
+ "@backstage/cli": "^0.18.2-next.0",
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",
@@ -91,7 +91,7 @@
91
91
  "esbuild": "^0.14.1",
92
92
  "jest-when": "^3.1.0",
93
93
  "mock-fs": "^5.1.0",
94
- "msw": "^0.44.0",
94
+ "msw": "^0.45.0",
95
95
  "supertest": "^6.1.3",
96
96
  "yaml": "^2.0.0"
97
97
  },
@@ -103,5 +103,5 @@
103
103
  "assets"
104
104
  ],
105
105
  "configSchema": "config.d.ts",
106
- "gitHead": "62bee85ae500414d27d7828288786de8f4816ef8"
106
+ "gitHead": "c6c0b1978a7ab4d29d813996c56beb7e6b48a268"
107
107
  }