@backstage/plugin-scaffolder-backend-module-github 0.5.1-next.1 → 0.5.1-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 +30 -0
- package/dist/actions/gitHelpers.cjs.js +90 -0
- package/dist/actions/gitHelpers.cjs.js.map +1 -0
- package/dist/actions/gitHubEnvironment.examples.cjs.js +340 -0
- package/dist/actions/gitHubEnvironment.examples.cjs.js.map +1 -0
- package/dist/actions/github.cjs.js +187 -0
- package/dist/actions/github.cjs.js.map +1 -0
- package/dist/actions/github.examples.cjs.js +60 -0
- package/dist/actions/github.examples.cjs.js.map +1 -0
- package/dist/actions/githubActionsDispatch.cjs.js +84 -0
- package/dist/actions/githubActionsDispatch.cjs.js.map +1 -0
- package/dist/actions/githubActionsDispatch.examples.cjs.js +66 -0
- package/dist/actions/githubActionsDispatch.examples.cjs.js.map +1 -0
- package/dist/actions/githubAutolinks.cjs.js +76 -0
- package/dist/actions/githubAutolinks.cjs.js.map +1 -0
- package/dist/actions/githubAutolinks.examples.cjs.js +30 -0
- package/dist/actions/githubAutolinks.examples.cjs.js.map +1 -0
- package/dist/actions/githubBranchProtection.cjs.js +97 -0
- package/dist/actions/githubBranchProtection.cjs.js.map +1 -0
- package/dist/actions/githubBranchProtection.examples.cjs.js +62 -0
- package/dist/actions/githubBranchProtection.examples.cjs.js.map +1 -0
- package/dist/actions/githubDeployKey.cjs.js +123 -0
- package/dist/actions/githubDeployKey.cjs.js.map +1 -0
- package/dist/actions/githubDeployKey.examples.cjs.js +30 -0
- package/dist/actions/githubDeployKey.examples.cjs.js.map +1 -0
- package/dist/actions/githubEnvironment.cjs.js +255 -0
- package/dist/actions/githubEnvironment.cjs.js.map +1 -0
- package/dist/actions/githubIssuesLabel.cjs.js +79 -0
- package/dist/actions/githubIssuesLabel.cjs.js.map +1 -0
- package/dist/actions/githubIssuesLabel.examples.cjs.js +46 -0
- package/dist/actions/githubIssuesLabel.examples.cjs.js.map +1 -0
- package/dist/actions/githubPagesEnable.cjs.js +88 -0
- package/dist/actions/githubPagesEnable.cjs.js.map +1 -0
- package/dist/actions/githubPagesEnable.examples.cjs.js +224 -0
- package/dist/actions/githubPagesEnable.examples.cjs.js.map +1 -0
- package/dist/actions/githubPullRequest.cjs.js +336 -0
- package/dist/actions/githubPullRequest.cjs.js.map +1 -0
- package/dist/actions/githubPullRequest.examples.cjs.js +260 -0
- package/dist/actions/githubPullRequest.examples.cjs.js.map +1 -0
- package/dist/actions/githubRepoCreate.cjs.js +130 -0
- package/dist/actions/githubRepoCreate.cjs.js.map +1 -0
- package/dist/actions/githubRepoCreate.examples.cjs.js +964 -0
- package/dist/actions/githubRepoCreate.examples.cjs.js.map +1 -0
- package/dist/actions/githubRepoPush.cjs.js +122 -0
- package/dist/actions/githubRepoPush.cjs.js.map +1 -0
- package/dist/actions/githubRepoPush.examples.cjs.js +57 -0
- package/dist/actions/githubRepoPush.examples.cjs.js.map +1 -0
- package/dist/actions/githubWebhook.cjs.js +135 -0
- package/dist/actions/githubWebhook.cjs.js.map +1 -0
- package/dist/actions/githubWebhook.examples.cjs.js +113 -0
- package/dist/actions/githubWebhook.examples.cjs.js.map +1 -0
- package/dist/actions/helpers.cjs.js +292 -0
- package/dist/actions/helpers.cjs.js.map +1 -0
- package/dist/actions/inputProperties.cjs.js +319 -0
- package/dist/actions/inputProperties.cjs.js.map +1 -0
- package/dist/actions/outputProperties.cjs.js +19 -0
- package/dist/actions/outputProperties.cjs.js.map +1 -0
- package/dist/index.cjs.js +31 -4306
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +33 -1
- package/dist/module.cjs.js +92 -0
- package/dist/module.cjs.js.map +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var yaml = require('yaml');
|
|
4
|
+
|
|
5
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var yaml__default = /*#__PURE__*/_interopDefaultCompat(yaml);
|
|
8
|
+
|
|
9
|
+
const examples = [
|
|
10
|
+
{
|
|
11
|
+
description: "Creates a GitHub repository with default configuration.",
|
|
12
|
+
example: yaml__default.default.stringify({
|
|
13
|
+
steps: [
|
|
14
|
+
{
|
|
15
|
+
action: "github:repo:create",
|
|
16
|
+
name: "Create a new GitHub repository",
|
|
17
|
+
input: {
|
|
18
|
+
repoUrl: "github.com?repo=repo&owner=owner"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
})
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
description: "Add a description.",
|
|
26
|
+
example: yaml__default.default.stringify({
|
|
27
|
+
steps: [
|
|
28
|
+
{
|
|
29
|
+
action: "github:repo:create",
|
|
30
|
+
name: "Create a new GitHub repository with a description",
|
|
31
|
+
input: {
|
|
32
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
33
|
+
description: "My new repository"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
})
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
description: "Disable wiki and issues.",
|
|
41
|
+
example: yaml__default.default.stringify({
|
|
42
|
+
steps: [
|
|
43
|
+
{
|
|
44
|
+
action: "github:repo:create",
|
|
45
|
+
name: "Create a new GitHub repository without wiki and issues",
|
|
46
|
+
input: {
|
|
47
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
48
|
+
hasIssues: false,
|
|
49
|
+
hasWiki: false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
})
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
description: "Set repository homepage.",
|
|
57
|
+
example: yaml__default.default.stringify({
|
|
58
|
+
steps: [
|
|
59
|
+
{
|
|
60
|
+
action: "github:repo:create",
|
|
61
|
+
name: "Create a new GitHub repository with homepage",
|
|
62
|
+
input: {
|
|
63
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
64
|
+
homepage: "https://example.com"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
})
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
description: "Create a private repository.",
|
|
72
|
+
example: yaml__default.default.stringify({
|
|
73
|
+
steps: [
|
|
74
|
+
{
|
|
75
|
+
action: "github:repo:create",
|
|
76
|
+
name: "Create a new private GitHub repository",
|
|
77
|
+
input: {
|
|
78
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
79
|
+
repoVisibility: "private"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
})
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
description: "Enable required code owner reviews.",
|
|
87
|
+
example: yaml__default.default.stringify({
|
|
88
|
+
steps: [
|
|
89
|
+
{
|
|
90
|
+
action: "github:repo:create",
|
|
91
|
+
name: "Create a new GitHub repository with required code owner reviews",
|
|
92
|
+
input: {
|
|
93
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
94
|
+
requireCodeOwnerReviews: true
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
})
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
description: "Set required approving review count to 2.",
|
|
102
|
+
example: yaml__default.default.stringify({
|
|
103
|
+
steps: [
|
|
104
|
+
{
|
|
105
|
+
action: "github:repo:create",
|
|
106
|
+
name: "Create a new GitHub repository with required approving review count",
|
|
107
|
+
input: {
|
|
108
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
109
|
+
requiredApprovingReviewCount: 2
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
})
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
description: "Allow squash merge only.",
|
|
117
|
+
example: yaml__default.default.stringify({
|
|
118
|
+
steps: [
|
|
119
|
+
{
|
|
120
|
+
action: "github:repo:create",
|
|
121
|
+
name: "Create a new GitHub repository allowing only squash merge",
|
|
122
|
+
input: {
|
|
123
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
124
|
+
allowMergeCommit: false,
|
|
125
|
+
allowSquashMerge: true,
|
|
126
|
+
allowRebaseMerge: false
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
})
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
description: "Set squash merge commit title to pull request title.",
|
|
134
|
+
example: yaml__default.default.stringify({
|
|
135
|
+
steps: [
|
|
136
|
+
{
|
|
137
|
+
action: "github:repo:create",
|
|
138
|
+
name: "Create a new GitHub repository with squash merge commit title set to pull request title",
|
|
139
|
+
input: {
|
|
140
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
141
|
+
squashMergeCommitTitle: "pull_request_title"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
})
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
description: "Set squash merge commit message to blank.",
|
|
149
|
+
example: yaml__default.default.stringify({
|
|
150
|
+
steps: [
|
|
151
|
+
{
|
|
152
|
+
action: "github:repo:create",
|
|
153
|
+
name: "Create a new GitHub repository with squash merge commit message set to blank",
|
|
154
|
+
input: {
|
|
155
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
156
|
+
squashMergeCommitMessage: "blank"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
})
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
description: "Allow auto-merge.",
|
|
164
|
+
example: yaml__default.default.stringify({
|
|
165
|
+
steps: [
|
|
166
|
+
{
|
|
167
|
+
action: "github:repo:create",
|
|
168
|
+
name: "Create a new GitHub repository allowing auto-merge",
|
|
169
|
+
input: {
|
|
170
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
171
|
+
allowAutoMerge: true
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
})
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
description: "Set collaborators with push access.",
|
|
179
|
+
example: yaml__default.default.stringify({
|
|
180
|
+
steps: [
|
|
181
|
+
{
|
|
182
|
+
action: "github:repo:create",
|
|
183
|
+
name: "Create a new GitHub repository with collaborators having push access",
|
|
184
|
+
input: {
|
|
185
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
186
|
+
collaborators: [
|
|
187
|
+
{ username: "user1", permission: "push" },
|
|
188
|
+
{ username: "user2", permission: "push" }
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
})
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
description: "Add topics to repository.",
|
|
197
|
+
example: yaml__default.default.stringify({
|
|
198
|
+
steps: [
|
|
199
|
+
{
|
|
200
|
+
action: "github:repo:create",
|
|
201
|
+
name: "Create a new GitHub repository with topics",
|
|
202
|
+
input: {
|
|
203
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
204
|
+
topics: ["devops", "kubernetes", "ci-cd"]
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
})
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
description: "Add secret variables to repository.",
|
|
212
|
+
example: yaml__default.default.stringify({
|
|
213
|
+
steps: [
|
|
214
|
+
{
|
|
215
|
+
action: "github:repo:create",
|
|
216
|
+
name: "Create a new GitHub repository with secret variables",
|
|
217
|
+
input: {
|
|
218
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
219
|
+
secrets: [
|
|
220
|
+
{ name: "SECRET_KEY", value: "supersecretkey" },
|
|
221
|
+
{ name: "API_TOKEN", value: "tokenvalue" }
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
})
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
description: "Enable branch protection requiring status checks.",
|
|
230
|
+
example: yaml__default.default.stringify({
|
|
231
|
+
steps: [
|
|
232
|
+
{
|
|
233
|
+
action: "github:repo:create",
|
|
234
|
+
name: "Create a new GitHub repository with branch protection requiring status checks",
|
|
235
|
+
input: {
|
|
236
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
237
|
+
requiredStatusCheckContexts: ["ci/circleci: build"]
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
})
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
description: "Require branches to be up-to-date before merging.",
|
|
245
|
+
example: yaml__default.default.stringify({
|
|
246
|
+
steps: [
|
|
247
|
+
{
|
|
248
|
+
action: "github:repo:create",
|
|
249
|
+
name: "Create a new GitHub repository requiring branches to be up-to-date before merging",
|
|
250
|
+
input: {
|
|
251
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
252
|
+
requireBranchesToBeUpToDate: true
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
})
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
description: "Require conversation resolution before merging.",
|
|
260
|
+
example: yaml__default.default.stringify({
|
|
261
|
+
steps: [
|
|
262
|
+
{
|
|
263
|
+
action: "github:repo:create",
|
|
264
|
+
name: "Create a new GitHub repository requiring conversation resolution before merging",
|
|
265
|
+
input: {
|
|
266
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
267
|
+
requiredConversationResolution: true
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
})
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
description: "Delete branch on merge.",
|
|
275
|
+
example: yaml__default.default.stringify({
|
|
276
|
+
steps: [
|
|
277
|
+
{
|
|
278
|
+
action: "github:repo:create",
|
|
279
|
+
name: "Create a new GitHub repository with branch deletion on merge",
|
|
280
|
+
input: {
|
|
281
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
282
|
+
deleteBranchOnMerge: true
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
})
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
description: "Customize OIDC token.",
|
|
290
|
+
example: yaml__default.default.stringify({
|
|
291
|
+
steps: [
|
|
292
|
+
{
|
|
293
|
+
action: "github:repo:create",
|
|
294
|
+
name: "Create a new GitHub repository with OIDC token customization",
|
|
295
|
+
input: {
|
|
296
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
297
|
+
oidcCustomization: {
|
|
298
|
+
sub: "repo:owner/repo",
|
|
299
|
+
aud: "https://github.com"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
})
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
description: "Require commit signing.",
|
|
308
|
+
example: yaml__default.default.stringify({
|
|
309
|
+
steps: [
|
|
310
|
+
{
|
|
311
|
+
action: "github:repo:create",
|
|
312
|
+
name: "Create a new GitHub repository requiring commit signing",
|
|
313
|
+
input: {
|
|
314
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
315
|
+
requiredCommitSigning: true
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
})
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
description: "Set multiple properties including description, homepage, and visibility.",
|
|
323
|
+
example: yaml__default.default.stringify({
|
|
324
|
+
steps: [
|
|
325
|
+
{
|
|
326
|
+
action: "github:repo:create",
|
|
327
|
+
name: "Create a new GitHub repository with multiple properties",
|
|
328
|
+
input: {
|
|
329
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
330
|
+
description: "A repository for project XYZ",
|
|
331
|
+
homepage: "https://project-xyz.com",
|
|
332
|
+
repoVisibility: "internal"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
})
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
description: "Configure branch protection with multiple settings.",
|
|
340
|
+
example: yaml__default.default.stringify({
|
|
341
|
+
steps: [
|
|
342
|
+
{
|
|
343
|
+
action: "github:repo:create",
|
|
344
|
+
name: "Create a new GitHub repository with branch protection settings",
|
|
345
|
+
input: {
|
|
346
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
347
|
+
requiredStatusCheckContexts: [
|
|
348
|
+
"ci/circleci: build",
|
|
349
|
+
"ci/circleci: test"
|
|
350
|
+
],
|
|
351
|
+
requireBranchesToBeUpToDate: true,
|
|
352
|
+
requiredConversationResolution: true,
|
|
353
|
+
requiredApprovingReviewCount: 2
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
})
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
description: "Set repository access to private and add collaborators with admin access.",
|
|
361
|
+
example: yaml__default.default.stringify({
|
|
362
|
+
steps: [
|
|
363
|
+
{
|
|
364
|
+
action: "github:repo:create",
|
|
365
|
+
name: "Create a new private GitHub repository with collaborators",
|
|
366
|
+
input: {
|
|
367
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
368
|
+
repoVisibility: "private",
|
|
369
|
+
collaborators: [
|
|
370
|
+
{ username: "admin1", permission: "admin" },
|
|
371
|
+
{ username: "admin2", permission: "admin" }
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
})
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
description: "Enable GitHub Projects for the repository.",
|
|
380
|
+
example: yaml__default.default.stringify({
|
|
381
|
+
steps: [
|
|
382
|
+
{
|
|
383
|
+
action: "github:repo:create",
|
|
384
|
+
name: "Create a new GitHub repository with GitHub Projects enabled",
|
|
385
|
+
input: {
|
|
386
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
387
|
+
hasProjects: true
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
})
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
description: "Disable merge commits and allow only rebase and squash merges.",
|
|
395
|
+
example: yaml__default.default.stringify({
|
|
396
|
+
steps: [
|
|
397
|
+
{
|
|
398
|
+
action: "github:repo:create",
|
|
399
|
+
name: "Create a new GitHub repository allowing only rebase and squash merges",
|
|
400
|
+
input: {
|
|
401
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
402
|
+
allowMergeCommit: false,
|
|
403
|
+
allowRebaseMerge: true,
|
|
404
|
+
allowSquashMerge: true
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
})
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
description: "Set repository access to internal with no projects and issues.",
|
|
412
|
+
example: yaml__default.default.stringify({
|
|
413
|
+
steps: [
|
|
414
|
+
{
|
|
415
|
+
action: "github:repo:create",
|
|
416
|
+
name: "Create a new internal GitHub repository without projects and issues",
|
|
417
|
+
input: {
|
|
418
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
419
|
+
repoVisibility: "internal",
|
|
420
|
+
hasProjects: false,
|
|
421
|
+
hasIssues: false
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
})
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
description: "Create repository with OIDC customization for specific audience.",
|
|
429
|
+
example: yaml__default.default.stringify({
|
|
430
|
+
steps: [
|
|
431
|
+
{
|
|
432
|
+
action: "github:repo:create",
|
|
433
|
+
name: "Create a new GitHub repository with OIDC customization for specific audience",
|
|
434
|
+
input: {
|
|
435
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
436
|
+
oidcCustomization: {
|
|
437
|
+
sub: "repo:owner/repo",
|
|
438
|
+
aud: "https://specific-audience.com"
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
})
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
description: "Require all branches to be up-to-date before merging.",
|
|
447
|
+
example: yaml__default.default.stringify({
|
|
448
|
+
steps: [
|
|
449
|
+
{
|
|
450
|
+
action: "github:repo:create",
|
|
451
|
+
name: "Create a new GitHub repository requiring all branches to be up-to-date",
|
|
452
|
+
input: {
|
|
453
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
454
|
+
requireBranchesToBeUpToDate: true
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
})
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
description: "Set description and topics for the repository.",
|
|
462
|
+
example: yaml__default.default.stringify({
|
|
463
|
+
steps: [
|
|
464
|
+
{
|
|
465
|
+
action: "github:repo:create",
|
|
466
|
+
name: "Create a new GitHub repository with description and topics",
|
|
467
|
+
input: {
|
|
468
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
469
|
+
description: "Repository for project ABC",
|
|
470
|
+
topics: ["python", "machine-learning", "data-science"]
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
]
|
|
474
|
+
})
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
description: "Set repository visibility to public and enable commit signing.",
|
|
478
|
+
example: yaml__default.default.stringify({
|
|
479
|
+
steps: [
|
|
480
|
+
{
|
|
481
|
+
action: "github:repo:create",
|
|
482
|
+
name: "Create a new public GitHub repository with commit signing required",
|
|
483
|
+
input: {
|
|
484
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
485
|
+
repoVisibility: "public",
|
|
486
|
+
requiredCommitSigning: true
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
]
|
|
490
|
+
})
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
description: "Create a repository with collaborators and default branch protection.",
|
|
494
|
+
example: yaml__default.default.stringify({
|
|
495
|
+
steps: [
|
|
496
|
+
{
|
|
497
|
+
action: "github:repo:create",
|
|
498
|
+
name: "Create a new GitHub repository with collaborators and branch protection",
|
|
499
|
+
input: {
|
|
500
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
501
|
+
collaborators: [
|
|
502
|
+
{ username: "contributor1", permission: "write" },
|
|
503
|
+
{ username: "contributor2", permission: "write" }
|
|
504
|
+
],
|
|
505
|
+
requiredStatusCheckContexts: ["ci/travis: build"]
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
})
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
description: "Add multiple secret variables.",
|
|
513
|
+
example: yaml__default.default.stringify({
|
|
514
|
+
steps: [
|
|
515
|
+
{
|
|
516
|
+
action: "github:repo:create",
|
|
517
|
+
name: "Create a new GitHub repository with multiple secret variables",
|
|
518
|
+
input: {
|
|
519
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
520
|
+
secrets: [
|
|
521
|
+
{ name: "SECRET_KEY_1", value: "value1" },
|
|
522
|
+
{ name: "SECRET_KEY_2", value: "value2" }
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
]
|
|
527
|
+
})
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
description: "Require a minimum of 2 approving reviews for merging.",
|
|
531
|
+
example: yaml__default.default.stringify({
|
|
532
|
+
steps: [
|
|
533
|
+
{
|
|
534
|
+
action: "github:repo:create",
|
|
535
|
+
name: "Create a new GitHub repository with 2 required approving reviews",
|
|
536
|
+
input: {
|
|
537
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
538
|
+
requiredApprovingReviewCount: 2
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
]
|
|
542
|
+
})
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
description: "Enable branch protection with conversation resolution required.",
|
|
546
|
+
example: yaml__default.default.stringify({
|
|
547
|
+
steps: [
|
|
548
|
+
{
|
|
549
|
+
action: "github:repo:create",
|
|
550
|
+
name: "Create a new GitHub repository with branch protection and conversation resolution required",
|
|
551
|
+
input: {
|
|
552
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
553
|
+
requiredConversationResolution: true
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
]
|
|
557
|
+
})
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
description: "Set repository visibility to internal with description and homepage.",
|
|
561
|
+
example: yaml__default.default.stringify({
|
|
562
|
+
steps: [
|
|
563
|
+
{
|
|
564
|
+
action: "github:repo:create",
|
|
565
|
+
name: "Create a new internal GitHub repository with description and homepage",
|
|
566
|
+
input: {
|
|
567
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
568
|
+
repoVisibility: "internal",
|
|
569
|
+
description: "Internal repository for team collaboration",
|
|
570
|
+
homepage: "https://internal.example.com"
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
]
|
|
574
|
+
})
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
description: "Disable auto-merge.",
|
|
578
|
+
example: yaml__default.default.stringify({
|
|
579
|
+
steps: [
|
|
580
|
+
{
|
|
581
|
+
action: "github:repo:create",
|
|
582
|
+
name: "Create a new GitHub repository with auto-merge disabled",
|
|
583
|
+
input: {
|
|
584
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
585
|
+
allowAutoMerge: false
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
})
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
description: "Set repository topics and enable GitHub Projects.",
|
|
593
|
+
example: yaml__default.default.stringify({
|
|
594
|
+
steps: [
|
|
595
|
+
{
|
|
596
|
+
action: "github:repo:create",
|
|
597
|
+
name: "Create a new GitHub repository with topics and GitHub Projects enabled",
|
|
598
|
+
input: {
|
|
599
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
600
|
+
topics: ["opensource", "nodejs", "api"],
|
|
601
|
+
hasProjects: true
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
]
|
|
605
|
+
})
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
description: "Create a private repository with collaborators having admin and write access.",
|
|
609
|
+
example: yaml__default.default.stringify({
|
|
610
|
+
steps: [
|
|
611
|
+
{
|
|
612
|
+
action: "github:repo:create",
|
|
613
|
+
name: "Create a new private GitHub repository with multiple collaborators",
|
|
614
|
+
input: {
|
|
615
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
616
|
+
repoVisibility: "private",
|
|
617
|
+
collaborators: [
|
|
618
|
+
{ username: "admin1", permission: "admin" },
|
|
619
|
+
{ username: "writer1", permission: "write" }
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
]
|
|
624
|
+
})
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
description: "Disable branch deletion on merge.",
|
|
628
|
+
example: yaml__default.default.stringify({
|
|
629
|
+
steps: [
|
|
630
|
+
{
|
|
631
|
+
action: "github:repo:create",
|
|
632
|
+
name: "Create a new GitHub repository with branch deletion on merge disabled",
|
|
633
|
+
input: {
|
|
634
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
635
|
+
deleteBranchOnMerge: false
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
]
|
|
639
|
+
})
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
description: "Set repository visibility to internal and enable commit signing.",
|
|
643
|
+
example: yaml__default.default.stringify({
|
|
644
|
+
steps: [
|
|
645
|
+
{
|
|
646
|
+
action: "github:repo:create",
|
|
647
|
+
name: "Create a new internal GitHub repository with commit signing required",
|
|
648
|
+
input: {
|
|
649
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
650
|
+
repoVisibility: "internal",
|
|
651
|
+
requiredCommitSigning: true
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
]
|
|
655
|
+
})
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
description: "Create repository with description, homepage, and required status checks.",
|
|
659
|
+
example: yaml__default.default.stringify({
|
|
660
|
+
steps: [
|
|
661
|
+
{
|
|
662
|
+
action: "github:repo:create",
|
|
663
|
+
name: "Create a new GitHub repository with description, homepage, and status checks",
|
|
664
|
+
input: {
|
|
665
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
666
|
+
description: "Repository for web application project",
|
|
667
|
+
homepage: "https://webapp.example.com",
|
|
668
|
+
requiredStatusCheckContexts: [
|
|
669
|
+
"ci/travis: build",
|
|
670
|
+
"ci/travis: lint"
|
|
671
|
+
]
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
]
|
|
675
|
+
})
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
description: "Enable squash merges only and set commit message to pull request description.",
|
|
679
|
+
example: yaml__default.default.stringify({
|
|
680
|
+
steps: [
|
|
681
|
+
{
|
|
682
|
+
action: "github:repo:create",
|
|
683
|
+
name: "Create a new GitHub repository allowing only squash merges with commit message set to pull request description",
|
|
684
|
+
input: {
|
|
685
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
686
|
+
allowMergeCommit: false,
|
|
687
|
+
allowSquashMerge: true,
|
|
688
|
+
allowRebaseMerge: false,
|
|
689
|
+
squashMergeCommitMessage: "pull_request_description"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
]
|
|
693
|
+
})
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
description: "Enable rebase merges only and require commit signing.",
|
|
697
|
+
example: yaml__default.default.stringify({
|
|
698
|
+
steps: [
|
|
699
|
+
{
|
|
700
|
+
action: "github:repo:create",
|
|
701
|
+
name: "Create a new GitHub repository allowing only rebase merges with commit signing required",
|
|
702
|
+
input: {
|
|
703
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
704
|
+
allowMergeCommit: false,
|
|
705
|
+
allowRebaseMerge: true,
|
|
706
|
+
allowSquashMerge: false,
|
|
707
|
+
requiredCommitSigning: true
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
]
|
|
711
|
+
})
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
description: "Create repository with OIDC customization for multiple audiences.",
|
|
715
|
+
example: yaml__default.default.stringify({
|
|
716
|
+
steps: [
|
|
717
|
+
{
|
|
718
|
+
action: "github:repo:create",
|
|
719
|
+
name: "Create a new GitHub repository with OIDC customization for multiple audiences",
|
|
720
|
+
input: {
|
|
721
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
722
|
+
oidcCustomization: {
|
|
723
|
+
sub: "repo:owner/repo",
|
|
724
|
+
aud: ["https://audience1.com", "https://audience2.com"]
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
]
|
|
729
|
+
})
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
description: "Enable branch protection with required approving reviews and status checks.",
|
|
733
|
+
example: yaml__default.default.stringify({
|
|
734
|
+
steps: [
|
|
735
|
+
{
|
|
736
|
+
action: "github:repo:create",
|
|
737
|
+
name: "Create a new GitHub repository with branch protection requiring approving reviews and status checks",
|
|
738
|
+
input: {
|
|
739
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
740
|
+
requiredApprovingReviewCount: 2,
|
|
741
|
+
requiredStatusCheckContexts: [
|
|
742
|
+
"ci/circleci: build",
|
|
743
|
+
"ci/circleci: test"
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
})
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
description: "Create a public repository with topics and secret variables.",
|
|
752
|
+
example: yaml__default.default.stringify({
|
|
753
|
+
steps: [
|
|
754
|
+
{
|
|
755
|
+
action: "github:repo:create",
|
|
756
|
+
name: "Create a new public GitHub repository with topics and secret variables",
|
|
757
|
+
input: {
|
|
758
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
759
|
+
repoVisibility: "public",
|
|
760
|
+
topics: ["javascript", "react", "frontend"],
|
|
761
|
+
secrets: [
|
|
762
|
+
{ name: "API_KEY", value: "apikeyvalue" },
|
|
763
|
+
{ name: "DB_PASSWORD", value: "dbpasswordvalue" }
|
|
764
|
+
]
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
]
|
|
768
|
+
})
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
description: "Set repository description and disable issues and wiki.",
|
|
772
|
+
example: yaml__default.default.stringify({
|
|
773
|
+
steps: [
|
|
774
|
+
{
|
|
775
|
+
action: "github:repo:create",
|
|
776
|
+
name: "Create a new GitHub repository with description, and disable issues and wiki",
|
|
777
|
+
input: {
|
|
778
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
779
|
+
description: "Repository for backend service",
|
|
780
|
+
hasIssues: false,
|
|
781
|
+
hasWiki: false
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
]
|
|
785
|
+
})
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
description: "Enable required conversation resolution and commit signing.",
|
|
789
|
+
example: yaml__default.default.stringify({
|
|
790
|
+
steps: [
|
|
791
|
+
{
|
|
792
|
+
action: "github:repo:create",
|
|
793
|
+
name: "Create a new GitHub repository with required conversation resolution and commit signing",
|
|
794
|
+
input: {
|
|
795
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
796
|
+
requiredConversationResolution: true,
|
|
797
|
+
requiredCommitSigning: true
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
]
|
|
801
|
+
})
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
description: "Set repository visibility to private and require branches to be up-to-date.",
|
|
805
|
+
example: yaml__default.default.stringify({
|
|
806
|
+
steps: [
|
|
807
|
+
{
|
|
808
|
+
action: "github:repo:create",
|
|
809
|
+
name: "Create a new private GitHub repository requiring branches to be up-to-date",
|
|
810
|
+
input: {
|
|
811
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
812
|
+
repoVisibility: "private",
|
|
813
|
+
requireBranchesToBeUpToDate: true
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
]
|
|
817
|
+
})
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
description: "Create a repository with default settings and add multiple topics.",
|
|
821
|
+
example: yaml__default.default.stringify({
|
|
822
|
+
steps: [
|
|
823
|
+
{
|
|
824
|
+
action: "github:repo:create",
|
|
825
|
+
name: "Create a new GitHub repository with default settings and topics",
|
|
826
|
+
input: {
|
|
827
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
828
|
+
topics: ["devops", "ci-cd", "automation"]
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
]
|
|
832
|
+
})
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
description: "Disable merge commits, enable auto-merge, and require commit signing.",
|
|
836
|
+
example: yaml__default.default.stringify({
|
|
837
|
+
steps: [
|
|
838
|
+
{
|
|
839
|
+
action: "github:repo:create",
|
|
840
|
+
name: "Create a new GitHub repository disabling merge commits, enabling auto-merge, and requiring commit signing",
|
|
841
|
+
input: {
|
|
842
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
843
|
+
allowMergeCommit: false,
|
|
844
|
+
allowAutoMerge: true,
|
|
845
|
+
requiredCommitSigning: true
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
]
|
|
849
|
+
})
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
description: "Create a repository with homepage, collaborators, and topics.",
|
|
853
|
+
example: yaml__default.default.stringify({
|
|
854
|
+
steps: [
|
|
855
|
+
{
|
|
856
|
+
action: "github:repo:create",
|
|
857
|
+
name: "Create a new GitHub repository with homepage, collaborators, and topics",
|
|
858
|
+
input: {
|
|
859
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
860
|
+
homepage: "https://example.com",
|
|
861
|
+
collaborators: [
|
|
862
|
+
{ username: "user1", permission: "push" },
|
|
863
|
+
{ username: "user2", permission: "admin" }
|
|
864
|
+
],
|
|
865
|
+
topics: ["opensource", "contribution"]
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
]
|
|
869
|
+
})
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
description: "Create a repository with branch protection and description.",
|
|
873
|
+
example: yaml__default.default.stringify({
|
|
874
|
+
steps: [
|
|
875
|
+
{
|
|
876
|
+
action: "github:repo:create",
|
|
877
|
+
name: "Create a new GitHub repository with branch protection and description",
|
|
878
|
+
input: {
|
|
879
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
880
|
+
requiredStatusCheckContexts: ["ci/travis: build"],
|
|
881
|
+
requiredApprovingReviewCount: 1,
|
|
882
|
+
description: "Repository for microservice development"
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
]
|
|
886
|
+
})
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
description: "Create a repository with OIDC customization and topics.",
|
|
890
|
+
example: yaml__default.default.stringify({
|
|
891
|
+
steps: [
|
|
892
|
+
{
|
|
893
|
+
action: "github:repo:create",
|
|
894
|
+
name: "Create a new GitHub repository with OIDC customization and topics",
|
|
895
|
+
input: {
|
|
896
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
897
|
+
oidcCustomization: {
|
|
898
|
+
sub: "repo:owner/repo",
|
|
899
|
+
aud: "https://api.example.com"
|
|
900
|
+
},
|
|
901
|
+
topics: ["api", "security"]
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
]
|
|
905
|
+
})
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
description: "Enable required code owner reviews and branch deletion on merge.",
|
|
909
|
+
example: yaml__default.default.stringify({
|
|
910
|
+
steps: [
|
|
911
|
+
{
|
|
912
|
+
action: "github:repo:create",
|
|
913
|
+
name: "Create a new GitHub repository with required code owner reviews and branch deletion on merge",
|
|
914
|
+
input: {
|
|
915
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
916
|
+
requireCodeOwnerReviews: true,
|
|
917
|
+
deleteBranchOnMerge: true
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
]
|
|
921
|
+
})
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
description: "Create a repository with multiple secret variables and collaborators.",
|
|
925
|
+
example: yaml__default.default.stringify({
|
|
926
|
+
steps: [
|
|
927
|
+
{
|
|
928
|
+
action: "github:repo:create",
|
|
929
|
+
name: "Create a new GitHub repository with multiple secret variables and collaborators",
|
|
930
|
+
input: {
|
|
931
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
932
|
+
secrets: [
|
|
933
|
+
{ name: "API_SECRET", value: "secretvalue" },
|
|
934
|
+
{ name: "DB_USER", value: "dbuser" }
|
|
935
|
+
],
|
|
936
|
+
collaborators: [
|
|
937
|
+
{ username: "dev1", permission: "write" },
|
|
938
|
+
{ username: "dev2", permission: "push" }
|
|
939
|
+
]
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
]
|
|
943
|
+
})
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
description: "Enable branch protection requiring status checks and conversation resolution.",
|
|
947
|
+
example: yaml__default.default.stringify({
|
|
948
|
+
steps: [
|
|
949
|
+
{
|
|
950
|
+
action: "github:repo:create",
|
|
951
|
+
name: "Create a new GitHub repository with branch protection requiring status checks and conversation resolution",
|
|
952
|
+
input: {
|
|
953
|
+
repoUrl: "github.com?repo=repo&owner=owner",
|
|
954
|
+
requiredStatusCheckContexts: ["ci/build"],
|
|
955
|
+
requiredConversationResolution: true
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
]
|
|
959
|
+
})
|
|
960
|
+
}
|
|
961
|
+
];
|
|
962
|
+
|
|
963
|
+
exports.examples = examples;
|
|
964
|
+
//# sourceMappingURL=githubRepoCreate.examples.cjs.js.map
|