@backstage/plugin-scaffolder-backend-module-github 0.6.1-next.1 → 0.6.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
@@ -22,9 +22,9 @@ declare function createGithubActionsDispatchAction(options: {
22
22
  branchOrTagName: string;
23
23
  workflowInputs?: {
24
24
  [key: string]: string;
25
- } | undefined;
26
- token?: string | undefined;
27
- }, _backstage_types.JsonObject>;
25
+ };
26
+ token?: string;
27
+ }, _backstage_types.JsonObject, "v1">;
28
28
 
29
29
  /**
30
30
  * Adds labels to a pull request or issue on GitHub
@@ -37,8 +37,8 @@ declare function createGithubIssuesLabelAction(options: {
37
37
  repoUrl: string;
38
38
  number: number;
39
39
  labels: string[];
40
- token?: string | undefined;
41
- }, _backstage_types.JsonObject>;
40
+ token?: string;
41
+ }, _backstage_types.JsonObject, "v1">;
42
42
 
43
43
  /**
44
44
  * Creates a new action that initializes a git repository
@@ -50,35 +50,35 @@ declare function createGithubRepoCreateAction(options: {
50
50
  githubCredentialsProvider?: GithubCredentialsProvider;
51
51
  }): _backstage_plugin_scaffolder_node.TemplateAction<{
52
52
  repoUrl: string;
53
- description?: string | undefined;
54
- homepage?: string | undefined;
55
- access?: string | undefined;
56
- deleteBranchOnMerge?: boolean | undefined;
57
- gitAuthorName?: string | undefined;
58
- gitAuthorEmail?: string | undefined;
59
- allowRebaseMerge?: boolean | undefined;
60
- allowSquashMerge?: boolean | undefined;
61
- squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
62
- squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
63
- allowMergeCommit?: boolean | undefined;
64
- allowAutoMerge?: boolean | undefined;
65
- requireCodeOwnerReviews?: boolean | undefined;
53
+ description?: string;
54
+ homepage?: string;
55
+ access?: string;
56
+ deleteBranchOnMerge?: boolean;
57
+ gitAuthorName?: string;
58
+ gitAuthorEmail?: string;
59
+ allowRebaseMerge?: boolean;
60
+ allowSquashMerge?: boolean;
61
+ squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE";
62
+ squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK";
63
+ allowMergeCommit?: boolean;
64
+ allowAutoMerge?: boolean;
65
+ requireCodeOwnerReviews?: boolean;
66
66
  bypassPullRequestAllowances?: {
67
- users?: string[] | undefined;
68
- teams?: string[] | undefined;
69
- apps?: string[] | undefined;
70
- } | undefined;
71
- requiredApprovingReviewCount?: number | undefined;
67
+ users?: string[];
68
+ teams?: string[];
69
+ apps?: string[];
70
+ };
71
+ requiredApprovingReviewCount?: number;
72
72
  restrictions?: {
73
73
  users: string[];
74
74
  teams: string[];
75
- apps?: string[] | undefined;
76
- } | undefined;
77
- requiredStatusCheckContexts?: string[] | undefined;
78
- requireBranchesToBeUpToDate?: boolean | undefined;
79
- requiredConversationResolution?: boolean | undefined;
80
- repoVisibility?: "internal" | "private" | "public" | undefined;
81
- collaborators?: ({
75
+ apps?: string[];
76
+ };
77
+ requiredStatusCheckContexts?: string[];
78
+ requireBranchesToBeUpToDate?: boolean;
79
+ requiredConversationResolution?: boolean;
80
+ repoVisibility?: "private" | "internal" | "public";
81
+ collaborators?: Array<{
82
82
  user: string;
83
83
  access: string;
84
84
  } | {
@@ -87,30 +87,30 @@ declare function createGithubRepoCreateAction(options: {
87
87
  } | {
88
88
  /** @deprecated This field is deprecated in favor of team */
89
89
  username: string;
