@backstage/plugin-scaffolder-backend-module-github 0.3.2 → 0.4.0-next.1

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
@@ -143,6 +143,7 @@ declare function createGithubRepoPushAction(options: {
143
143
  sourcePath?: string | undefined;
144
144
  token?: string | undefined;
145
145
  requiredCommitSigning?: boolean | undefined;
146
+ requireLastPushApproval?: boolean | undefined;
146
147
  }, _backstage_types.JsonObject>;
147
148
 
148
149
  /**
@@ -195,6 +196,7 @@ declare function createGithubEnvironmentAction(options: {
195
196
  custom_branch_policies: boolean;
196
197
  } | undefined;
197
198
  customBranchPolicyNames?: string[] | undefined;
199
+ customTagPolicyNames?: string[] | undefined;
198
200
  environmentVariables?: {
199
201
  [key: string]: string;
200
202
  } | undefined;
@@ -312,6 +314,7 @@ declare function createPublishGithubAction(options: {
312
314
  requiredStatusCheckContexts?: string[] | undefined;
313
315
  requireBranchesToBeUpToDate?: boolean | undefined;
314
316
  requiredConversationResolution?: boolean | undefined;
317
+ requireLastPushApproval?: boolean | undefined;
315
318
  repoVisibility?: "internal" | "private" | "public" | undefined;
316
319
  collaborators?: ({
317
320
  user: string;
@@ -357,6 +360,22 @@ declare function createGithubAutolinksAction(options: {
357
360
  token?: string | undefined;
358
361
  }, _backstage_types.JsonObject>;
359
362
 
363
+ /**
364
+ * Creates a new action that enables GitHub Pages for a repository.
365
+ *
366
+ * @public
367
+ */
368
+ declare function createGithubPagesEnableAction(options: {
369
+ integrations: ScmIntegrationRegistry;
370
+ githubCredentialsProvider?: GithubCredentialsProvider;
371
+ }): _backstage_plugin_scaffolder_node.TemplateAction<{
372
+ repoUrl: string;
373
+ buildType?: "legacy" | "workflow" | undefined;
374
+ sourceBranch?: string | undefined;
375
+ sourcePath?: "/" | "/docs" | undefined;
376
+ token?: string | undefined;
377
+ }, _backstage_types.JsonObject>;
378
+
360
379
  /**
361
380
  * Helper for generating octokit configuration options for given repoUrl.
362
381
  * If no token is provided, it will attempt to get a token from the credentials provider.
@@ -375,4 +394,4 @@ declare function getOctokitOptions(options: {
375
394
  */
376
395
  declare const githubModule: _backstage_backend_plugin_api.BackendFeatureCompat;
377
396
 
378
- export { type CreateGithubPullRequestActionOptions, createGithubActionsDispatchAction, createGithubAutolinksAction, createGithubDeployKeyAction, createGithubEnvironmentAction, createGithubIssuesLabelAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishGithubAction, createPublishGithubPullRequestAction, githubModule as default, getOctokitOptions };
397
+ export { type CreateGithubPullRequestActionOptions, createGithubActionsDispatchAction, createGithubAutolinksAction, createGithubDeployKeyAction, createGithubEnvironmentAction, createGithubIssuesLabelAction, createGithubPagesEnableAction, createGithubRepoCreateAction, createGithubRepoPushAction, createGithubWebhookAction, createPublishGithubAction, createPublishGithubPullRequestAction, githubModule as default, getOctokitOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend-module-github",
3
- "version": "0.3.2",
3
+ "version": "0.4.0-next.1",
4
4
  "description": "The github module for @backstage/plugin-scaffolder-backend",
5
5
  "backstage": {
6
6
  "role": "backend-plugin-module",
@@ -39,12 +39,12 @@
39
39
  "test": "backstage-cli package test"
40
40
  },
41
41
  "dependencies": {
42
- "@backstage/backend-common": "^0.23.2",
43
- "@backstage/backend-plugin-api": "^0.6.21",
42
+ "@backstage/backend-common": "^0.23.3-next.1",
43
+ "@backstage/backend-plugin-api": "^0.6.22-next.1",
44
44
  "@backstage/config": "^1.2.0",
45
45
  "@backstage/errors": "^1.2.4",
46
- "@backstage/integration": "^1.12.0",
47
- "@backstage/plugin-scaffolder-node": "^0.4.7",
46
+ "@backstage/integration": "^1.13.0-next.0",
47
+ "@backstage/plugin-scaffolder-node": "^0.4.8-next.1",
48
48
  "@octokit/webhooks": "^10.0.0",
49
49
  "libsodium-wrappers": "^0.7.11",
50
50
  "octokit": "^3.0.0",
@@ -52,9 +52,9 @@
52
52
  "yaml": "^2.0.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@backstage/backend-test-utils": "^0.4.3",
56
- "@backstage/cli": "^0.26.10",
57
- "@backstage/plugin-scaffolder-node-test-utils": "^0.1.8",
55
+ "@backstage/backend-test-utils": "^0.4.4-next.1",
56
+ "@backstage/cli": "^0.26.11-next.1",
57
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.1.9-next.1",
58
58
  "@types/libsodium-wrappers": "^0.7.10",
59
59
  "fs-extra": "^11.2.0",
60
60
  "jsonschema": "^1.2.6"