@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/CHANGELOG.md +44 -0
- package/alpha/package.json +1 -1
- package/dist/index.alpha.d.ts +22 -2
- package/dist/index.beta.d.ts +22 -2
- package/dist/index.cjs.js +930 -296
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +22 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend
|
|
2
2
|
|
|
3
|
+
## 1.5.0-next.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 692d5d3405: Added `reviewers` and `teamReviewers` parameters to `publish:github:pull-request` action to add reviewers on the pull request created by the action
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/plugin-catalog-backend@1.3.1-next.2
|
|
13
|
+
|
|
14
|
+
## 1.5.0-next.1
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- c4b452e16a: Starting the implementation of the Wizard page for the `next` scaffolder plugin
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @backstage/backend-common@0.15.0-next.1
|
|
24
|
+
- @backstage/integration@1.3.0-next.1
|
|
25
|
+
- @backstage/plugin-catalog-backend@1.3.1-next.1
|
|
26
|
+
|
|
27
|
+
## 1.5.0-next.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- 593dea6710: Add support for Basic Auth for Bitbucket Server.
|
|
32
|
+
- 3b7930b3e5: Add support for Bearer Authorization header / token-based auth at Git commands.
|
|
33
|
+
- 3f1316f1c5: User Bearer Authorization header at Git commands with token-based auth at Bitbucket Server.
|
|
34
|
+
- eeff5046ae: Updated `publish:gitlab:merge-request` action to allow commit updates and deletes
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- fc8a5f797b: Add a `publish:gerrit:review` scaffolder action
|
|
39
|
+
- 014b3b7776: Add missing `res.end()` in scaffolder backend `EventStream` usage
|
|
40
|
+
- Updated dependencies
|
|
41
|
+
- @backstage/backend-common@0.15.0-next.0
|
|
42
|
+
- @backstage/integration@1.3.0-next.0
|
|
43
|
+
- @backstage/backend-plugin-api@0.1.1-next.0
|
|
44
|
+
- @backstage/plugin-catalog-backend@1.3.1-next.0
|
|
45
|
+
- @backstage/plugin-catalog-node@1.0.1-next.0
|
|
46
|
+
|
|
3
47
|
## 1.4.0
|
|
4
48
|
|
|
5
49
|
### Minor Changes
|
package/alpha/package.json
CHANGED
package/dist/index.alpha.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
|
|
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/dist/index.beta.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
|
|
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
|