90
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
91
- })[] | undefined;
92
- hasProjects?: boolean | undefined;
93
- hasWiki?: boolean | undefined;
94
- hasIssues?: boolean | undefined;
95
- token?: string | undefined;
96
- topics?: string[] | undefined;
90
+ access: "pull" | "push" | "admin" | "maintain" | "triage";
91
+ }>;
92
+ hasProjects?: boolean;
93
+ hasWiki?: boolean;
94
+ hasIssues?: boolean;
95
+ token?: string;
96
+ topics?: string[];
97
97
  repoVariables?: {
98
98
  [key: string]: string;
99
- } | undefined;
99
+ };
100
100
  secrets?: {
101
101
  [key: string]: string;
102
- } | undefined;
102
+ };
103
103
  oidcCustomization?: {
104
104
  useDefault: boolean;
105
- includeClaimKeys?: string[] | undefined;
106
- } | undefined;
107
- requireCommitSigning?: boolean | undefined;
108
- requiredLinearHistory?: boolean | undefined;
105
+ includeClaimKeys?: string[];
106
+ };
107
+ requireCommitSigning?: boolean;
108
+ requiredLinearHistory?: boolean;
109
109
  customProperties?: {
110
110
  [key: string]: string;
111
- } | undefined;
112
- subscribe?: boolean | undefined;
113
- }, _backstage_types.JsonObject>;
111
+ };
112
+ subscribe?: boolean;
113
+ }, _backstage_types.JsonObject, "v1">;
114
114
 
