@backstage/plugin-scaffolder-backend 1.4.0-next.1 → 1.4.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 +25 -0
- package/dist/index.cjs.js +818 -658
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +75 -14
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -613,6 +613,7 @@ declare const createPublishGitlabMergeRequestAction: (options: {
|
|
|
613
613
|
token?: string | undefined;
|
|
614
614
|
/** @deprecated Use projectPath instead */
|
|
615
615
|
projectid?: string | undefined;
|
|
616
|
+
removeSourceBranch?: boolean | undefined;
|
|
616
617
|
}>;
|
|
617
618
|
|
|
618
619
|
/**
|
|
@@ -633,35 +634,95 @@ declare function createGithubActionsDispatchAction(options: {
|
|
|
633
634
|
}>;
|
|
634
635
|
|
|
635
636
|
/**
|
|
636
|
-
*
|
|
637
|
+
* Adds labels to a pull request or issue on GitHub
|
|
637
638
|
* @public
|
|
638
639
|
*/
|
|
639
|
-
declare function
|
|
640
|
+
declare function createGithubIssuesLabelAction(options: {
|
|
640
641
|
integrations: ScmIntegrationRegistry;
|
|
641
|
-
defaultWebhookSecret?: string;
|
|
642
642
|
githubCredentialsProvider?: GithubCredentialsProvider;
|
|
643
643
|
}): TemplateAction<{
|
|
644
644
|
repoUrl: string;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
events?: string[] | undefined;
|
|
648
|
-
active?: boolean | undefined;
|
|
649
|
-
contentType?: "form" | "json" | undefined;
|
|
650
|
-
insecureSsl?: boolean | undefined;
|
|
645
|
+
number: number;
|
|
646
|
+
labels: string[];
|
|
651
647
|
token?: string | undefined;
|
|
652
648
|
}>;
|
|
653
649
|
|
|
654
650
|
/**
|
|
655
|
-
*
|
|
651
|
+
* Creates a new action that initializes a git repository
|
|
652
|
+
*
|
|
656
653
|
* @public
|
|
657
654
|
*/
|
|
658
|
-
declare function
|
|
655
|
+
declare function createGithubRepoCreateAction(options: {
|
|
659
656
|
integrations: ScmIntegrationRegistry;
|
|
660
657
|
githubCredentialsProvider?: GithubCredentialsProvider;
|
|
661
658
|
}): TemplateAction<{
|
|
662
659
|
repoUrl: string;
|
|
663
|
-
|
|
664
|
-
|
|
660
|
+
description?: string | undefined;
|
|
661
|
+
access?: string | undefined;
|
|
662
|
+
deleteBranchOnMerge?: boolean | undefined;
|
|
663
|
+
gitAuthorName?: string | undefined;
|
|
664
|
+
gitAuthorEmail?: string | undefined;
|
|
665
|
+
allowRebaseMerge?: boolean | undefined;
|
|
666
|
+
allowSquashMerge?: boolean | undefined;
|
|
667
|
+
allowMergeCommit?: boolean | undefined;
|
|
668
|
+
requireCodeOwnerReviews?: boolean | undefined;
|
|
669
|
+
requiredStatusCheckContexts?: string[] | undefined;
|
|
670
|
+
repoVisibility?: "internal" | "private" | "public" | undefined;
|
|
671
|
+
collaborators?: ({
|
|
672
|
+
user: string;
|
|
673
|
+
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
|
|
674
|
+
} | {
|
|
675
|
+
team: string;
|
|
676
|
+
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
|
|
677
|
+
} | {
|
|
678
|
+
/** @deprecated This field is deprecated in favor of team */
|
|
679
|
+
username: string;
|
|
680
|
+
access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
|
|
681
|
+
})[] | undefined;
|
|
682
|
+
token?: string | undefined;
|
|
683
|
+
topics?: string[] | undefined;
|
|
684
|
+
}>;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Creates a new action that initializes a git repository of the content in the workspace
|
|
688
|
+
* and publishes it to GitHub.
|
|
689
|
+
*
|
|
690
|
+
* @public
|
|
691
|
+
*/
|
|
692
|
+
declare function createGithubRepoPushAction(options: {
|
|
693
|
+
integrations: ScmIntegrationRegistry;
|
|
694
|
+
config: Config;
|
|
695
|
+
githubCredentialsProvider?: GithubCredentialsProvider;
|
|
696
|
+
}): TemplateAction<{
|
|
697
|
+
repoUrl: string;
|
|
698
|
+
description?: string | undefined;
|
|
699
|
+
defaultBranch?: string | undefined;
|
|
700
|
+
protectDefaultBranch?: boolean | undefined;
|
|
701
|
+
gitCommitMessage?: string | undefined;
|
|
702
|
+
gitAuthorName?: string | undefined;
|
|
703
|
+
gitAuthorEmail?: string | undefined;
|
|
704
|
+
requireCodeOwnerReviews?: boolean | undefined;
|
|
705
|
+
requiredStatusCheckContexts?: string[] | undefined;
|
|
706
|
+
sourcePath?: string | undefined;
|
|
707
|
+
token?: string | undefined;
|
|
708
|
+
}>;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Creates new action that creates a webhook for a repository on GitHub.
|
|
712
|
+
* @public
|
|
713
|
+
*/
|
|
714
|
+
declare function createGithubWebhookAction(options: {
|
|
715
|
+
integrations: ScmIntegrationRegistry;
|
|
716
|
+
defaultWebhookSecret?: string;
|
|
717
|
+
githubCredentialsProvider?: GithubCredentialsProvider;
|
|
718
|
+
}): TemplateAction<{
|
|
719
|
+
repoUrl: string;
|
|
720
|
+
webhookUrl: string;
|
|
721
|
+
webhookSecret?: string | undefined;
|
|
722
|
+
events?: string[] | undefined;
|
|
723
|
+
active?: boolean | undefined;
|
|
724
|
+
contentType?: "form" | "json" | undefined;
|
|
725
|
+
insecureSsl?: boolean | undefined;
|
|
665
726
|
token?: string | undefined;
|
|
666
727
|
}>;
|
|
667
728
|
|
|
@@ -848,4 +909,4 @@ declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
|
|
|
848
909
|
postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
|
|
849
910
|
}
|
|
850
911
|
|
|
851
|
-
export { ActionContext, CreateBuiltInActionsOptions, CreateGithubPullRequestActionOptions, CreateGithubPullRequestClientFactoryInput, CreateWorkerOptions, CurrentClaimedTask, DatabaseTaskStore, DatabaseTaskStoreOptions, OctokitWithPullRequestPluginClient, RouterOptions, RunCommandOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, TaskBroker, TaskBrokerDispatchOptions, TaskBrokerDispatchResult, TaskCompletionState, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskStatus, TaskStore, TaskStoreCreateTaskOptions, TaskStoreCreateTaskResult, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubIssuesLabelAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishFileAction, createPublishGerritAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, executeShellCommand, fetchContents };
|
|
912
|
+
export { ActionContext, CreateBuiltInActionsOptions, CreateGithubPullRequestActionOptions, CreateGithubPullRequestClientFactoryInput, CreateWorkerOptions, CurrentClaimedTask, DatabaseTaskStore, DatabaseTaskStoreOptions, OctokitWithPullRequestPluginClient, RouterOptions, RunCommandOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, TaskBroker, TaskBrokerDispatchOptions, TaskBrokerDispatchResult, TaskCompletionState, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskStatus, TaskStore, TaskStoreCreateTaskOptions, TaskStoreCreateTaskResult, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateFilter, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishBitbucketCloudAction, createPublishBitbucketServerAction, createPublishFileAction, createPublishGerritAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, executeShellCommand, fetchContents };
|
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-next.
|
|
4
|
+
"version": "1.4.0-next.2",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"build:assets": "node scripts/build-nunjucks.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@backstage/backend-common": "^0.14.1-next.
|
|
37
|
+
"@backstage/backend-common": "^0.14.1-next.2",
|
|
38
38
|
"@backstage/catalog-client": "^1.0.4-next.1",
|
|
39
|
-
"@backstage/catalog-model": "^1.1.0-next.
|
|
39
|
+
"@backstage/catalog-model": "^1.1.0-next.2",
|
|
40
40
|
"@backstage/config": "^1.0.1",
|
|
41
41
|
"@backstage/errors": "^1.1.0-next.0",
|
|
42
|
-
"@backstage/integration": "^1.2.2-next.
|
|
43
|
-
"@backstage/plugin-catalog-backend": "^1.2.1-next.
|
|
42
|
+
"@backstage/integration": "^1.2.2-next.2",
|
|
43
|
+
"@backstage/plugin-catalog-backend": "^1.2.1-next.2",
|
|
44
44
|
"@backstage/plugin-scaffolder-common": "^1.1.2-next.0",
|
|
45
45
|
"@backstage/types": "^1.0.0",
|
|
46
46
|
"@gitbeaker/core": "^35.6.0",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"express": "^4.17.1",
|
|
55
55
|
"express-promise-router": "^4.1.0",
|
|
56
56
|
"fs-extra": "10.1.0",
|
|
57
|
-
"git-url-parse": "^
|
|
57
|
+
"git-url-parse": "^12.0.0",
|
|
58
58
|
"globby": "^11.0.0",
|
|
59
59
|
"isbinaryfile": "^5.0.0",
|
|
60
60
|
"isomorphic-git": "^1.8.0",
|
|
61
61
|
"jsonschema": "^1.2.6",
|
|
62
|
-
"knex": "^
|
|
62
|
+
"knex": "^2.0.0",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
64
|
"luxon": "^2.0.2",
|
|
65
65
|
"morgan": "^1.10.0",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"zod": "^3.11.6"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@backstage/backend-test-utils": "^0.1.26-next.
|
|
80
|
-
"@backstage/cli": "^0.18.0-next.
|
|
79
|
+
"@backstage/backend-test-utils": "^0.1.26-next.2",
|
|
80
|
+
"@backstage/cli": "^0.18.0-next.2",
|
|
81
81
|
"@types/command-exists": "^1.2.0",
|
|
82
82
|
"@types/fs-extra": "^9.0.1",
|
|
83
83
|
"@types/git-url-parse": "^9.0.0",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"assets"
|
|
100
100
|
],
|
|
101
101
|
"configSchema": "config.d.ts",
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "3eddfb061dd0abe711f4b88d2e0fb4b99e692978"
|
|
103
103
|
}
|