cdklabs-projen-project-types 0.1.4 → 0.1.5
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/.gitattributes +1 -0
- package/.jsii +396 -53
- package/.projenrc.ts +23 -0
- package/API.md +534 -4
- package/lib/auto-merge.d.ts +47 -0
- package/lib/auto-merge.js +75 -0
- package/lib/cdk.d.ts +20 -10
- package/lib/cdk.js +20 -3
- package/lib/cdklabs.js +2 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lib/merge-queue.d.ts +29 -0
- package/lib/merge-queue.js +31 -0
- package/lib/private.js +1 -1
- package/package.json +4 -3
package/.gitattributes
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
/.gitattributes linguist-generated
|
|
6
6
|
/.github/pull_request_template.md linguist-generated
|
|
7
7
|
/.github/workflows/auto-approve.yml linguist-generated
|
|
8
|
+
/.github/workflows/auto-merge.yml linguist-generated
|
|
8
9
|
/.github/workflows/build.yml linguist-generated
|
|
9
10
|
/.github/workflows/pull-request-lint.yml linguist-generated
|
|
10
11
|
/.github/workflows/release.yml linguist-generated
|
package/.jsii
CHANGED
|
@@ -83,75 +83,221 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"types": {
|
|
86
|
-
"cdklabs-projen-project-types.
|
|
86
|
+
"cdklabs-projen-project-types.AutoMerge": {
|
|
87
87
|
"assembly": "cdklabs-projen-project-types",
|
|
88
|
-
"base": "projen.
|
|
88
|
+
"base": "projen.Component",
|
|
89
89
|
"docs": {
|
|
90
|
-
"custom": {
|
|
91
|
-
"pjid": "cdk-construct-lib"
|
|
92
|
-
},
|
|
93
90
|
"stability": "stable",
|
|
94
|
-
"summary": "
|
|
91
|
+
"summary": "Merge pull requests using a merge queue."
|
|
95
92
|
},
|
|
96
|
-
"fqn": "cdklabs-projen-project-types.
|
|
93
|
+
"fqn": "cdklabs-projen-project-types.AutoMerge",
|
|
97
94
|
"initializer": {
|
|
98
95
|
"docs": {
|
|
99
96
|
"stability": "stable"
|
|
100
97
|
},
|
|
101
98
|
"locationInModule": {
|
|
102
|
-
"filename": "src/
|
|
103
|
-
"line":
|
|
99
|
+
"filename": "src/auto-merge.ts",
|
|
100
|
+
"line": 53
|
|
104
101
|
},
|
|
105
102
|
"parameters": [
|
|
103
|
+
{
|
|
104
|
+
"name": "github",
|
|
105
|
+
"type": {
|
|
106
|
+
"fqn": "projen.github.GitHub"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
106
109
|
{
|
|
107
110
|
"name": "options",
|
|
111
|
+
"optional": true,
|
|
108
112
|
"type": {
|
|
109
|
-
"fqn": "cdklabs-projen-project-types.
|
|
113
|
+
"fqn": "cdklabs-projen-project-types.AutoMergeOptions"
|
|
110
114
|
}
|
|
111
115
|
}
|
|
112
116
|
]
|
|
113
117
|
},
|
|
114
118
|
"kind": "class",
|
|
115
119
|
"locationInModule": {
|
|
116
|
-
"filename": "src/
|
|
117
|
-
"line":
|
|
120
|
+
"filename": "src/auto-merge.ts",
|
|
121
|
+
"line": 52
|
|
118
122
|
},
|
|
119
|
-
"name": "
|
|
123
|
+
"name": "AutoMerge",
|
|
124
|
+
"symbolId": "src/auto-merge:AutoMerge"
|
|
125
|
+
},
|
|
126
|
+
"cdklabs-projen-project-types.AutoMergeOptions": {
|
|
127
|
+
"assembly": "cdklabs-projen-project-types",
|
|
128
|
+
"datatype": true,
|
|
129
|
+
"docs": {
|
|
130
|
+
"stability": "stable",
|
|
131
|
+
"summary": "Options for 'AutoMerge'."
|
|
132
|
+
},
|
|
133
|
+
"fqn": "cdklabs-projen-project-types.AutoMergeOptions",
|
|
134
|
+
"kind": "interface",
|
|
135
|
+
"locationInModule": {
|
|
136
|
+
"filename": "src/auto-merge.ts",
|
|
137
|
+
"line": 12
|
|
138
|
+
},
|
|
139
|
+
"name": "AutoMergeOptions",
|
|
120
140
|
"properties": [
|
|
121
141
|
{
|
|
142
|
+
"abstract": true,
|
|
122
143
|
"docs": {
|
|
123
|
-
"
|
|
144
|
+
"default": "- pull requests from all users are eligible for auto-merge",
|
|
145
|
+
"stability": "stable",
|
|
146
|
+
"summary": "Only pull requests authored by these Github usernames will have auto-merge enabled."
|
|
124
147
|
},
|
|
125
148
|
"immutable": true,
|
|
126
149
|
"locationInModule": {
|
|
127
|
-
"filename": "src/
|
|
128
|
-
"line":
|
|
150
|
+
"filename": "src/auto-merge.ts",
|
|
151
|
+
"line": 17
|
|
129
152
|
},
|
|
130
|
-
"name": "
|
|
153
|
+
"name": "allowedUsernames",
|
|
154
|
+
"optional": true,
|
|
131
155
|
"type": {
|
|
132
|
-
"
|
|
156
|
+
"collection": {
|
|
157
|
+
"elementtype": {
|
|
158
|
+
"primitive": "string"
|
|
159
|
+
},
|
|
160
|
+
"kind": "array"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"abstract": true,
|
|
166
|
+
"docs": {
|
|
167
|
+
"default": "- all pull requests are eligible for auto-merge",
|
|
168
|
+
"stability": "stable",
|
|
169
|
+
"summary": "Only pull requests with one of this labels will have auto-merge enabled."
|
|
170
|
+
},
|
|
171
|
+
"immutable": true,
|
|
172
|
+
"locationInModule": {
|
|
173
|
+
"filename": "src/auto-merge.ts",
|
|
174
|
+
"line": 23
|
|
175
|
+
},
|
|
176
|
+
"name": "labels",
|
|
177
|
+
"optional": true,
|
|
178
|
+
"type": {
|
|
179
|
+
"collection": {
|
|
180
|
+
"elementtype": {
|
|
181
|
+
"primitive": "string"
|
|
182
|
+
},
|
|
183
|
+
"kind": "array"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"abstract": true,
|
|
189
|
+
"docs": {
|
|
190
|
+
"default": "MergeMethod.SQUASH",
|
|
191
|
+
"remarks": "Any branch protection rules must allow this merge method.",
|
|
192
|
+
"stability": "stable",
|
|
193
|
+
"summary": "The method used to auto-merge the PR."
|
|
194
|
+
},
|
|
195
|
+
"immutable": true,
|
|
196
|
+
"locationInModule": {
|
|
197
|
+
"filename": "src/auto-merge.ts",
|
|
198
|
+
"line": 40
|
|
199
|
+
},
|
|
200
|
+
"name": "mergeMethod",
|
|
201
|
+
"optional": true,
|
|
202
|
+
"type": {
|
|
203
|
+
"fqn": "cdklabs-projen-project-types.MergeMethod"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"abstract": true,
|
|
208
|
+
"docs": {
|
|
209
|
+
"default": "[\"ubuntu-latest\"]",
|
|
210
|
+
"stability": "stable",
|
|
211
|
+
"summary": "Github Runner selection labels."
|
|
212
|
+
},
|
|
213
|
+
"immutable": true,
|
|
214
|
+
"locationInModule": {
|
|
215
|
+
"filename": "src/auto-merge.ts",
|
|
216
|
+
"line": 46
|
|
217
|
+
},
|
|
218
|
+
"name": "runsOn",
|
|
219
|
+
"optional": true,
|
|
220
|
+
"type": {
|
|
221
|
+
"collection": {
|
|
222
|
+
"elementtype": {
|
|
223
|
+
"primitive": "string"
|
|
224
|
+
},
|
|
225
|
+
"kind": "array"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"abstract": true,
|
|
231
|
+
"docs": {
|
|
232
|
+
"default": "\"GITHUB_TOKEN\"",
|
|
233
|
+
"remarks": "This token is used to enable auto-merge on pull requests.",
|
|
234
|
+
"stability": "stable",
|
|
235
|
+
"summary": "A GitHub secret name which contains a GitHub Access Token with write permissions for the `pull_request` scope."
|
|
236
|
+
},
|
|
237
|
+
"immutable": true,
|
|
238
|
+
"locationInModule": {
|
|
239
|
+
"filename": "src/auto-merge.ts",
|
|
240
|
+
"line": 33
|
|
241
|
+
},
|
|
242
|
+
"name": "secret",
|
|
243
|
+
"optional": true,
|
|
244
|
+
"type": {
|
|
245
|
+
"primitive": "string"
|
|
133
246
|
}
|
|
134
247
|
}
|
|
135
248
|
],
|
|
136
|
-
"symbolId": "src/
|
|
249
|
+
"symbolId": "src/auto-merge:AutoMergeOptions"
|
|
137
250
|
},
|
|
138
|
-
"cdklabs-projen-project-types.
|
|
251
|
+
"cdklabs-projen-project-types.CdkCommonOptions": {
|
|
139
252
|
"assembly": "cdklabs-projen-project-types",
|
|
140
253
|
"datatype": true,
|
|
141
254
|
"docs": {
|
|
142
255
|
"stability": "stable"
|
|
143
256
|
},
|
|
144
|
-
"fqn": "cdklabs-projen-project-types.
|
|
145
|
-
"interfaces": [
|
|
146
|
-
"projen.awscdk.AwsCdkConstructLibraryOptions"
|
|
147
|
-
],
|
|
257
|
+
"fqn": "cdklabs-projen-project-types.CdkCommonOptions",
|
|
148
258
|
"kind": "interface",
|
|
149
259
|
"locationInModule": {
|
|
150
260
|
"filename": "src/cdk.ts",
|
|
151
|
-
"line":
|
|
261
|
+
"line": 9
|
|
152
262
|
},
|
|
153
|
-
"name": "
|
|
263
|
+
"name": "CdkCommonOptions",
|
|
154
264
|
"properties": [
|
|
265
|
+
{
|
|
266
|
+
"abstract": true,
|
|
267
|
+
"docs": {
|
|
268
|
+
"default": "- true for private projects, false otherwise",
|
|
269
|
+
"stability": "stable",
|
|
270
|
+
"summary": "Whether to enable the auto merge workflow for PRs This will enable the auto merge workflow as well as the merge queue."
|
|
271
|
+
},
|
|
272
|
+
"immutable": true,
|
|
273
|
+
"locationInModule": {
|
|
274
|
+
"filename": "src/cdk.ts",
|
|
275
|
+
"line": 26
|
|
276
|
+
},
|
|
277
|
+
"name": "enablePRAutoMerge",
|
|
278
|
+
"optional": true,
|
|
279
|
+
"type": {
|
|
280
|
+
"primitive": "boolean"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"abstract": true,
|
|
285
|
+
"docs": {
|
|
286
|
+
"default": "default options",
|
|
287
|
+
"stability": "stable",
|
|
288
|
+
"summary": "Options for the GitHub auto merge workflow (the workflow that turns on auto merge on all PRs)."
|
|
289
|
+
},
|
|
290
|
+
"immutable": true,
|
|
291
|
+
"locationInModule": {
|
|
292
|
+
"filename": "src/cdk.ts",
|
|
293
|
+
"line": 34
|
|
294
|
+
},
|
|
295
|
+
"name": "ghAutoMergeOptions",
|
|
296
|
+
"optional": true,
|
|
297
|
+
"type": {
|
|
298
|
+
"fqn": "cdklabs-projen-project-types.AutoMergeOptions"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
155
301
|
{
|
|
156
302
|
"abstract": true,
|
|
157
303
|
"docs": {
|
|
@@ -163,7 +309,7 @@
|
|
|
163
309
|
"immutable": true,
|
|
164
310
|
"locationInModule": {
|
|
165
311
|
"filename": "src/cdk.ts",
|
|
166
|
-
"line":
|
|
312
|
+
"line": 17
|
|
167
313
|
},
|
|
168
314
|
"name": "private",
|
|
169
315
|
"optional": true,
|
|
@@ -172,32 +318,32 @@
|
|
|
172
318
|
}
|
|
173
319
|
}
|
|
174
320
|
],
|
|
175
|
-
"symbolId": "src/cdk:
|
|
321
|
+
"symbolId": "src/cdk:CdkCommonOptions"
|
|
176
322
|
},
|
|
177
|
-
"cdklabs-projen-project-types.
|
|
323
|
+
"cdklabs-projen-project-types.CdkConstructLibrary": {
|
|
178
324
|
"assembly": "cdklabs-projen-project-types",
|
|
179
|
-
"base": "projen.
|
|
325
|
+
"base": "projen.awscdk.AwsCdkConstructLibrary",
|
|
180
326
|
"docs": {
|
|
181
327
|
"custom": {
|
|
182
|
-
"pjid": "cdk-
|
|
328
|
+
"pjid": "cdk-construct-lib"
|
|
183
329
|
},
|
|
184
330
|
"stability": "stable",
|
|
185
|
-
"summary": "Create a Cdk
|
|
331
|
+
"summary": "Create a Cdk Construct Library Project."
|
|
186
332
|
},
|
|
187
|
-
"fqn": "cdklabs-projen-project-types.
|
|
333
|
+
"fqn": "cdklabs-projen-project-types.CdkConstructLibrary",
|
|
188
334
|
"initializer": {
|
|
189
335
|
"docs": {
|
|
190
336
|
"stability": "stable"
|
|
191
337
|
},
|
|
192
338
|
"locationInModule": {
|
|
193
339
|
"filename": "src/cdk.ts",
|
|
194
|
-
"line":
|
|
340
|
+
"line": 64
|
|
195
341
|
},
|
|
196
342
|
"parameters": [
|
|
197
343
|
{
|
|
198
344
|
"name": "options",
|
|
199
345
|
"type": {
|
|
200
|
-
"fqn": "cdklabs-projen-project-types.
|
|
346
|
+
"fqn": "cdklabs-projen-project-types.CdkConstructLibraryOptions"
|
|
201
347
|
}
|
|
202
348
|
}
|
|
203
349
|
]
|
|
@@ -205,9 +351,9 @@
|
|
|
205
351
|
"kind": "class",
|
|
206
352
|
"locationInModule": {
|
|
207
353
|
"filename": "src/cdk.ts",
|
|
208
|
-
"line":
|
|
354
|
+
"line": 44
|
|
209
355
|
},
|
|
210
|
-
"name": "
|
|
356
|
+
"name": "CdkConstructLibrary",
|
|
211
357
|
"properties": [
|
|
212
358
|
{
|
|
213
359
|
"docs": {
|
|
@@ -216,7 +362,7 @@
|
|
|
216
362
|
"immutable": true,
|
|
217
363
|
"locationInModule": {
|
|
218
364
|
"filename": "src/cdk.ts",
|
|
219
|
-
"line":
|
|
365
|
+
"line": 62
|
|
220
366
|
},
|
|
221
367
|
"name": "private",
|
|
222
368
|
"type": {
|
|
@@ -224,45 +370,96 @@
|
|
|
224
370
|
}
|
|
225
371
|
}
|
|
226
372
|
],
|
|
227
|
-
"symbolId": "src/cdk:
|
|
373
|
+
"symbolId": "src/cdk:CdkConstructLibrary"
|
|
228
374
|
},
|
|
229
|
-
"cdklabs-projen-project-types.
|
|
375
|
+
"cdklabs-projen-project-types.CdkConstructLibraryOptions": {
|
|
230
376
|
"assembly": "cdklabs-projen-project-types",
|
|
231
377
|
"datatype": true,
|
|
232
378
|
"docs": {
|
|
233
379
|
"stability": "stable"
|
|
234
380
|
},
|
|
235
|
-
"fqn": "cdklabs-projen-project-types.
|
|
381
|
+
"fqn": "cdklabs-projen-project-types.CdkConstructLibraryOptions",
|
|
236
382
|
"interfaces": [
|
|
237
|
-
"projen.
|
|
383
|
+
"projen.awscdk.AwsCdkConstructLibraryOptions",
|
|
384
|
+
"cdklabs-projen-project-types.CdkCommonOptions"
|
|
238
385
|
],
|
|
239
386
|
"kind": "interface",
|
|
240
387
|
"locationInModule": {
|
|
241
388
|
"filename": "src/cdk.ts",
|
|
242
|
-
"line":
|
|
389
|
+
"line": 37
|
|
243
390
|
},
|
|
244
|
-
"name": "
|
|
391
|
+
"name": "CdkConstructLibraryOptions",
|
|
392
|
+
"symbolId": "src/cdk:CdkConstructLibraryOptions"
|
|
393
|
+
},
|
|
394
|
+
"cdklabs-projen-project-types.CdkTypeScriptProject": {
|
|
395
|
+
"assembly": "cdklabs-projen-project-types",
|
|
396
|
+
"base": "projen.typescript.TypeScriptProject",
|
|
397
|
+
"docs": {
|
|
398
|
+
"custom": {
|
|
399
|
+
"pjid": "cdk-ts-proj"
|
|
400
|
+
},
|
|
401
|
+
"stability": "stable",
|
|
402
|
+
"summary": "Create a Cdk TypeScript Project."
|
|
403
|
+
},
|
|
404
|
+
"fqn": "cdklabs-projen-project-types.CdkTypeScriptProject",
|
|
405
|
+
"initializer": {
|
|
406
|
+
"docs": {
|
|
407
|
+
"stability": "stable"
|
|
408
|
+
},
|
|
409
|
+
"locationInModule": {
|
|
410
|
+
"filename": "src/cdk.ts",
|
|
411
|
+
"line": 107
|
|
412
|
+
},
|
|
413
|
+
"parameters": [
|
|
414
|
+
{
|
|
415
|
+
"name": "options",
|
|
416
|
+
"type": {
|
|
417
|
+
"fqn": "cdklabs-projen-project-types.CdkTypeScriptProjectOptions"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
"kind": "class",
|
|
423
|
+
"locationInModule": {
|
|
424
|
+
"filename": "src/cdk.ts",
|
|
425
|
+
"line": 104
|
|
426
|
+
},
|
|
427
|
+
"name": "CdkTypeScriptProject",
|
|
245
428
|
"properties": [
|
|
246
429
|
{
|
|
247
|
-
"abstract": true,
|
|
248
430
|
"docs": {
|
|
249
|
-
"
|
|
250
|
-
"remarks": "Setting this variable\nto true means that your project is created with sane defaults\nfor private repositories.",
|
|
251
|
-
"stability": "stable",
|
|
252
|
-
"summary": "Whether or not this module is private."
|
|
431
|
+
"stability": "stable"
|
|
253
432
|
},
|
|
254
433
|
"immutable": true,
|
|
255
434
|
"locationInModule": {
|
|
256
435
|
"filename": "src/cdk.ts",
|
|
257
|
-
"line":
|
|
436
|
+
"line": 105
|
|
258
437
|
},
|
|
259
438
|
"name": "private",
|
|
260
|
-
"optional": true,
|
|
261
439
|
"type": {
|
|
262
440
|
"primitive": "boolean"
|
|
263
441
|
}
|
|
264
442
|
}
|
|
265
443
|
],
|
|
444
|
+
"symbolId": "src/cdk:CdkTypeScriptProject"
|
|
445
|
+
},
|
|
446
|
+
"cdklabs-projen-project-types.CdkTypeScriptProjectOptions": {
|
|
447
|
+
"assembly": "cdklabs-projen-project-types",
|
|
448
|
+
"datatype": true,
|
|
449
|
+
"docs": {
|
|
450
|
+
"stability": "stable"
|
|
451
|
+
},
|
|
452
|
+
"fqn": "cdklabs-projen-project-types.CdkTypeScriptProjectOptions",
|
|
453
|
+
"interfaces": [
|
|
454
|
+
"projen.typescript.TypeScriptProjectOptions",
|
|
455
|
+
"cdklabs-projen-project-types.CdkCommonOptions"
|
|
456
|
+
],
|
|
457
|
+
"kind": "interface",
|
|
458
|
+
"locationInModule": {
|
|
459
|
+
"filename": "src/cdk.ts",
|
|
460
|
+
"line": 97
|
|
461
|
+
},
|
|
462
|
+
"name": "CdkTypeScriptProjectOptions",
|
|
266
463
|
"symbolId": "src/cdk:CdkTypeScriptProjectOptions"
|
|
267
464
|
},
|
|
268
465
|
"cdklabs-projen-project-types.CdklabsConstructLibrary": {
|
|
@@ -457,8 +654,154 @@
|
|
|
457
654
|
],
|
|
458
655
|
"name": "JsiiLanguage",
|
|
459
656
|
"symbolId": "src/cdklabs:JsiiLanguage"
|
|
657
|
+
},
|
|
658
|
+
"cdklabs-projen-project-types.MergeMethod": {
|
|
659
|
+
"assembly": "cdklabs-projen-project-types",
|
|
660
|
+
"docs": {
|
|
661
|
+
"stability": "stable"
|
|
662
|
+
},
|
|
663
|
+
"fqn": "cdklabs-projen-project-types.MergeMethod",
|
|
664
|
+
"kind": "enum",
|
|
665
|
+
"locationInModule": {
|
|
666
|
+
"filename": "src/auto-merge.ts",
|
|
667
|
+
"line": 3
|
|
668
|
+
},
|
|
669
|
+
"members": [
|
|
670
|
+
{
|
|
671
|
+
"docs": {
|
|
672
|
+
"stability": "stable"
|
|
673
|
+
},
|
|
674
|
+
"name": "SQUASH"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"docs": {
|
|
678
|
+
"stability": "stable"
|
|
679
|
+
},
|
|
680
|
+
"name": "MERGE"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"docs": {
|
|
684
|
+
"stability": "stable"
|
|
685
|
+
},
|
|
686
|
+
"name": "REBASE"
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"name": "MergeMethod",
|
|
690
|
+
"symbolId": "src/auto-merge:MergeMethod"
|
|
691
|
+
},
|
|
692
|
+
"cdklabs-projen-project-types.MergeQueue": {
|
|
693
|
+
"assembly": "cdklabs-projen-project-types",
|
|
694
|
+
"base": "projen.Component",
|
|
695
|
+
"docs": {
|
|
696
|
+
"stability": "stable",
|
|
697
|
+
"summary": "Merge pull requests using a merge queue."
|
|
698
|
+
},
|
|
699
|
+
"fqn": "cdklabs-projen-project-types.MergeQueue",
|
|
700
|
+
"initializer": {
|
|
701
|
+
"docs": {
|
|
702
|
+
"stability": "stable"
|
|
703
|
+
},
|
|
704
|
+
"locationInModule": {
|
|
705
|
+
"filename": "src/merge-queue.ts",
|
|
706
|
+
"line": 32
|
|
707
|
+
},
|
|
708
|
+
"parameters": [
|
|
709
|
+
{
|
|
710
|
+
"name": "project",
|
|
711
|
+
"type": {
|
|
712
|
+
"fqn": "projen.javascript.NodeProject"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "options",
|
|
717
|
+
"optional": true,
|
|
718
|
+
"type": {
|
|
719
|
+
"fqn": "cdklabs-projen-project-types.MergeQueueOptions"
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
"kind": "class",
|
|
725
|
+
"locationInModule": {
|
|
726
|
+
"filename": "src/merge-queue.ts",
|
|
727
|
+
"line": 31
|
|
728
|
+
},
|
|
729
|
+
"name": "MergeQueue",
|
|
730
|
+
"symbolId": "src/merge-queue:MergeQueue"
|
|
731
|
+
},
|
|
732
|
+
"cdklabs-projen-project-types.MergeQueueOptions": {
|
|
733
|
+
"assembly": "cdklabs-projen-project-types",
|
|
734
|
+
"datatype": true,
|
|
735
|
+
"docs": {
|
|
736
|
+
"stability": "stable",
|
|
737
|
+
"summary": "Options for 'MergeQueue'."
|
|
738
|
+
},
|
|
739
|
+
"fqn": "cdklabs-projen-project-types.MergeQueueOptions",
|
|
740
|
+
"kind": "interface",
|
|
741
|
+
"locationInModule": {
|
|
742
|
+
"filename": "src/merge-queue.ts",
|
|
743
|
+
"line": 7
|
|
744
|
+
},
|
|
745
|
+
"name": "MergeQueueOptions",
|
|
746
|
+
"properties": [
|
|
747
|
+
{
|
|
748
|
+
"abstract": true,
|
|
749
|
+
"docs": {
|
|
750
|
+
"default": "true",
|
|
751
|
+
"stability": "stable",
|
|
752
|
+
"summary": "Should pull requests be merged automatically once they pass required checks."
|
|
753
|
+
},
|
|
754
|
+
"immutable": true,
|
|
755
|
+
"locationInModule": {
|
|
756
|
+
"filename": "src/merge-queue.ts",
|
|
757
|
+
"line": 12
|
|
758
|
+
},
|
|
759
|
+
"name": "autoMerge",
|
|
760
|
+
"optional": true,
|
|
761
|
+
"type": {
|
|
762
|
+
"primitive": "boolean"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"abstract": true,
|
|
767
|
+
"docs": {
|
|
768
|
+
"default": "- see AutoMergeOptions",
|
|
769
|
+
"stability": "stable",
|
|
770
|
+
"summary": "Configure auto merge pull requests."
|
|
771
|
+
},
|
|
772
|
+
"immutable": true,
|
|
773
|
+
"locationInModule": {
|
|
774
|
+
"filename": "src/merge-queue.ts",
|
|
775
|
+
"line": 18
|
|
776
|
+
},
|
|
777
|
+
"name": "autoMergeOptions",
|
|
778
|
+
"optional": true,
|
|
779
|
+
"type": {
|
|
780
|
+
"fqn": "cdklabs-projen-project-types.AutoMergeOptions"
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"abstract": true,
|
|
785
|
+
"docs": {
|
|
786
|
+
"default": "main",
|
|
787
|
+
"stability": "stable",
|
|
788
|
+
"summary": "The branch to merge to."
|
|
789
|
+
},
|
|
790
|
+
"immutable": true,
|
|
791
|
+
"locationInModule": {
|
|
792
|
+
"filename": "src/merge-queue.ts",
|
|
793
|
+
"line": 25
|
|
794
|
+
},
|
|
795
|
+
"name": "mergeBranch",
|
|
796
|
+
"optional": true,
|
|
797
|
+
"type": {
|
|
798
|
+
"primitive": "string"
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
],
|
|
802
|
+
"symbolId": "src/merge-queue:MergeQueueOptions"
|
|
460
803
|
}
|
|
461
804
|
},
|
|
462
|
-
"version": "0.1.
|
|
463
|
-
"fingerprint": "
|
|
805
|
+
"version": "0.1.5",
|
|
806
|
+
"fingerprint": "whHkRRsQGRv1ZhtOZtDTTnX/7c8GfFoXEIZig/RwuOM="
|
|
464
807
|
}
|
package/.projenrc.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { cdk } from 'projen';
|
|
2
|
+
import { MergeQueue } from './src';
|
|
3
|
+
|
|
4
|
+
const project = new cdk.JsiiProject({
|
|
5
|
+
projenrcTs: true,
|
|
6
|
+
author: 'AWS',
|
|
7
|
+
authorAddress: 'aws-cdk-dev@amazon.com',
|
|
8
|
+
defaultReleaseBranch: 'main',
|
|
9
|
+
name: 'cdklabs-projen-project-types',
|
|
10
|
+
repositoryUrl: 'https://github.com/cdklabs/cdklabs-projen-project-types.git',
|
|
11
|
+
deps: ['projen'],
|
|
12
|
+
bundledDeps: ['yaml'],
|
|
13
|
+
peerDeps: ['projen'],
|
|
14
|
+
autoApproveUpgrades: true,
|
|
15
|
+
autoApproveOptions: { allowedUsernames: ['cdklabs-automation'], secret: 'GITHUB_TOKEN' },
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
new MergeQueue(project, {
|
|
19
|
+
autoMergeOptions: {
|
|
20
|
+
secret: 'PROJEN_GITHUB_TOKEN',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
project.synth();
|