115
115
  /**
116
116
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -124,35 +124,35 @@ declare function createGithubRepoPushAction(options: {
124
124
  githubCredentialsProvider?: GithubCredentialsProvider;
125
125
  }): _backstage_plugin_scaffolder_node.TemplateAction<{
126
126
  repoUrl: string;
127
- description?: string | undefined;
128
- defaultBranch?: string | undefined;
129
- protectDefaultBranch?: boolean | undefined;
130
- protectEnforceAdmins?: boolean | undefined;
131
- gitCommitMessage?: string | undefined;
132
- gitAuthorName?: string | undefined;
133
- gitAuthorEmail?: string | undefined;
134
- requireCodeOwnerReviews?: boolean | undefined;
135
- dismissStaleReviews?: boolean | undefined;
127
+ description?: string;
128
+ defaultBranch?: string;
129
+ protectDefaultBranch?: boolean;
130
+ protectEnforceAdmins?: boolean;
131
+ gitCommitMessage?: string;
132
+ gitAuthorName?: string;
133
+ gitAuthorEmail?: string;
134
+ requireCodeOwnerReviews?: boolean;
135
+ dismissStaleReviews?: boolean;
136
136
  bypassPullRequestAllowances?: {
137
137
  users?: string[];
138
138
  teams?: string[];
139
139
  apps?: string[];
140
140
  } | undefined;
141
- requiredApprovingReviewCount?: number | undefined;
141
+ requiredApprovingReviewCount?: number;
142
142
  restrictions?: {
143
143
  users: string[];
144
144
  teams: string[];
145
145
  apps?: string[];
146
146
  } | undefined;
147
- requiredStatusCheckContexts?: string[] | undefined;
148
- requireBranchesToBeUpToDate?: boolean | undefined;
149
- requiredConversationResolution?: boolean | undefined;
150
- sourcePath?: string | undefined;
151
- token?: string | undefined;
152
- requiredCommitSigning?: boolean | undefined;
153
- requiredLinearHistory?: boolean | undefined;
154
- requireLastPushApproval?: boolean | undefined;
155
- }, _backstage_types.JsonObject>;
147
+ requiredStatusCheckContexts?: string[];
148
+ requireBranchesToBeUpToDate?: boolean;
149
+ requiredConversationResolution?: boolean;
150
+ sourcePath?: string;
151
+ token?: string;
152
+ requiredCommitSigning?: boolean;
153
+ requiredLinearHistory?: boolean;
154
+ requireLastPushApproval?: boolean;
155
+ }, _backstage_types.JsonObject, "v1">;
156
156
 
157
157
  /**
158
158
  * Creates new action that creates a webhook for a repository on GitHub.
@@ -165,13 +165,13 @@ declare function createGithubWebhookAction(options: {
165
165
  }): _backstage_plugin_scaffolder_node.TemplateAction<{
166
166
  repoUrl: string;
167
167
  webhookUrl: string;
168
- webhookSecret?: string | undefined;
169
- events?: string[] | undefined;
170
- active?: boolean | undefined;
171
- contentType?: "form" | "json" | undefined;
172
- insecureSsl?: boolean | undefined;
173
- token?: string | undefined;
174
- }, _backstage_types.JsonObject>;
168
+ webhookSecret?: string;
169
+ events?: string[];
170
+ active?: boolean;
171
+ contentType?: "form" | "json";
172
+ insecureSsl?: boolean;
173
+ token?: string;
174
+ }, _backstage_types.JsonObject, "v1">;
175
175
 
176
176
  /**
177
177
  * Creates an `github:deployKey:create` Scaffolder action that creates a Deploy Key
@@ -185,9 +185,9 @@ declare function createGithubDeployKeyAction(options: {
185
185
  publicKey: string;
186
186
  privateKey: string;
187
187
  deployKeyName: string;
188
- privateKeySecretName?: string | undefined;
189
- token?: string | undefined;
190
- }, _backstage_types.JsonObject>;
188
+ privateKeySecretName?: string;
189
+ token?: string;
190
+ }, _backstage_types.JsonObject, "v1">;
191
191
 
192
192
  /**
193
193
  * Creates an `github:environment:create` Scaffolder action that creates a Github Environment.
@@ -204,20 +204,20 @@ declare function createGithubEnvironmentAction(options: {
204
204
  deploymentBranchPolicy?: {
205
205
  protected_branches: boolean;
206
206
  custom_branch_policies: boolean;
207
- } | undefined;
208
- customBranchPolicyNames?: string[] | undefined;
209
- customTagPolicyNames?: string[] | undefined;
207
+ };
208
+ customBranchPolicyNames?: string[];
209
+ customTagPolicyNames?: string[];
210
210
  environmentVariables?: {
211
211
  [key: string]: string;
212
- } | undefined;
212
+ };
213
213
  secrets?: {
214
214
  [key: string]: string;
215
- } | undefined;
216
- token?: string | undefined;
217
- waitTimer?: number | undefined;
218
- preventSelfReview?: boolean | undefined;
219
- reviewers?: string[] | undefined;
220
- }, _backstage_types.JsonObject>;
215
+ };
216
+ token?: string;
217
+ waitTimer?: number;
218
+ preventSelfReview?: boolean;
219
+ reviewers?: string[];
220
+ }, _backstage_types.JsonObject, "v1">;
221
221
 
222
222
  /**
223
223
  * The options passed to {@link createPublishGithubPullRequestAction} method
@@ -265,23 +265,23 @@ interface CreateGithubPullRequestActionOptions {
265
265
  declare const createPublishGithubPullRequestAction: (options: CreateGithubPullRequestActionOptions) => _backstage_plugin_scaffolder_node.TemplateAction<{
266
266
  title: string;
267
267
  branchName: string;
268
- targetBranchName?: string | undefined;
268
+ targetBranchName?: string;
269
269
  description: string;
270
270
  repoUrl: string;
271
- draft?: boolean | undefined;
272
- targetPath?: string | undefined;
273
- sourcePath?: string | undefined;
274
- token?: string | undefined;
275
- reviewers?: string[] | undefined;
276
- teamReviewers?: string[] | undefined;
277
- commitMessage?: string | undefined;
278
- update?: boolean | undefined;
279
- forceFork?: boolean | undefined;
280
- gitAuthorName?: string | undefined;
281
- gitAuthorEmail?: string | undefined;
282
- forceEmptyGitAuthor?: boolean | undefined;
283
- createWhenEmpty?: boolean | undefined;
284
- }, _backstage_types.JsonObject>;
271
+ draft?: boolean;
272
+ targetPath?: string;
273
+ sourcePath?: string;
274
+ token?: string;
275
+ reviewers?: string[];
276
+ teamReviewers?: string[];
277
+ commitMessage?: string;
278
+ update?: boolean;
279
+ forceFork?: boolean;
280
+ gitAuthorName?: string;
281
+ gitAuthorEmail?: string;
282
+ forceEmptyGitAuthor?: boolean;
283
+ createWhenEmpty?: boolean;
284
+ }, _backstage_types.JsonObject, "v1">;
285
285
 
286
286
  /**
287
287
  * Creates a new action that initializes a git repository of the content in the workspace
@@ -295,42 +295,42 @@ declare function createPublishGithubAction(options: {
295
295
  githubCredentialsProvider?: GithubCredentialsProvider;
296
296
  }): _backstage_plugin_scaffolder_node.TemplateAction<{
297
297
  repoUrl: string;
298
- description?: string | undefined;
299
- homepage?: string | undefined;
300
- access?: string | undefined;
301
- defaultBranch?: string | undefined;
302
- protectDefaultBranch?: boolean | undefined;
303
- protectEnforceAdmins?: boolean | undefined;
304
- deleteBranchOnMerge?: boolean | undefined;
305
- gitCommitMessage?: string | undefined;
306
- gitAuthorName?: string | undefined;
307
- gitAuthorEmail?: string | undefined;
308
- allowRebaseMerge?: boolean | undefined;
309
- allowSquashMerge?: boolean | undefined;
310
- squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
311
- squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
312
- allowMergeCommit?: boolean | undefined;
313
- allowAutoMerge?: boolean | undefined;
314
- sourcePath?: string | undefined;
298
+ description?: string;
299
+ homepage?: string;
300
+ access?: string;
301
+ defaultBranch?: string;
302
+ protectDefaultBranch?: boolean;
303
+ protectEnforceAdmins?: boolean;
304
+ deleteBranchOnMerge?: boolean;
305
+ gitCommitMessage?: string;
306
+ gitAuthorName?: string;
307
+ gitAuthorEmail?: string;
308
+ allowRebaseMerge?: boolean;
309
+ allowSquashMerge?: boolean;
310
+ squashMergeCommitTitle?: "PR_TITLE" | "COMMIT_OR_PR_TITLE";
311
+ squashMergeCommitMessage?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK";
312
+ allowMergeCommit?: boolean;
313
+ allowAutoMerge?: boolean;
314
+ sourcePath?: string;
315
315
  bypassPullRequestAllowances?: {
316
316
  users?: string[];
317
317
  teams?: string[];
318
318
  apps?: string[];
319
319
  } | undefined;
320
- requiredApprovingReviewCount?: number | undefined;
320
+ requiredApprovingReviewCount?: number;
321
321
  restrictions?: {
322
322
  users: string[];
323
323
  teams: string[];
324
324
  apps?: string[];
325
325
  } | undefined;
326
- requireCodeOwnerReviews?: boolean | undefined;
327
- dismissStaleReviews?: boolean | undefined;
328
- requiredStatusCheckContexts?: string[] | undefined;
329
- requireBranchesToBeUpToDate?: boolean | undefined;
330
- requiredConversationResolution?: boolean | undefined;
331
- requireLastPushApproval?: boolean | undefined;
332
- repoVisibility?: "internal" | "private" | "public" | undefined;
333
- collaborators?: ({
326
+ requireCodeOwnerReviews?: boolean;
327
+ dismissStaleReviews?: boolean;
328
+ requiredStatusCheckContexts?: string[];
329
+ requireBranchesToBeUpToDate?: boolean;
330
+ requiredConversationResolution?: boolean;
331
+ requireLastPushApproval?: boolean;
332
+ repoVisibility?: "private" | "internal" | "public";
333
+ collaborators?: Array<{
334
334
  user: string;
335
335
  access: string;
336
336
  } | {
@@ -339,30 +339,30 @@ declare function createPublishGithubAction(options: {
339
339
  } | {
340
340
  /** @deprecated This field is deprecated in favor of team */
