@backstage/plugin-scaffolder-backend 1.19.0-next.1 → 1.19.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 +19 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +1 -1
- package/dist/cjs/{router-b3ae7270.cjs.js → router-04ab6217.cjs.js} +175 -39
- package/dist/cjs/router-04ab6217.cjs.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +12 -12
- package/dist/cjs/router-b3ae7270.cjs.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder-backend
|
|
2
2
|
|
|
3
|
+
## 1.19.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#20531](https://github.com/backstage/backstage/pull/20531) [`ae30a9ae8c`](https://github.com/backstage/backstage/commit/ae30a9ae8cbedc6df69c0656bf7044d1c869db40) Thanks [@andym0457](https://github.com/andym0457)! - Added description for publish:gerrit scaffolder actions
|
|
8
|
+
|
|
9
|
+
- [#20570](https://github.com/backstage/backstage/pull/20570) [`013611b42e`](https://github.com/backstage/backstage/commit/013611b42ed457fefa9bb85fddf416cf5e0c1f76) Thanks [@freben](https://github.com/freben)! - `knex` has been bumped to major version 3 and `better-sqlite3` to major version 9, which deprecate node 16 support.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/backend-plugin-api@0.6.7-next.2
|
|
13
|
+
- @backstage/backend-common@0.19.9-next.2
|
|
14
|
+
- @backstage/plugin-catalog-backend@1.15.0-next.2
|
|
15
|
+
- @backstage/backend-tasks@0.5.12-next.2
|
|
16
|
+
- @backstage/plugin-auth-node@0.4.1-next.2
|
|
17
|
+
- @backstage/plugin-catalog-backend-module-scaffolder-entity-model@0.1.4-next.2
|
|
18
|
+
- @backstage/plugin-catalog-node@1.5.0-next.2
|
|
19
|
+
- @backstage/plugin-permission-node@0.7.18-next.2
|
|
20
|
+
- @backstage/plugin-scaffolder-node@0.2.8-next.2
|
|
21
|
+
|
|
3
22
|
## 1.19.0-next.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var alpha = require('@backstage/plugin-scaffolder-common/alpha');
|
|
6
6
|
var pluginPermissionNode = require('@backstage/plugin-permission-node');
|
|
7
|
-
var router = require('./cjs/router-
|
|
7
|
+
var router = require('./cjs/router-04ab6217.cjs.js');
|
|
8
8
|
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
9
9
|
var backendCommon = require('@backstage/backend-common');
|
|
10
10
|
var integration = require('@backstage/integration');
|
|
@@ -80,7 +80,7 @@ var winston__namespace = /*#__PURE__*/_interopNamespace(winston);
|
|
|
80
80
|
var nunjucks__default = /*#__PURE__*/_interopDefaultLegacy(nunjucks);
|
|
81
81
|
var os__default = /*#__PURE__*/_interopDefaultLegacy(os);
|
|
82
82
|
|
|
83
|
-
const examples$
|
|
83
|
+
const examples$m = [
|
|
84
84
|
{
|
|
85
85
|
description: "Register with the catalog",
|
|
86
86
|
example: yaml__default["default"].stringify({
|
|
@@ -104,7 +104,7 @@ function createCatalogRegisterAction(options) {
|
|
|
104
104
|
return pluginScaffolderNode.createTemplateAction({
|
|
105
105
|
id: id$4,
|
|
106
106
|
description: "Registers entities from a catalog descriptor file in the workspace into the software catalog.",
|
|
107
|
-
examples: examples$
|
|
107
|
+
examples: examples$m,
|
|
108
108
|
schema: {
|
|
109
109
|
input: {
|
|
110
110
|
oneOf: [
|
|
@@ -228,7 +228,7 @@ function createCatalogRegisterAction(options) {
|
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
const examples$
|
|
231
|
+
const examples$l = [
|
|
232
232
|
{
|
|
233
233
|
description: "Write a catalog yaml file",
|
|
234
234
|
example: yaml__namespace.stringify({
|
|
@@ -272,7 +272,7 @@ function createCatalogWriteAction() {
|
|
|
272
272
|
)
|
|
273
273
|
})
|
|
274
274
|
},
|
|
275
|
-
examples: examples$
|
|
275
|
+
examples: examples$l,
|
|
276
276
|
supportsDryRun: true,
|
|
277
277
|
async handler(ctx) {
|
|
278
278
|
ctx.logStream.write(`Writing catalog-info.yaml`);
|
|
@@ -286,7 +286,7 @@ function createCatalogWriteAction() {
|
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
const examples$
|
|
289
|
+
const examples$k = [
|
|
290
290
|
{
|
|
291
291
|
description: "Fetch entity by reference",
|
|
292
292
|
example: yaml__default["default"].stringify({
|
|
@@ -325,7 +325,7 @@ function createFetchCatalogEntityAction(options) {
|
|
|
325
325
|
return pluginScaffolderNode.createTemplateAction({
|
|
326
326
|
id: id$2,
|
|
327
327
|
description: "Returns entity or entities from the catalog by entity reference(s)",
|
|
328
|
-
examples: examples$
|
|
328
|
+
examples: examples$k,
|
|
329
329
|
supportsDryRun: true,
|
|
330
330
|
schema: {
|
|
331
331
|
input: zod.z.object({
|
|
@@ -400,7 +400,7 @@ function createFetchCatalogEntityAction(options) {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
const examples$
|
|
403
|
+
const examples$j = [
|
|
404
404
|
{
|
|
405
405
|
description: "Write a debug message",
|
|
406
406
|
example: yaml__default["default"].stringify({
|
|
@@ -438,7 +438,7 @@ function createDebugLogAction() {
|
|
|
438
438
|
return pluginScaffolderNode.createTemplateAction({
|
|
439
439
|
id: id$1,
|
|
440
440
|
description: "Writes a message into the log or lists all files in the workspace.",
|
|
441
|
-
examples: examples$
|
|
441
|
+
examples: examples$j,
|
|
442
442
|
schema: {
|
|
443
443
|
input: {
|
|
444
444
|
type: "object",
|
|
@@ -485,7 +485,7 @@ async function recursiveReadDir(dir) {
|
|
|
485
485
|
return files.reduce((a, f) => a.concat(f), []);
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
-
const examples$
|
|
488
|
+
const examples$i = [
|
|
489
489
|
{
|
|
490
490
|
description: "Waiting for 50 milliseconds",
|
|
491
491
|
example: yaml__default["default"].stringify({
|
|
@@ -548,7 +548,7 @@ function createWaitAction(options) {
|
|
|
548
548
|
return pluginScaffolderNode.createTemplateAction({
|
|
549
549
|
id,
|
|
550
550
|
description: "Waits for a certain period of time.",
|
|
551
|
-
examples: examples$
|
|
551
|
+
examples: examples$i,
|
|
552
552
|
schema: {
|
|
553
553
|
input: {
|
|
554
554
|
type: "object",
|
|
@@ -593,7 +593,7 @@ function createWaitAction(options) {
|
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
const examples$
|
|
596
|
+
const examples$h = [
|
|
597
597
|
{
|
|
598
598
|
description: "Downloads content and places it in the workspace.",
|
|
599
599
|
example: yaml__default["default"].stringify({
|
|
@@ -632,7 +632,7 @@ function createFetchPlainAction(options) {
|
|
|
632
632
|
const { reader, integrations } = options;
|
|
633
633
|
return pluginScaffolderNode.createTemplateAction({
|
|
634
634
|
id: ACTION_ID,
|
|
635
|
-
examples: examples$
|
|
635
|
+
examples: examples$h,
|
|
636
636
|
description: "Downloads content and places it in the workspace, or optionally in a subdirectory specified by the `targetPath` input option.",
|
|
637
637
|
schema: {
|
|
638
638
|
input: {
|
|
@@ -669,7 +669,7 @@ function createFetchPlainAction(options) {
|
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
const examples$
|
|
672
|
+
const examples$g = [
|
|
673
673
|
{
|
|
674
674
|
description: "Downloads a file and places it in the workspace.",
|
|
675
675
|
example: yaml__default["default"].stringify({
|
|
@@ -693,7 +693,7 @@ function createFetchPlainFileAction(options) {
|
|
|
693
693
|
return pluginScaffolderNode.createTemplateAction({
|
|
694
694
|
id: "fetch:plain:file",
|
|
695
695
|
description: "Downloads single file and places it in the workspace.",
|
|
696
|
-
examples: examples$
|
|
696
|
+
examples: examples$g,
|
|
697
697
|
schema: {
|
|
698
698
|
input: {
|
|
699
699
|
type: "object",
|
|
@@ -961,7 +961,7 @@ const createDefaultFilters = ({
|
|
|
961
961
|
};
|
|
962
962
|
};
|
|
963
963
|
|
|
964
|
-
const examples$
|
|
964
|
+
const examples$f = [
|
|
965
965
|
{
|
|
966
966
|
description: "Downloads a skelaton directory that lives alongside the template file and fill it out with values.",
|
|
967
967
|
example: yaml__default["default"].stringify({
|
|
@@ -997,7 +997,7 @@ function createFetchTemplateAction(options) {
|
|
|
997
997
|
return pluginScaffolderNode.createTemplateAction({
|
|
998
998
|
id: "fetch:template",
|
|
999
999
|
description: "Downloads a skeleton, templates variables into file and directory names and content, and places the result in the workspace, or optionally in a subdirectory specified by the `targetPath` input option.",
|
|
1000
|
-
examples: examples$
|
|
1000
|
+
examples: examples$f,
|
|
1001
1001
|
schema: {
|
|
1002
1002
|
input: {
|
|
1003
1003
|
type: "object",
|
|
@@ -1202,7 +1202,7 @@ function containsSkippedContent(localOutputPath) {
|
|
|
1202
1202
|
return localOutputPath === "" || localOutputPath.startsWith("/") || localOutputPath.includes("//");
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
|
-
const examples$
|
|
1205
|
+
const examples$e = [
|
|
1206
1206
|
{
|
|
1207
1207
|
description: "Delete specified files",
|
|
1208
1208
|
example: yaml__namespace.stringify({
|
|
@@ -1224,7 +1224,7 @@ const createFilesystemDeleteAction = () => {
|
|
|
1224
1224
|
return pluginScaffolderNode.createTemplateAction({
|
|
1225
1225
|
id: "fs:delete",
|
|
1226
1226
|
description: "Deletes files and directories from the workspace",
|
|
1227
|
-
examples: examples$
|
|
1227
|
+
examples: examples$e,
|
|
1228
1228
|
schema: {
|
|
1229
1229
|
input: {
|
|
1230
1230
|
required: ["files"],
|
|
@@ -1261,7 +1261,7 @@ const createFilesystemDeleteAction = () => {
|
|
|
1261
1261
|
});
|
|
1262
1262
|
};
|
|
1263
1263
|
|
|
1264
|
-
const examples$
|
|
1264
|
+
const examples$d = [
|
|
1265
1265
|
{
|
|
1266
1266
|
description: "Rename specified files ",
|
|
1267
1267
|
example: yaml__namespace.stringify({
|
|
@@ -1287,7 +1287,7 @@ const createFilesystemRenameAction = () => {
|
|
|
1287
1287
|
return pluginScaffolderNode.createTemplateAction({
|
|
1288
1288
|
id: "fs:rename",
|
|
1289
1289
|
description: "Renames files and directories within the workspace",
|
|
1290
|
-
examples: examples$
|
|
1290
|
+
examples: examples$d,
|
|
1291
1291
|
schema: {
|
|
1292
1292
|
input: {
|
|
1293
1293
|
required: ["files"],
|
|
@@ -1769,7 +1769,7 @@ async function validateAccessTeam(client, access) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
|
-
const examples$
|
|
1772
|
+
const examples$c = [
|
|
1773
1773
|
{
|
|
1774
1774
|
description: "GitHub Action Workflow Without Inputs.",
|
|
1775
1775
|
example: yaml__default["default"].stringify({
|
|
@@ -1830,7 +1830,7 @@ function createGithubActionsDispatchAction(options) {
|
|
|
1830
1830
|
return pluginScaffolderNode.createTemplateAction({
|
|
1831
1831
|
id: "github:actions:dispatch",
|
|
1832
1832
|
description: "Dispatches a GitHub Action workflow for a given branch or tag",
|
|
1833
|
-
examples: examples$
|
|
1833
|
+
examples: examples$c,
|
|
1834
1834
|
schema: {
|
|
1835
1835
|
input: {
|
|
1836
1836
|
type: "object",
|
|
@@ -1899,7 +1899,7 @@ function createGithubActionsDispatchAction(options) {
|
|
|
1899
1899
|
});
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
|
-
const examples$
|
|
1902
|
+
const examples$b = [
|
|
1903
1903
|
{
|
|
1904
1904
|
description: "Add labels to pull request or issue",
|
|
1905
1905
|
example: yaml__default["default"].stringify({
|
|
@@ -1940,7 +1940,7 @@ function createGithubIssuesLabelAction(options) {
|
|
|
1940
1940
|
return pluginScaffolderNode.createTemplateAction({
|
|
1941
1941
|
id: "github:issues:label",
|
|
1942
1942
|
description: "Adds labels to a pull request or issue on GitHub.",
|
|
1943
|
-
examples: examples$
|
|
1943
|
+
examples: examples$b,
|
|
1944
1944
|
schema: {
|
|
1945
1945
|
input: {
|
|
1946
1946
|
type: "object",
|
|
@@ -2263,7 +2263,7 @@ const commitHash = {
|
|
|
2263
2263
|
type: "string"
|
|
2264
2264
|
};
|
|
2265
2265
|
|
|
2266
|
-
const examples$
|
|
2266
|
+
const examples$a = [
|
|
2267
2267
|
{
|
|
2268
2268
|
description: "Creates a GitHub repository with default configuration.",
|
|
2269
2269
|
example: yaml__default["default"].stringify({
|
|
@@ -2316,7 +2316,7 @@ function createGithubRepoCreateAction(options) {
|
|
|
2316
2316
|
return pluginScaffolderNode.createTemplateAction({
|
|
2317
2317
|
id: "github:repo:create",
|
|
2318
2318
|
description: "Creates a GitHub repository.",
|
|
2319
|
-
examples: examples$
|
|
2319
|
+
examples: examples$a,
|
|
2320
2320
|
schema: {
|
|
2321
2321
|
input: {
|
|
2322
2322
|
type: "object",
|
|
@@ -2423,7 +2423,7 @@ function createGithubRepoCreateAction(options) {
|
|
|
2423
2423
|
});
|
|
2424
2424
|
}
|
|
2425
2425
|
|
|
2426
|
-
const examples$
|
|
2426
|
+
const examples$9 = [
|
|
2427
2427
|
{
|
|
2428
2428
|
description: "Setup repo with no modifications to branch protection rules",
|
|
2429
2429
|
example: yaml__default["default"].stringify({
|
|
@@ -2475,7 +2475,7 @@ function createGithubRepoPushAction(options) {
|
|
|
2475
2475
|
return pluginScaffolderNode.createTemplateAction({
|
|
2476
2476
|
id: "github:repo:push",
|
|
2477
2477
|
description: "Initializes a git repository of contents in workspace and publishes it to GitHub.",
|
|
2478
|
-
examples: examples$
|
|
2478
|
+
examples: examples$9,
|
|
2479
2479
|
schema: {
|
|
2480
2480
|
input: {
|
|
2481
2481
|
type: "object",
|
|
@@ -2577,7 +2577,7 @@ function createGithubRepoPushAction(options) {
|
|
|
2577
2577
|
});
|
|
2578
2578
|
}
|
|
2579
2579
|
|
|
2580
|
-
const examples$
|
|
2580
|
+
const examples$8 = [
|
|
2581
2581
|
{
|
|
2582
2582
|
description: "Create a GitHub webhook for a repository",
|
|
2583
2583
|
example: yaml__default["default"].stringify({
|
|
@@ -2686,7 +2686,7 @@ function createGithubWebhookAction(options) {
|
|
|
2686
2686
|
return pluginScaffolderNode.createTemplateAction({
|
|
2687
2687
|
id: "github:webhook",
|
|
2688
2688
|
description: "Creates webhook for a repository on GitHub.",
|
|
2689
|
-
examples: examples$
|
|
2689
|
+
examples: examples$8,
|
|
2690
2690
|
schema: {
|
|
2691
2691
|
input: {
|
|
2692
2692
|
type: "object",
|
|
@@ -2799,7 +2799,7 @@ function createGithubWebhookAction(options) {
|
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
2801
|
|
|
2802
|
-
const examples$
|
|
2802
|
+
const examples$7 = [
|
|
2803
2803
|
{
|
|
2804
2804
|
description: "Example 1: Create and store a Deploy Key",
|
|
2805
2805
|
example: yaml__default["default"].stringify({
|
|
@@ -2824,7 +2824,7 @@ function createGithubDeployKeyAction(options) {
|
|
|
2824
2824
|
return pluginScaffolderNode.createTemplateAction({
|
|
2825
2825
|
id: "github:deployKey:create",
|
|
2826
2826
|
description: "Creates and stores Deploy Keys",
|
|
2827
|
-
examples: examples$
|
|
2827
|
+
examples: examples$7,
|
|
2828
2828
|
schema: {
|
|
2829
2829
|
input: {
|
|
2830
2830
|
type: "object",
|
|
@@ -2927,7 +2927,7 @@ function createGithubDeployKeyAction(options) {
|
|
|
2927
2927
|
});
|
|
2928
2928
|
}
|
|
2929
2929
|
|
|
2930
|
-
const examples$
|
|
2930
|
+
const examples$6 = [
|
|
2931
2931
|
{
|
|
2932
2932
|
description: "Create a GitHub Environment (No Policies, No Variables, No Secrets)",
|
|
2933
2933
|
example: yaml__default["default"].stringify({
|
|
@@ -3012,7 +3012,7 @@ function createGithubEnvironmentAction(options) {
|
|
|
3012
3012
|
return pluginScaffolderNode.createTemplateAction({
|
|
3013
3013
|
id: "github:environment:create",
|
|
3014
3014
|
description: "Creates Deployment Environments",
|
|
3015
|
-
examples: examples$
|
|
3015
|
+
examples: examples$6,
|
|
3016
3016
|
schema: {
|
|
3017
3017
|
input: {
|
|
3018
3018
|
type: "object",
|
|
@@ -3155,7 +3155,7 @@ function createGithubEnvironmentAction(options) {
|
|
|
3155
3155
|
});
|
|
3156
3156
|
}
|
|
3157
3157
|
|
|
3158
|
-
const examples$
|
|
3158
|
+
const examples$5 = [
|
|
3159
3159
|
{
|
|
3160
3160
|
description: "Initializes a git repository of the content in the workspace, and publishes it to Azure.",
|
|
3161
3161
|
example: yaml__default["default"].stringify({
|
|
@@ -3210,7 +3210,7 @@ function createPublishAzureAction(options) {
|
|
|
3210
3210
|
const { integrations, config } = options;
|
|
3211
3211
|
return pluginScaffolderNode.createTemplateAction({
|
|
3212
3212
|
id: "publish:azure",
|
|
3213
|
-
examples: examples$
|
|
3213
|
+
examples: examples$5,
|
|
3214
3214
|
description: "Initializes a git repository of the content in the workspace, and publishes it to Azure.",
|
|
3215
3215
|
schema: {
|
|
3216
3216
|
input: {
|
|
@@ -3352,7 +3352,7 @@ function createPublishAzureAction(options) {
|
|
|
3352
3352
|
});
|
|
3353
3353
|
}
|
|
3354
3354
|
|
|
3355
|
-
const examples$
|
|
3355
|
+
const examples$4 = [
|
|
3356
3356
|
{
|
|
3357
3357
|
description: "Initializes a git repository of contents in workspace and publish it to Bitbucket with default configuration.",
|
|
3358
3358
|
example: yaml__default["default"].stringify({
|
|
@@ -3648,7 +3648,7 @@ function createPublishBitbucketAction(options) {
|
|
|
3648
3648
|
return pluginScaffolderNode.createTemplateAction({
|
|
3649
3649
|
id: "publish:bitbucket",
|
|
3650
3650
|
description: "Initializes a git repository of the content in the workspace, and publishes it to Bitbucket.",
|
|
3651
|
-
examples: examples$
|
|
3651
|
+
examples: examples$4,
|
|
3652
3652
|
schema: {
|
|
3653
3653
|
input: {
|
|
3654
3654
|
type: "object",
|
|
@@ -4425,6 +4425,141 @@ function createPublishBitbucketServerPullRequestAction(options) {
|
|
|
4425
4425
|
});
|
|
4426
4426
|
}
|
|
4427
4427
|
|
|
4428
|
+
const examples$3 = [
|
|
4429
|
+
{
|
|
4430
|
+
description: "Initializes a Gerrit repository of contents in workspace and publish it to Gerrit with default configuration.",
|
|
4431
|
+
example: yaml__default["default"].stringify({
|
|
4432
|
+
steps: [
|
|
4433
|
+
{
|
|
4434
|
+
id: "publish",
|
|
4435
|
+
action: "publish:gerrit",
|
|
4436
|
+
name: "Publish to Gerrit",
|
|
4437
|
+
input: {
|
|
4438
|
+
repoUrl: "gerrit.com?repo=repo&owner=owner"
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
]
|
|
4442
|
+
})
|
|
4443
|
+
},
|
|
4444
|
+
{
|
|
4445
|
+
description: "Initializes a Gerrit repository with a description.",
|
|
4446
|
+
example: yaml__default["default"].stringify({
|
|
4447
|
+
steps: [
|
|
4448
|
+
{
|
|
4449
|
+
id: "publish",
|
|
4450
|
+
action: "publish:gerrit",
|
|
4451
|
+
name: "Publish to Gerrit",
|
|
4452
|
+
input: {
|
|
4453
|
+
repoUrl: "gerrit.com?repo=repo&owner=owner",
|
|
4454
|
+
description: "Initialize a gerrit repository"
|
|
4455
|
+
}
|
|
4456
|
+
}
|
|
4457
|
+
]
|
|
4458
|
+
})
|
|
4459
|
+
},
|
|
4460
|
+
{
|
|
4461
|
+
description: "Initializes a Gerrit repository with a default Branch, if not set defaults to master",
|
|
4462
|
+
example: yaml__default["default"].stringify({
|
|
4463
|
+
steps: [
|
|
4464
|
+
{
|
|
4465
|
+
id: "publish",
|
|
4466
|
+
action: "publish:gerrit",
|
|
4467
|
+
name: "Publish to Gerrit",
|
|
4468
|
+
input: {
|
|
4469
|
+
repoUrl: "gerrit.com?repo=repo&owner=owner",
|
|
4470
|
+
defaultBranch: "staging"
|
|
4471
|
+
}
|
|
4472
|
+
}
|
|
4473
|
+
]
|
|
4474
|
+
})
|
|
4475
|
+
},
|
|
4476
|
+
{
|
|
4477
|
+
description: "Initializes a Gerrit repository with an initial commit message, if not set defaults to initial commit",
|
|
4478
|
+
example: yaml__default["default"].stringify({
|
|
4479
|
+
steps: [
|
|
4480
|
+
{
|
|
4481
|
+
id: "publish",
|
|
4482
|
+
action: "publish:gerrit",
|
|
4483
|
+
name: "Publish to Gerrit",
|
|
4484
|
+
input: {
|
|
4485
|
+
repoUrl: "gerrit.com?repo=repo&owner=owner",
|
|
4486
|
+
gitCommitMessage: "Initial Commit Message"
|
|
4487
|
+
}
|
|
4488
|
+
}
|
|
4489
|
+
]
|
|
4490
|
+
})
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
description: "Initializes a Gerrit repository with a repo Author Name, if not set defaults to Scaffolder",
|
|
4494
|
+
example: yaml__default["default"].stringify({
|
|
4495
|
+
steps: [
|
|
4496
|
+
{
|
|
4497
|
+
id: "publish",
|
|
4498
|
+
action: "publish:gerrit",
|
|
4499
|
+
name: "Publish to Gerrit",
|
|
4500
|
+
input: {
|
|
4501
|
+
repoUrl: "gerrit.com?repo=repo&owner=owner",
|
|
4502
|
+
gitAuthorName: "John Doe"
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4505
|
+
]
|
|
4506
|
+
})
|
|
4507
|
+
},
|
|
4508
|
+
{
|
|
4509
|
+
description: "Initializes a Gerrit repository with a repo Author Email",
|
|
4510
|
+
example: yaml__default["default"].stringify({
|
|
4511
|
+
steps: [
|
|
4512
|
+
{
|
|
4513
|
+
id: "publish",
|
|
4514
|
+
action: "publish:gerrit",
|
|
4515
|
+
name: "Publish to Gerrit",
|
|
4516
|
+
input: {
|
|
4517
|
+
repoUrl: "gerrit.com?repo=repo&owner=owner",
|
|
4518
|
+
gitAuthorEmail: "johndoe@email.com"
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
]
|
|
4522
|
+
})
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
description: "Path within the workspace that will be used as the repository root. If omitted, the entire workspace will be published as the repository",
|
|
4526
|
+
example: yaml__default["default"].stringify({
|
|
4527
|
+
steps: [
|
|
4528
|
+
{
|
|
4529
|
+
id: "publish",
|
|
4530
|
+
action: "publish:gerrit",
|
|
4531
|
+
name: "Publish to Gerrit",
|
|
4532
|
+
input: {
|
|
4533
|
+
repoUrl: "gerrit.com?repo=repo&owner=owner",
|
|
4534
|
+
sourcePath: "repository/"
|
|
4535
|
+
}
|
|
4536
|
+
}
|
|
4537
|
+
]
|
|
4538
|
+
})
|
|
4539
|
+
},
|
|
4540
|
+
{
|
|
4541
|
+
description: "Initializes a Gerrit repository with all proporties being set",
|
|
4542
|
+
example: yaml__default["default"].stringify({
|
|
4543
|
+
steps: [
|
|
4544
|
+
{
|
|
4545
|
+
id: "publish",
|
|
4546
|
+
action: "publish:gerrit",
|
|
4547
|
+
name: "Publish to Gerrit",
|
|
4548
|
+
input: {
|
|
4549
|
+
repoUrl: "gerrit.com?repo=repo&owner=owner",
|
|
4550
|
+
description: "Initialize a gerrit repository",
|
|
4551
|
+
defaultBranch: "staging",
|
|
4552
|
+
gitCommitMessage: "Initial Commit Message",
|
|
4553
|
+
gitAuthorName: "John Doe",
|
|
4554
|
+
gitAuthorEmail: "johndoe@email.com",
|
|
4555
|
+
sourcePath: "repository/"
|
|
4556
|
+
}
|
|
4557
|
+
}
|
|
4558
|
+
]
|
|
4559
|
+
})
|
|
4560
|
+
}
|
|
4561
|
+
];
|
|
4562
|
+
|
|
4428
4563
|
const createGerritProject = async (config, options) => {
|
|
4429
4564
|
const { projectName, parent, owner, description } = options;
|
|
4430
4565
|
const fetchOptions = {
|
|
@@ -4462,6 +4597,7 @@ function createPublishGerritAction(options) {
|
|
|
4462
4597
|
return pluginScaffolderNode.createTemplateAction({
|
|
4463
4598
|
id: "publish:gerrit",
|
|
4464
4599
|
description: "Initializes a git repository of the content in the workspace, and publishes it to Gerrit.",
|
|
4600
|
+
examples: examples$3,
|
|
4465
4601
|
schema: {
|
|
4466
4602
|
input: {
|
|
4467
4603
|
type: "object",
|
|
@@ -8035,4 +8171,4 @@ exports.createRouter = createRouter;
|
|
|
8035
8171
|
exports.createWaitAction = createWaitAction;
|
|
8036
8172
|
exports.scaffolderActionRules = scaffolderActionRules;
|
|
8037
8173
|
exports.scaffolderTemplateRules = scaffolderTemplateRules;
|
|
8038
|
-
//# sourceMappingURL=router-
|
|
8174
|
+
//# sourceMappingURL=router-04ab6217.cjs.js.map
|