@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/CHANGELOG.md +37 -0
- package/dist/actions/githubEnvironment.cjs.js +103 -51
- package/dist/actions/githubEnvironment.cjs.js.map +1 -1
- package/dist/actions/githubIssuesLabel.cjs.js +10 -5
- package/dist/actions/githubIssuesLabel.cjs.js.map +1 -1
- package/dist/actions/githubPagesEnable.cjs.js +15 -10
- package/dist/actions/githubPagesEnable.cjs.js.map +1 -1
- package/dist/actions/githubPullRequest.cjs.js +38 -19
- package/dist/actions/githubPullRequest.cjs.js.map +1 -1
- package/dist/actions/githubRepoCreate.cjs.js +34 -28
- package/dist/actions/githubRepoCreate.cjs.js.map +1 -1
- package/dist/actions/githubRepoPush.cjs.js +34 -28
- package/dist/actions/githubRepoPush.cjs.js.map +1 -1
- package/dist/actions/githubWebhook.cjs.js +16 -11
- package/dist/actions/githubWebhook.cjs.js.map +1 -1
- package/dist/index.d.ts +160 -160
- package/package.json +12 -18
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
|
-
}
|
|
26
|
-
token?: string
|
|
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
|
|
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
|
|
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
|
|
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[]
|
|
68
|
-
teams?: string[]
|
|
69
|
-
apps?: string[]
|
|
70
|
-
}
|
|
71
|
-
requiredApprovingReviewCount?: number
|
|
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[]
|
|
76
|
-
}
|
|
77
|
-
requiredStatusCheckContexts?: string[]
|
|
78
|
-
requireBranchesToBeUpToDate?: boolean
|
|
79
|
-
requiredConversationResolution?: boolean
|
|
80
|
-
repoVisibility?: "
|
|
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:
|
|
91
|
-
}
|
|
92
|
-
hasProjects?: boolean
|
|
93
|
-
hasWiki?: boolean
|
|
94
|
-
hasIssues?: boolean
|
|
95
|
-
token?: string
|
|
96
|
-
topics?: string[]
|
|
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
|
-
}
|
|
99
|
+
};
|
|
100
100
|
secrets?: {
|
|
101
101
|
[key: string]: string;
|
|
102
|
-
}
|
|
102
|
+
};
|
|
103
103
|
oidcCustomization?: {
|
|
104
104
|
useDefault: boolean;
|
|
105
|
-
includeClaimKeys?: string[]
|
|
106
|
-
}
|
|
107
|
-
requireCommitSigning?: boolean
|
|
108
|
-
requiredLinearHistory?: boolean
|
|
105
|
+
includeClaimKeys?: string[];
|
|
106
|
+
};
|
|
107
|
+
requireCommitSigning?: boolean;
|
|
108
|
+
requiredLinearHistory?: boolean;
|
|
109
109
|
customProperties?: {
|
|
110
110
|
[key: string]: string;
|
|
111
|
-
}
|
|
112
|
-
subscribe?: boolean
|
|
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
|
|
128
|
-
defaultBranch?: string
|
|
129
|
-
protectDefaultBranch?: boolean
|
|
130
|
-
protectEnforceAdmins?: boolean
|
|
131
|
-
gitCommitMessage?: string
|
|
132
|
-
gitAuthorName?: string
|
|
133
|
-
gitAuthorEmail?: string
|
|
134
|
-
requireCodeOwnerReviews?: boolean
|
|
135
|
-
dismissStaleReviews?: boolean
|
|
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
|
|
141
|
+
requiredApprovingReviewCount?: number;
|
|
142
142
|
restrictions?: {
|
|
143
143
|
users: string[];
|
|
144
144
|
teams: string[];
|
|
145
145
|
apps?: string[];
|
|
146
146
|
} | undefined;
|
|
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>;
|
|
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
|
|
169
|
-
events?: string[]
|
|
170
|
-
active?: boolean
|
|
171
|
-
contentType?: "form" | "json"
|
|
172
|
-
insecureSsl?: boolean
|
|
173
|
-
token?: string
|
|
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
|
|
189
|
-
token?: string
|
|
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
|
-
}
|
|
208
|
-
customBranchPolicyNames?: string[]
|
|
209
|
-
customTagPolicyNames?: string[]
|
|
207
|
+
};
|
|
208
|
+
customBranchPolicyNames?: string[];
|
|
209
|
+
customTagPolicyNames?: string[];
|
|
210
210
|
environmentVariables?: {
|
|
211
211
|
[key: string]: string;
|
|
212
|
-
}
|
|
212
|
+
};
|
|
213
213
|
secrets?: {
|
|
214
214
|
[key: string]: string;
|
|
215
|
-
}
|
|
216
|
-
token?: string
|
|
217
|
-
waitTimer?: number
|
|
218
|
-
preventSelfReview?: boolean
|
|
219
|
-
reviewers?: string[]
|
|
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
|
|
268
|
+
targetBranchName?: string;
|
|
269
269
|
description: string;
|
|
270
270
|
repoUrl: string;
|
|
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>;
|
|
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
|
|
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
|
|
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
|
|
320
|
+
requiredApprovingReviewCount?: number;
|
|
321
321
|
restrictions?: {
|
|
322
322
|
users: string[];
|
|
323
323
|
teams: string[];
|
|
324
324
|
apps?: string[];
|
|
325
325
|
} | undefined;
|
|
326
|
-
requireCodeOwnerReviews?: boolean
|
|
327
|
-
dismissStaleReviews?: boolean
|
|
328
|
-
requiredStatusCheckContexts?: string[]
|
|
329
|
-
requireBranchesToBeUpToDate?: boolean
|
|
330
|
-
requiredConversationResolution?: boolean
|
|
331
|
-
requireLastPushApproval?: boolean
|
|
332
|
-
repoVisibility?: "
|
|
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:
|
|
343
|
-
}
|
|
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
|
|
348
|
-
topics?: string[]
|
|
347
|
+
token?: string;
|
|
348
|
+
topics?: string[];
|
|
349
349
|
repoVariables?: {
|
|
350
350
|
[key: string]: string;
|
|
351
|
-
}
|
|
351
|
+
};
|
|
352
352
|
secrets?: {
|
|
353
353
|
[key: string]: string;
|
|
354
|
-
}
|
|
354
|
+
};
|
|
355
355
|
oidcCustomization?: {
|
|
356
356
|
useDefault: boolean;
|
|
357
|
-
includeClaimKeys?: string[]
|
|
358
|
-
}
|
|
359
|
-
requiredCommitSigning?: boolean
|
|
360
|
-
requiredLinearHistory?: boolean
|
|
357
|
+
includeClaimKeys?: string[];
|
|
358
|
+
};
|
|
359
|
+
requiredCommitSigning?: boolean;
|
|
360
|
+
requiredLinearHistory?: boolean;
|
|
361
361
|
customProperties?: {
|
|
362
362
|
[key: string]: string;
|
|
363
|
-
}
|
|
364
|
-
subscribe?: boolean
|
|
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
|
|
379
|
-
token?: string
|
|
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"
|
|
393
|
-
sourceBranch?: string
|
|
394
|
-
sourcePath?: "/" | "/docs"
|
|
395
|
-
token?: string
|
|
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
|
|
408
|
-
enforceAdmins?: boolean
|
|
409
|
-
requiredApprovingReviewCount?: number
|
|
410
|
-
requireCodeOwnerReviews?: boolean
|
|
411
|
-
dismissStaleReviews?: boolean
|
|
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[]
|
|
423
|
-
requireBranchesToBeUpToDate?: boolean
|
|
424
|
-
requiredConversationResolution?: boolean
|
|
425
|
-
requireLastPushApproval?: boolean
|
|
426
|
-
requiredCommitSigning?: boolean
|
|
427
|
-
requiredLinearHistory?: boolean
|
|
428
|
-
token?: string
|
|
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
|
|
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
|
|
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.
|
|
59
|
-
"@backstage/plugin-scaffolder-node": "0.
|
|
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
|
|
68
|
-
"@backstage/cli": "0.
|
|
69
|
-
"@backstage/plugin-scaffolder-node-test-utils": "0.
|
|
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"
|