341
341
  username: string;
342
- access: 'pull' | 'push' | 'admin' | 'maintain' | 'triage';
343
- })[] | undefined;
342
+ access: "pull" | "push" | "admin" | "maintain" | "triage";
343
+ }>;
344
344
  hasProjects?: boolean | undefined;
345
345
  hasWiki?: boolean | undefined;
346
346
  hasIssues?: boolean | undefined;
347
- token?: string | undefined;
348
- topics?: string[] | undefined;
347
+ token?: string;
348
+ topics?: string[];
349
349
  repoVariables?: {
350
350
  [key: string]: string;
351
- } | undefined;
351
+ };
352
352
  secrets?: {
353
353
  [key: string]: string;
354
- } | undefined;
354
+ };
355
355
  oidcCustomization?: {
356
356
  useDefault: boolean;
357
- includeClaimKeys?: string[] | undefined;
358
- } | undefined;
359
- requiredCommitSigning?: boolean | undefined;
360
- requiredLinearHistory?: boolean | undefined;
357
+ includeClaimKeys?: string[];
358
+ };
359
+ requiredCommitSigning?: boolean;
360
+ requiredLinearHistory?: boolean;
361
361
  customProperties?: {
362
362
  [key: string]: string;
363
- } | undefined;
364
- subscribe?: boolean | undefined;
365
- }, _backstage_types.JsonObject>;
363
+ };
364
+ subscribe?: boolean;
365
+ }, _backstage_types.JsonObject, "v1">;
366
366
 
