-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy pathindex.ts
3094 lines (3089 loc) · 81.5 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { getManagers } from '../../modules/manager';
import { getCustomManagers } from '../../modules/manager/custom';
import { getPlatformList } from '../../modules/platform';
import { getVersioningList } from '../../modules/versioning';
import { supportedDatasources } from '../presets/internal/merge-confidence';
import type { RenovateOptions } from '../types';
const options: RenovateOptions[] = [
{
name: 'mode',
description: 'Mode of operation.',
type: 'string',
default: 'full',
allowedValues: ['full', 'silent'],
},
{
name: 'allowedHeaders',
description:
'List of allowed patterns for header names in repository hostRules config.',
type: 'array',
default: ['X-*'],
subType: 'string',
globalOnly: true,
patternMatch: true,
},
{
name: 'autodiscoverRepoOrder',
description:
'The order method for autodiscover server side repository search.',
type: 'string',
default: null,
globalOnly: true,
allowedValues: ['asc', 'desc'],
supportedPlatforms: ['gitea'],
},
{
name: 'autodiscoverRepoSort',
description:
'The sort method for autodiscover server side repository search.',
type: 'string',
default: null,
globalOnly: true,
allowedValues: ['alpha', 'created', 'updated', 'size', 'id'],
supportedPlatforms: ['gitea'],
},
{
name: 'allowedEnv',
description:
'List of allowed patterns for environment variable names in repository env config.',
type: 'array',
default: [],
subType: 'string',
globalOnly: true,
patternMatch: true,
mergeable: true,
},
{
name: 'detectGlobalManagerConfig',
description:
'If `true`, Renovate tries to detect global manager configuration from the file system.',
type: 'boolean',
default: false,
globalOnly: true,
},
{
name: 'detectHostRulesFromEnv',
description:
'If `true`, Renovate tries to detect host rules from environment variables.',
type: 'boolean',
default: false,
globalOnly: true,
},
{
name: 'mergeConfidenceEndpoint',
description:
'If set, Renovate will query this API for Merge Confidence data.',
stage: 'global',
type: 'string',
default: 'https://developer.mend.io/',
advancedUse: true,
globalOnly: true,
},
{
name: 'mergeConfidenceDatasources',
description:
'If set, Renovate will query the merge-confidence JSON API only for datasources that are part of this list.',
stage: 'global',
allowedValues: supportedDatasources,
default: supportedDatasources,
type: 'array',
subType: 'string',
globalOnly: true,
},
{
name: 'useCloudMetadataServices',
description:
'If `false`, Renovate does not try to access cloud metadata services.',
type: 'boolean',
default: true,
globalOnly: true,
},
{
name: 'userAgent',
description:
'If set to any string, Renovate will use this as the `user-agent` it sends with HTTP requests.',
type: 'string',
default: null,
globalOnly: true,
},
{
name: 'allowCommandTemplating',
description:
'Set this to `false` to disable template compilation for post-upgrade commands.',
type: 'boolean',
default: true,
globalOnly: true,
},
{
name: 'allowedCommands',
description:
'A list of regular expressions that decide which commands are allowed in post-upgrade tasks.',
type: 'array',
subType: 'string',
default: [],
globalOnly: true,
},
{
name: 'postUpgradeTasks',
description:
'Post-upgrade tasks that are executed before a commit is made by Renovate.',
type: 'object',
default: {
commands: [],
fileFilters: [],
executionMode: 'update',
},
},
{
name: 'commands',
description:
'A list of post-upgrade commands that are executed before a commit is made by Renovate.',
type: 'array',
subType: 'string',
parents: ['postUpgradeTasks'],
default: [],
cli: false,
},
{
name: 'fileFilters',
description:
'Files that match the glob pattern will be committed after running a post-upgrade task.',
type: 'array',
subType: 'string',
parents: ['postUpgradeTasks'],
default: ['**/*'],
cli: false,
},
{
name: 'format',
description: 'Format of the custom datasource.',
type: 'string',
parents: ['customDatasources'],
default: 'json',
allowedValues: ['json', 'plain'],
cli: false,
env: false,
},
{
name: 'executionMode',
description:
'Controls when the post upgrade tasks run: on every update, or once per upgrade branch.',
type: 'string',
parents: ['postUpgradeTasks'],
allowedValues: ['update', 'branch'],
default: 'update',
cli: false,
},
{
name: 'onboardingBranch',
description:
'Change this value to override the default onboarding branch name.',
type: 'string',
default: 'renovate/configure',
globalOnly: true,
inheritConfigSupport: true,
cli: false,
},
{
name: 'onboardingCommitMessage',
description:
'Change this value to override the default onboarding commit message.',
type: 'string',
default: null,
globalOnly: true,
inheritConfigSupport: true,
cli: false,
},
{
name: 'onboardingConfigFileName',
description:
'Change this value to override the default onboarding config file name.',
type: 'string',
default: 'renovate.json',
globalOnly: true,
inheritConfigSupport: true,
cli: false,
},
{
name: 'onboardingNoDeps',
description: 'Onboard the repository even if no dependencies are found.',
type: 'string',
default: 'auto',
allowedValues: ['auto', 'enabled', 'disabled'],
globalOnly: true,
inheritConfigSupport: true,
},
{
name: 'onboardingPrTitle',
description:
'Change this value to override the default onboarding PR title.',
type: 'string',
default: 'Configure Renovate',
globalOnly: true,
inheritConfigSupport: true,
cli: false,
},
{
name: 'configMigration',
description: 'Enable this to get config migration PRs when needed.',
stage: 'repository',
type: 'boolean',
default: false,
experimental: true,
experimentalDescription:
'Config migration PRs are still being improved, in particular to reduce the amount of reordering and whitespace changes.',
experimentalIssues: [16359],
},
{
name: 'productLinks',
description: 'Links which are used in PRs, issues and comments.',
type: 'object',
globalOnly: true,
mergeable: true,
default: {
documentation: 'https://docs.renovatebot.com/',
help: 'https://github.com/renovatebot/renovate/discussions',
homepage: 'https://github.com/renovatebot/renovate',
},
additionalProperties: {
type: 'string',
format: 'uri',
},
},
{
name: 'secrets',
description: 'Object which holds secret name/value pairs.',
type: 'object',
globalOnly: true,
mergeable: true,
default: {},
additionalProperties: {
type: 'string',
},
},
{
name: 'statusCheckNames',
description: 'Custom strings to use as status check names.',
type: 'object',
mergeable: true,
advancedUse: true,
default: {
artifactError: 'renovate/artifacts',
configValidation: 'renovate/config-validation',
mergeConfidence: 'renovate/merge-confidence',
minimumReleaseAge: 'renovate/stability-days',
},
},
{
name: 'extends',
description: 'Configuration presets to use or extend.',
stage: 'package',
type: 'array',
subType: 'string',
allowString: true,
cli: false,
},
{
name: 'ignorePresets',
description:
'A list of presets to ignore, including any that are nested inside an `extends` array.',
stage: 'package',
type: 'array',
subType: 'string',
allowString: true,
cli: false,
},
{
name: 'migratePresets',
description:
'Define presets here which have been removed or renamed and should be migrated automatically.',
type: 'object',
globalOnly: true,
default: {},
additionalProperties: {
type: 'string',
},
},
{
name: 'presetCachePersistence',
description: 'Cache resolved presets in package cache.',
type: 'boolean',
default: false,
globalOnly: true,
},
{
name: 'globalExtends',
description:
'Configuration presets to use or extend for a self-hosted config.',
type: 'array',
subType: 'string',
globalOnly: true,
},
{
name: 'description',
description: 'Plain text description for a config or preset.',
type: 'array',
subType: 'string',
stage: 'repository',
allowString: true,
mergeable: true,
cli: false,
env: false,
},
{
name: 'enabled',
description: `Enable or disable Renovate bot.`,
stage: 'package',
type: 'boolean',
default: true,
},
{
name: 'constraintsFiltering',
description: 'Perform release filtering based on language constraints.',
type: 'string',
allowedValues: ['none', 'strict'],
cli: false,
default: 'none',
},
{
name: 'repositoryCache',
description:
'This option decides if Renovate uses a JSON cache to speed up extractions.',
globalOnly: true,
type: 'string',
allowedValues: ['disabled', 'enabled', 'reset'],
stage: 'repository',
default: 'disabled',
},
{
name: 'repositoryCacheType',
description:
'Set the type of renovate repository cache if `repositoryCache` is enabled.',
globalOnly: true,
type: 'string',
stage: 'repository',
default: 'local',
},
{
name: 'reportType',
description: 'Set how, or if, reports should be generated.',
globalOnly: true,
type: 'string',
default: null,
experimental: true,
allowedValues: ['logging', 'file', 's3'],
},
{
name: 'reportPath',
description:
'Path to where the file should be written. In case of `s3` this has to be a full S3 URI.',
globalOnly: true,
type: 'string',
default: null,
experimental: true,
},
{
name: 'force',
description:
'Any configuration set in this object will force override existing settings.',
stage: 'package',
globalOnly: true,
type: 'object',
cli: false,
mergeable: true,
},
{
name: 'forceCli',
description:
'Decides if CLI configuration options are moved to the `force` config section.',
stage: 'global',
type: 'boolean',
default: true,
globalOnly: true,
},
{
name: 'draftPR',
description:
'If set to `true` then Renovate creates draft PRs, instead of normal status PRs.',
type: 'boolean',
default: false,
supportedPlatforms: ['azure', 'gitea', 'github', 'gitlab'],
},
{
name: 'dryRun',
description:
'If enabled, perform a dry run by logging messages instead of creating/updating/deleting branches and PRs.',
type: 'string',
globalOnly: true,
allowedValues: ['extract', 'lookup', 'full'],
default: null,
},
{
name: 'printConfig',
description:
'If enabled, Renovate logs the fully resolved config for each repository, plus the fully resolved presets.',
type: 'boolean',
default: false,
},
{
name: 'binarySource',
description:
'Controls how third-party tools like npm or Gradle are called: directly, via Docker sidecar containers, or via dynamic install.',
globalOnly: true,
type: 'string',
allowedValues: ['global', 'docker', 'install', 'hermit'],
default: 'install',
},
{
name: 'redisUrl',
description:
'If set, this Redis URL will be used for caching instead of the file system.',
stage: 'global',
type: 'string',
globalOnly: true,
},
{
name: 'redisPrefix',
description: 'Key prefix for redis cache entries.',
stage: 'global',
type: 'string',
globalOnly: true,
},
{
name: 'baseDir',
description:
'The base directory for Renovate to store local files, including repository files and cache. If left empty, Renovate will create its own temporary directory to use.',
stage: 'global',
type: 'string',
globalOnly: true,
},
{
name: 'cacheDir',
description:
'The directory where Renovate stores its cache. If left empty, Renovate creates a subdirectory within the `baseDir`.',
globalOnly: true,
type: 'string',
},
{
name: 'containerbaseDir',
description:
'The directory where Renovate stores its containerbase cache. If left empty, Renovate creates a subdirectory within the `cacheDir`.',
globalOnly: true,
type: 'string',
},
{
name: 'customEnvVariables',
description:
'Custom environment variables for child processes and sidecar Docker containers.',
globalOnly: true,
type: 'object',
default: {},
},
{
name: 'env',
description:
'Environment variables that Renovate uses when executing package manager commands.',
type: 'object',
default: {},
},
{
name: 'customDatasources',
description: 'Defines custom datasources for usage by managers.',
type: 'object',
experimental: true,
experimentalIssues: [23286],
default: {},
mergeable: true,
},
{
name: 'dockerChildPrefix',
description:
'Change this value to add a prefix to the Renovate Docker sidecar container names and labels.',
type: 'string',
globalOnly: true,
default: 'renovate_',
},
{
name: 'dockerCliOptions',
description:
'Pass CLI flags to `docker run` command when `binarySource=docker`.',
type: 'string',
globalOnly: true,
},
{
name: 'dockerSidecarImage',
description:
'Change this value to override the default Renovate sidecar image.',
type: 'string',
default: 'ghcr.io/containerbase/sidecar:13.7.2',
globalOnly: true,
},
{
name: 'dockerUser',
description:
'Set the `UID` and `GID` for Docker-based binaries if you use `binarySource=docker`.',
globalOnly: true,
type: 'string',
},
{
name: 'composerIgnorePlatformReqs',
description:
'Configure use of `--ignore-platform-reqs` or `--ignore-platform-req` for the Composer package manager.',
type: 'array',
subType: 'string',
default: [],
},
{
name: 'goGetDirs',
description: 'Directory pattern to run `go get` on.',
type: 'array',
subType: 'string',
default: ['./...'],
supportedManagers: ['gomod'],
},
// Log options
{
name: 'logContext',
description: 'Add a global or per-repo log context to each log entry.',
globalOnly: true,
type: 'string',
default: null,
stage: 'global',
},
// Onboarding
{
name: 'onboarding',
description: 'Require a Configuration PR first.',
stage: 'repository',
type: 'boolean',
globalOnly: true,
inheritConfigSupport: true,
},
{
name: 'onboardingConfig',
description: 'Configuration to use for onboarding PRs.',
stage: 'repository',
type: 'object',
default: { $schema: 'https://docs.renovatebot.com/renovate-schema.json' },
globalOnly: true,
inheritConfigSupport: true,
mergeable: true,
},
{
name: 'onboardingRebaseCheckbox',
description:
'Set to enable rebase/retry markdown checkbox for onboarding PRs.',
type: 'boolean',
default: false,
supportedPlatforms: ['gitea', 'github', 'gitlab'],
globalOnly: true,
experimental: true,
experimentalIssues: [17633],
},
{
name: 'forkProcessing',
description:
'Whether to process forked repositories. By default, all forked repositories are skipped when in `autodiscover` mode.',
stage: 'repository',
type: 'string',
allowedValues: ['auto', 'enabled', 'disabled'],
default: 'auto',
},
{
name: 'includeMirrors',
description:
'Whether to process repositories that are mirrors. By default, repositories that are mirrors are skipped.',
type: 'boolean',
default: false,
supportedPlatforms: ['gitlab'],
globalOnly: true,
},
{
name: 'forkCreation',
description:
'Whether to create forks as needed at runtime when running in "fork mode".',
stage: 'repository',
type: 'boolean',
globalOnly: true,
supportedPlatforms: ['github'],
experimental: true,
default: true,
},
{
name: 'forkToken',
description: 'Set a personal access token here to enable "fork mode".',
stage: 'repository',
type: 'string',
globalOnly: true,
supportedPlatforms: ['github'],
experimental: true,
},
{
name: 'forkOrg',
description:
'The preferred organization to create or find forked repositories, when in fork mode.',
stage: 'repository',
type: 'string',
globalOnly: true,
supportedPlatforms: ['github'],
experimental: true,
},
{
name: 'githubTokenWarn',
description: 'Display warnings about GitHub token not being set.',
type: 'boolean',
default: true,
globalOnly: true,
},
{
name: 'encryptedWarning',
description: 'Warning text to use if encrypted config is found.',
type: 'string',
globalOnly: true,
advancedUse: true,
},
{
name: 'inheritConfig',
description:
'If `true`, Renovate will inherit configuration from the `inheritConfigFileName` file in `inheritConfigRepoName`.',
type: 'boolean',
default: false,
globalOnly: true,
},
{
name: 'inheritConfigRepoName',
description:
'Renovate will look in this repo for the `inheritConfigFileName`.',
type: 'string',
default: '{{parentOrg}}/renovate-config',
globalOnly: true,
},
{
name: 'inheritConfigFileName',
description:
'Renovate will look for this config file name in the `inheritConfigRepoName`.',
type: 'string',
default: 'org-inherited-config.json',
globalOnly: true,
},
{
name: 'inheritConfigStrict',
description:
'If `true`, any `inheritedConfig` fetch error will result in an aborted run.',
type: 'boolean',
default: false,
globalOnly: true,
},
{
name: 'requireConfig',
description:
"Controls Renovate's behavior regarding repository config files such as `renovate.json`.",
stage: 'repository',
type: 'string',
default: 'required',
allowedValues: ['required', 'optional', 'ignored'],
globalOnly: true,
inheritConfigSupport: true,
},
{
name: 'optimizeForDisabled',
description:
'Set to `true` to perform a check for disabled config prior to cloning.',
stage: 'repository',
type: 'boolean',
default: false,
globalOnly: true,
},
// Dependency Dashboard
{
name: 'dependencyDashboard',
description:
'Whether to create a "Dependency Dashboard" issue in the repository.',
type: 'boolean',
default: false,
},
{
name: 'dependencyDashboardApproval',
description:
'Controls if updates need manual approval from the Dependency Dashboard issue before PRs are created.',
type: 'boolean',
default: false,
},
{
name: 'dependencyDashboardAutoclose',
description:
'Set to `true` to let Renovate close the Dependency Dashboard issue if there are no more updates.',
type: 'boolean',
default: false,
},
{
name: 'dependencyDashboardTitle',
description: 'Title for the Dependency Dashboard issue.',
type: 'string',
default: `Dependency Dashboard`,
},
{
name: 'dependencyDashboardHeader',
description:
'Any text added here will be placed first in the Dependency Dashboard issue body.',
type: 'string',
default:
'This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.',
},
{
name: 'dependencyDashboardFooter',
description:
'Any text added here will be placed last in the Dependency Dashboard issue body, with a divider separator before it.',
type: 'string',
},
{
name: 'dependencyDashboardLabels',
description:
'These labels will always be applied on the Dependency Dashboard issue, even when they have been removed manually.',
type: 'array',
subType: 'string',
default: null,
},
{
name: 'dependencyDashboardOSVVulnerabilitySummary',
description:
'Control if the Dependency Dashboard issue lists CVEs supplied by [osv.dev](https://osv.dev).',
type: 'string',
allowedValues: ['none', 'all', 'unresolved'],
default: 'none',
experimental: true,
},
{
name: 'configWarningReuseIssue',
description:
'Set this to `false` to make Renovate create a new issue for each config warning, instead of reopening or reusing an existing issue.',
type: 'boolean',
default: true,
},
// encryption
{
name: 'privateKey',
description: 'Server-side private key.',
stage: 'repository',
type: 'string',
replaceLineReturns: true,
globalOnly: true,
},
{
name: 'privateKeyOld',
description: 'Secondary or old private key to try.',
stage: 'repository',
type: 'string',
replaceLineReturns: true,
globalOnly: true,
},
{
name: 'privateKeyPath',
description: 'Path to the Server-side private key.',
stage: 'repository',
type: 'string',
globalOnly: true,
},
{
name: 'privateKeyPathOld',
description: 'Path to the Server-side old private key.',
stage: 'repository',
type: 'string',
globalOnly: true,
},
{
name: 'encrypted',
description:
'An object containing configuration encrypted with project key.',
stage: 'repository',
type: 'object',
default: null,
},
// Scheduling
{
name: 'timezone',
description:
'Must conform to [IANA Time Zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) format.',
type: 'string',
},
{
name: 'schedule',
description: 'Limit branch creation to these times of day or week.',
type: 'array',
subType: 'string',
allowString: true,
cli: true,
env: false,
default: ['at any time'],
},
{
name: 'automergeSchedule',
description: 'Limit automerge to these times of day or week.',
type: 'array',
subType: 'string',
allowString: true,
cli: true,
env: false,
default: ['at any time'],
},
{
name: 'updateNotScheduled',
description:
'Whether to update branches when not scheduled. Renovate will not create branches outside of the schedule.',
stage: 'branch',
type: 'boolean',
default: true,
},
// Bot administration
{
name: 'persistRepoData',
description:
'If set to `true`: keep repository data between runs instead of deleting the data.',
type: 'boolean',
default: false,
globalOnly: true,
},
{
name: 'exposeAllEnv',
description:
'Set this to `true` to allow passing of all environment variables to package managers.',
globalOnly: true,
type: 'boolean',
default: false,
},
{
name: 'allowPlugins',
description:
'Set this to `true` if repositories are allowed to run install plugins.',
globalOnly: true,
type: 'boolean',
default: false,
},
{
name: 'allowScripts',
description:
'Set this to `true` if repositories are allowed to run install scripts.',
globalOnly: true,
type: 'boolean',
default: false,
},
{
name: 'allowCustomCrateRegistries',
description: 'Set this to `true` to allow custom crate registries.',
globalOnly: true,
type: 'boolean',
default: false,
},
{
name: 'ignorePlugins',
description:
'Set this to `true` if `allowPlugins=true` but you wish to skip running plugins when updating lock files.',
type: 'boolean',
default: false,
},
{
name: 'ignoreScripts',
description:
'Set this to `false` if `allowScripts=true` and you wish to run scripts when updating lock files.',
type: 'boolean',
default: true,
supportedManagers: ['npm', 'bun', 'composer', 'copier'],
},
{
name: 'platform',
description: 'Platform type of repository.',
type: 'string',
allowedValues: getPlatformList(),
default: 'github',
globalOnly: true,
},
{
name: 'endpoint',
description: 'Custom endpoint to use.',
type: 'string',
globalOnly: true,
default: null,
},
{
name: 'token',
description: 'Repository Auth Token.',
stage: 'repository',
type: 'string',
globalOnly: true,
},
{
name: 'username',
description: 'Username for authentication.',
stage: 'repository',
type: 'string',
supportedPlatforms: ['azure', 'bitbucket', 'bitbucket-server'],
globalOnly: true,
},
{
name: 'password',
description: 'Password for authentication.',
stage: 'repository',
type: 'string',
supportedPlatforms: ['azure', 'bitbucket', 'bitbucket-server'],
globalOnly: true,
},
{
name: 'npmrc',
description:
'String copy of `.npmrc` file. Use `\\n` instead of line breaks.',
stage: 'branch',
type: 'string',
},
{
name: 'npmrcMerge',
description:
'Whether to merge `config.npmrc` with repo `.npmrc` content if both are found.',
stage: 'branch',
type: 'boolean',
default: false,
},
{
name: 'npmToken',
description: 'npm token used to authenticate with the default registry.',
stage: 'branch',
type: 'string',
},
{
name: 'updateLockFiles',
description: 'Set to `false` to disable lock file updating.',
type: 'boolean',
default: true,
supportedManagers: ['npm'],
},
{
name: 'skipInstalls',
description:
'Skip installing modules/dependencies if lock file updating is possible without a full install.',
type: 'boolean',
default: null,
},
{
name: 'autodiscover',
description: 'Autodiscover all repositories.',
stage: 'global',
type: 'boolean',
default: false,
globalOnly: true,
},
{
name: 'autodiscoverFilter',
description: 'Filter the list of autodiscovered repositories.',
stage: 'global',
type: 'array',
subType: 'string',
allowString: true,
default: null,
globalOnly: true,
},
{
name: 'autodiscoverNamespaces',
description:
'Filter the list of autodiscovered repositories by namespaces.',
stage: 'global',
type: 'array',
subType: 'string',
default: null,
globalOnly: true,
supportedPlatforms: ['gitea', 'gitlab'],
},
{
name: 'autodiscoverProjects',
description:
'Filter the list of autodiscovered repositories by project names.',
stage: 'global',