367
367
  /**
368
368
  * Create an autolink reference for a repository
@@ -375,9 +375,9 @@ declare function createGithubAutolinksAction(options: {
375
375
  repoUrl: string;
376
376
  keyPrefix: string;
377
377
  urlTemplate: string;
378
- isAlphanumeric?: boolean | undefined;
379
- token?: string | undefined;
380
- }, _backstage_types.JsonObject>;
378
+ isAlphanumeric?: boolean;
379
+ token?: string;
380
+ }, _backstage_types.JsonObject, "v1">;
381
381
 
382
382
  /**
383
383
  * Creates a new action that enables GitHub Pages for a repository.
@@ -389,11 +389,11 @@ declare function createGithubPagesEnableAction(options: {
389
389
  githubCredentialsProvider?: GithubCredentialsProvider;
390
390
  }): _backstage_plugin_scaffolder_node.TemplateAction<{
391
391
  repoUrl: string;
392
- buildType?: "legacy" | "workflow" | undefined;
393
- sourceBranch?: string | undefined;
394
- sourcePath?: "/" | "/docs" | undefined;
395
- token?: string | undefined;
396
- }, _backstage_types.JsonObject>;
392
+ buildType?: "legacy" | "workflow";
393
+ sourceBranch?: string;
394
+ sourcePath?: "/" | "/docs";
395
+ token?: string;
396
+ }, _backstage_types.JsonObject, "v1">;
397
397
 
398
398
  /**
399
399
  * Creates an `github:branch-protection:create` Scaffolder action that configured Branch Protection in a Github Repository.
@@ -404,11 +404,11 @@ declare function createGithubBranchProtectionAction(options: {
404
404
  integrations: ScmIntegrationRegistry;
405
405
  }): _backstage_plugin_scaffolder_node.TemplateAction<{
406
406
  repoUrl: string;
407
- branch?: string | undefined;
408
- enforceAdmins?: boolean | undefined;
409
- requiredApprovingReviewCount?: number | undefined;
410
- requireCodeOwnerReviews?: boolean | undefined;
411
- dismissStaleReviews?: boolean | undefined;
407
+ branch?: string;
408
+ enforceAdmins?: boolean;
409
+ requiredApprovingReviewCount?: number;
410
+ requireCodeOwnerReviews?: boolean;
411
+ dismissStaleReviews?: boolean;
412
412
  bypassPullRequestAllowances?: {
413
413
  users?: string[];
414
414
  teams?: string[];
@@ -419,14 +419,14 @@ declare function createGithubBranchProtectionAction(options: {
419
419
  teams: string[];
420
420
  apps?: string[];
421
421
  } | undefined;
422
- requiredStatusCheckContexts?: string[] | undefined;
423
- requireBranchesToBeUpToDate?: boolean | undefined;
424
- requiredConversationResolution?: boolean | undefined;
425
- requireLastPushApproval?: boolean | undefined;
426
- requiredCommitSigning?: boolean | undefined;
427
- requiredLinearHistory?: boolean | undefined;
428
- token?: string | undefined;
429
- }, _backstage_types.JsonObject>;
422
+ requiredStatusCheckContexts?: string[];
423
+ requireBranchesToBeUpToDate?: boolean;
424
+ requiredConversationResolution?: boolean;
425
+ requireLastPushApproval?: boolean;
426
+ requiredCommitSigning?: boolean;
427
+ requiredLinearHistory?: boolean;
428
+ token?: string;
429
+ }, _backstage_types.JsonObject, "v1">;
430
430
 
431
431
  /**
432
432
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend-module-github",
3
- "version": "0.6.1-next.1",
3
+ "version": "0.6.1",
4
4
  "description": "The github module for @backstage/plugin-scaffolder-backend",
5
5
  "backstage": {
6
6
  "role": "backend-plugin-module",
@@ -30,13 +30,6 @@
30
30
  },
31
31
  "main": "./dist/index.cjs.js",
32
32
  "types": "./dist/index.d.ts",
33
- "typesVersions": {
34
- "*": {
35
- "index": [
36
- "dist/index.d.ts"
37
- ]
38
- }
39
- },
40
33
  "files": [
41
34
  "dist"
42
35
  ],
@@ -50,13 +43,14 @@
50
43
  "test": "backstage-cli package test"
51
44
  },
52
45
  "dependencies": {
53
- "@backstage/backend-plugin-api": "1.2.1-next.1",
54
- "@backstage/catalog-client": "1.9.1",
55
- "@backstage/catalog-model": "1.7.3",
56
- "@backstage/config": "1.3.2",
57
- "@backstage/errors": "1.2.7",
58
- "@backstage/integration": "1.16.1",
59
- "@backstage/plugin-scaffolder-node": "0.7.1-next.1",
46
+ "@backstage/backend-plugin-api": "^1.2.1",
47
+ "@backstage/catalog-client": "^1.9.1",
48
+ "@backstage/catalog-model": "^1.7.3",
49
+ "@backstage/config": "^1.3.2",
50
+ "@backstage/errors": "^1.2.7",
51
+ "@backstage/integration": "^1.16.2",
52
+ "@backstage/plugin-scaffolder-node": "^0.8.0",
53
+ "@backstage/types": "^1.2.1",
60
54
  "@octokit/webhooks": "^10.9.2",
61
55
  "libsodium-wrappers": "^0.7.11",
62
56
  "octokit": "^3.0.0",
@@ -64,9 +58,9 @@
64
58
  "yaml": "^2.0.0"
65
59
  },
66
60
  "devDependencies": {
67
- "@backstage/backend-test-utils": "1.3.1-next.1",
68
- "@backstage/cli": "0.30.1-next.0",
69
- "@backstage/plugin-scaffolder-node-test-utils": "0.1.20-next.1",
61
+ "@backstage/backend-test-utils": "^1.3.1",
62
+ "@backstage/cli": "^0.31.0",
63
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.2.0",
70
64
  "@types/libsodium-wrappers": "^0.7.10",
71
65
  "fs-extra": "^11.2.0",
72
66
  "jsonschema": "^1.2.6"