Repository navigation
Expand file tree
/
Copy pathreleasekit.schema.json
More file actions
1338 lines (1338 loc) · 63.3 KB
/
Copy pathreleasekit.schema.json
File metadata and controls
1338 lines (1338 loc) · 63.3 KB
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
{
"$comment": "GENERATED from packages/config/src/schema.ts — do not edit; run `pnpm schema:gen`.",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://goosewobbler.github.io/releasekit/schema.json",
"title": "ReleaseKit Configuration",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "JSON schema reference URL"
},
"git": {
"type": "object",
"additionalProperties": false,
"properties": {
"remote": {
"type": "string",
"default": "origin",
"description": "Git remote name"
},
"branch": {
"type": "string",
"description": "Branch that releases land on: a direct release pushes its commit here, and the standing release PR targets it. When unset, a direct release pushes the current branch and the standing PR targets main."
},
"pushMethod": {
"type": "string",
"enum": [
"auto",
"ssh",
"https"
],
"default": "auto",
"description": "Method for pushing to remote"
},
"push": {
"type": "boolean",
"description": "Whether to push changes to remote"
},
"httpsTokenEnv": {
"type": "string",
"description": "Environment variable name containing a GitHub token for HTTPS pushes"
},
"skipHooks": {
"type": "boolean",
"description": "Skip Git hooks when committing"
},
"formatCommand": {
"type": "string",
"description": "Formatter to run on the files a release writes, before committing them, e.g. `npx biome format --write`. ReleaseKit appends their paths and runs the command without a shell: quote an argument that contains spaces, and run a project-local tool through npx or pnpm exec, since the GitHub Action doesn't put node_modules/.bin on the PATH. Pass a flag that skips files the formatter can't handle, e.g. Prettier's `--ignore-unknown`. A non-zero exit fails the release before anything is committed."
}
},
"description": "Git configuration"
},
"monorepo": {
"type": "object",
"additionalProperties": false,
"properties": {
"rootPath": {
"type": "string",
"description": "Path to root changelog"
},
"packagesPath": {
"type": "string",
"description": "Path to packages directory"
}
},
"description": "Monorepo configuration"
},
"version": {
"type": "object",
"additionalProperties": false,
"properties": {
"tagTemplate": {
"type": "string",
"pattern": "\\$\\{version\\}$",
"description": "Template for Git tags, ending with ${version}. Available variables: ${version} (version number), ${prefix} (versionPrefix value, e.g. 'v'), ${packageName} (sanitized package name, e.g. 'scope-pkg'). Example: \"${packageName}-${prefix}${version}\" produces \"scope-pkg-v1.2.3\". Defaults to \"${packageName}@${prefix}${version}\" with packageSpecificTags, otherwise \"${prefix}${version}\"."
},
"baselineTagTemplate": {
"type": "string",
"pattern": "\\$\\{version\\}$",
"description": "Optional secondary tag template for an internal 'baseline' marker that records the release commit on the source branch. Use this when tagTemplate resolves to a tag that gets force-moved off the source branch by a downstream step (e.g. a GitHub Action distributing built artifacts at the version tag) — the baseline tag stays on the release commit so future version-bump and changelog calculations can still find the previous release. Must end with ${version} so the baseline prefix can be derived. Supports the same variables as tagTemplate. Example: \"release/${prefix}${version}\" produces \"release/v1.2.3\"."
},
"packageSpecificTags": {
"type": "boolean",
"default": false,
"description": "Tag each package separately, e.g. \"scope-pkg@v1.2.3\". tagTemplate must then contain ${packageName}."
},
"preset": {
"type": "string",
"enum": [
"angular",
"conventionalcommits"
],
"default": "conventionalcommits",
"description": "Commit convention preset"
},
"sync": {
"type": "boolean",
"default": true,
"description": "Global lockstep versioning. true is sugar for one implicit fixed group of every package — it shares the same mechanism as version.groups. Set to false when using version.groups; sync: true alongside groups is treated as the implicit all-packages fixed group taking precedence (a config conflict, warned about at runtime)."
},
"groups": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"properties": {
"packages": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
},
"description": "Package patterns (exact names, @scope/*, or globs) whose matched packages form this group. Same matching rules as version.packages."
},
"sync": {
"type": "string",
"enum": [
"fixed",
"linked",
"independent"
],
"description": "fixed: all members release together at the shared group version. linked: only changed members release, all at the same computed version. independent: only changed members release, each on its own commit-driven version line (no shared version), but the set ships atomically."
}
},
"required": [
"packages",
"sync"
]
},
"description": "Named version groups. Each group binds a set of package patterns to a fixed, linked, or independent sync mode. fixed: any releasable change in any member releases ALL members at the shared group version (bump(max(member baselines))). linked: only members with releasable changes release, but every releasing member shares the same computed version. independent: only members with releasable changes release, each on its own commit-driven version line (no shared version), but the set is atomic — targeting any member pulls in the whole group. Packages not matched by any group version independently. A package may belong to at most one group. Set version.sync to false when using groups.",
"propertyNames": {
"type": "string"
}
},
"packages": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Packages to include in versioning. Empty includes every discovered package. `./` matches only a package at the repository root."
},
"sharedPackages": {
"type": "array",
"items": {
"type": "string"
},
"description": "Foundational packages whose changes belong in every package’s notes, as exact names or globs. In async mode (`sync: false`, no `groups`, more than one package in the run), commits touching a shared package and no non-shared package are listed under \"Project-wide changes\" in each released package’s changelog, release notes and release body, covering those since that package’s previous release. A root changelog lists them once per run in such releases, alongside commits that touch no package. Default: none."
},
"primaryPackages": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Packages users install, as exact names or globs. Each anchors a release unit with its group-mates and the internal dependencies it releases with. Used by the standing-PR selection list. In async mode or grouped releases with per-package tags, each primary's release notes also list its group-mates' and internal dependencies' releases since its previous release."
},
"sharedChangelogFloor": {
"type": "string",
"enum": [
"union",
"sinceLastRelease"
],
"default": "union",
"description": "How project-wide entries in the standing PR and the root changelog are bounded in async mode (see sharedPackages); each package's own notes list the shared-package entries since its previous release. \"union\" (default): repo-level commits accrue from the union of the releasing packages' ranges, floored by the OLDEST unreleased baseline — so a genuinely-global commit recurs in every release until the oldest-baselined package is released past it. \"sinceLastRelease\": floor the block by the single nearest tag reachable across the repo, so global commits already shown by the most recent release don't recur (recommended for per-package-tag monorepos)."
},
"mainPackage": {
"type": "string",
"description": "The package a single-mode release versions. In sync mode without packageSpecificTags, the release is named after it, but its version comes from the version record. The changelog still lists every commit in the release."
},
"skip": {
"type": "array",
"items": {
"type": "string"
},
"description": "Packages to exclude from versioning (glob patterns or exact names). Private packages (\"private\": true) are skipped automatically — see includePrivate — so they do not need to be listed here."
},
"includePrivate": {
"type": "boolean",
"default": false,
"description": "Include npm packages marked \"private\": true (in package.json) in the release flow. Default false: private packages are skipped at discovery — they cannot be published to any registry, mirroring the Cargo `publish = false` and pub `publish_to: none` skips already applied during discovery. Set true to version a private package for internal tracking. A private package listed in version.packages by its exact package name or exact directory path (e.g. \"packages/app\") is always included regardless of this setting; one matched only by a glob (e.g. \"packages/*\" or \"@scope/*\") is still skipped."
},
"commitMessage": {
"type": "string",
"description": "Template for the release commit message. Supports ${version} and ${packageName}. Default: 'chore: release ${packageName} v${version}' for sync and single-package releases; otherwise 'chore: release' followed by each released package and version."
},
"mismatchStrategy": {
"type": "string",
"enum": [
"error",
"warn",
"ignore",
"prefer-package",
"prefer-git"
],
"default": "warn",
"description": "How to handle version mismatches"
},
"versionPrefix": {
"type": "string",
"default": "v",
"description": "Prefix for version tags. Set \"\" for tags like \"1.2.3\"."
},
"prereleaseIdentifier": {
"type": "string",
"description": "Identifier for prerelease versions (e.g., 'alpha', 'beta')"
},
"allowFirstBump": {
"type": "boolean",
"default": false,
"description": "Acknowledge applying a bump on a first release with an already-stable manifest. On a first release (no prior tag), `--stable --bump <type>` applies the bump (e.g. 1.0.0 → 2.0.0) rather than graduating, which can silently overshoot the staged first version. By default this is flagged per `mismatchStrategy` (warn, or abort under \"error\"); set true (or pass --allow-first-bump) to apply the bump silently — legitimate when importing a package with prior external version history."
},
"strictReachable": {
"type": "boolean",
"default": false,
"description": "Fail the run when a release tag exists but none is reachable from HEAD (typically a shallow clone), instead of falling back to the manifest version."
},
"zeroMajor": {
"type": "string",
"enum": [
"spec",
"strict"
],
"default": "spec",
"description": "Pre-1.0 handling of commit-inferred breaking changes. 'spec' (default): bump the 0.x minor (0.24.0 → 0.25.0), per semver §4. 'strict': bump the next major (→ 1.0.0). Inferred path only — explicit overrides (--bump major, bump:major) always graduate to 1.0.0."
},
"npm": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Version package.json manifests. Detected npm packages are versioned by default; set false to opt out (e.g. npm versioning handled elsewhere)."
}
},
"description": "npm/JavaScript version handling"
},
"cargo": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Version Cargo.toml manifests. Detected Rust packages are versioned by default; set false to opt out (e.g. a vendored crate, or Rust versioning handled elsewhere)."
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Directories, relative to each package, to bump a Cargo.toml in instead of the package's own directory. Not searched recursively. Ignored in group mode."
}
},
"description": "Cargo/Rust configuration"
},
"pub": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Version pubspec.yaml manifests. Detected Dart/Flutter packages are versioned by default; set false to opt out."
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Directories, relative to each package, to bump a pubspec.yaml in instead of the package's own directory. Not searched recursively. Ignored in group mode."
}
},
"description": "Dart/Flutter pub configuration"
}
},
"description": "Versioning configuration"
},
"publish": {
"type": "object",
"additionalProperties": false,
"properties": {
"git": {
"type": "object",
"additionalProperties": false,
"properties": {
"push": {
"type": "boolean",
"description": "Push tags and commits to remote. When unset, inherits the top-level git.push (which defaults to push)."
},
"pushMethod": {
"type": "string",
"enum": [
"auto",
"ssh",
"https"
],
"description": "Push method override"
},
"remote": {
"type": "string",
"description": "Remote name override"
},
"branch": {
"type": "string",
"description": "Branch name override"
},
"httpsTokenEnv": {
"type": "string",
"description": "Environment variable name containing a GitHub token for HTTPS pushes"
},
"skipHooks": {
"type": "boolean",
"description": "Skip Git hooks when committing"
},
"formatCommand": {
"type": "string",
"description": "Format command override"
}
},
"description": "Git publishing options"
},
"npm": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Publish to npm. Detected npm packages are published by default; set false to opt out (version and tag only)."
},
"auth": {
"type": "string",
"enum": [
"auto",
"oidc",
"token"
],
"default": "auto",
"description": "Authentication method"
},
"provenance": {
"type": "boolean",
"default": true,
"description": "Enable npm provenance attestation"
},
"access": {
"type": "string",
"enum": [
"public",
"restricted"
],
"default": "public",
"description": "Package access level"
},
"registry": {
"type": "string",
"default": "https://registry.npmjs.org",
"description": "NPM registry URL"
},
"copyFiles": {
"type": "array",
"default": [
"LICENSE"
],
"items": {
"type": "string"
},
"description": "Files to copy to package before publishing"
},
"tag": {
"type": "string",
"default": "latest",
"description": "NPM dist tag"
},
"publishOrder": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Explicit publish order for npm packages; empty auto-sorts dependencies first"
}
},
"description": "NPM publishing configuration"
},
"cargo": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Publish to crates.io. Detected Rust packages are published by default; set false to opt out (version and tag only)."
},
"noVerify": {
"type": "boolean",
"default": false,
"description": "Pass --no-verify to cargo publish, skipping the pre-publish build of the packaged crate. Use only as a temporary workaround for a build that fails in CI."
},
"publishOrder": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Crate names to publish first, in this order; the rest follow in discovery order. Empty sorts crates by their path dependencies."
},
"clean": {
"type": "boolean",
"default": false,
"description": "Run cargo clean in each crate's directory before publishing."
}
},
"description": "Cargo publishing configuration"
},
"pub": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Publish to pub.dev. Detected Dart/Flutter packages are published by default; set false to opt out (version and tag only)."
},
"publishOrder": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Package names to publish first, in this order; the rest follow in discovery order."
}
},
"description": "Dart/Flutter publishing configuration via pub"
},
"githubRelease": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable GitHub releases"
},
"draft": {
"type": "boolean",
"default": true,
"description": "Create as draft release"
},
"perPackage": {
"type": "boolean",
"default": true,
"description": "Create separate release per package"
},
"prerelease": {
"default": "auto",
"oneOf": [
{
"type": "boolean"
},
{
"type": "string",
"enum": [
"auto"
]
}
],
"description": "Mark as prerelease"
},
"body": {
"type": "string",
"enum": [
"auto",
"releaseNotes",
"changelog",
"generated",
"none"
],
"default": "auto",
"description": "Source for GitHub release body. 'auto': use release notes if enabled, else changelog, else GitHub auto. 'releaseNotes': use LLM-generated release notes. 'changelog': use changelog entries. 'generated': GitHub auto-generated. 'none': no body."
},
"titleTemplate": {
"type": "string",
"default": "${packageName}: ${version}",
"description": "Template for the GitHub release title when a package name is resolved. Available variables: ${packageName} (original scoped name, e.g. '@scope/pkg'), ${version} (the package's new version, with a 'v' when its tag has one, e.g. 'v1.0.0'). Tags without a package name, e.g. 'v1.0.0' or 'release-1.0.0', are used as the title unchanged."
},
"skipPackages": {
"type": "array",
"default": [],
"items": {
"type": "string"
},
"description": "Package names to exclude from GitHub release creation. The name as tags spell it also matches, e.g. 'scope-pkg' for '@scope/pkg'."
}
},
"description": "GitHub Release configuration"
},
"verify": {
"type": "object",
"additionalProperties": false,
"properties": {
"npm": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Verify NPM publish"
},
"maxAttempts": {
"type": "integer",
"minimum": 1,
"default": 5,
"description": "Maximum verification attempts"
},
"initialDelay": {
"type": "integer",
"minimum": 1,
"default": 15000,
"description": "Wait in ms after the first failed check; each later wait is multiplied by backoffMultiplier."
},
"backoffMultiplier": {
"type": "number",
"minimum": 1,
"default": 2,
"description": "Exponential backoff multiplier"
}
},
"description": "Poll npm after each publish until the new version is visible."
},
"cargo": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Verify Cargo publish"
},
"maxAttempts": {
"type": "integer",
"minimum": 1,
"default": 10,
"description": "Maximum verification attempts"
},
"initialDelay": {
"type": "integer",
"minimum": 1,
"default": 30000,
"description": "Wait in ms after the first failed check; each later wait is multiplied by backoffMultiplier."
},
"backoffMultiplier": {
"type": "number",
"minimum": 1,
"default": 2,
"description": "Exponential backoff multiplier"
}
},
"description": "Poll crates.io after each publish until the new version is visible. Its index updates more slowly than npm's, so the defaults wait longer."
},
"pub": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Verify Dart pub publish"
},
"maxAttempts": {
"type": "integer",
"minimum": 1,
"default": 10,
"description": "Maximum verification attempts"
},
"initialDelay": {
"type": "integer",
"minimum": 1,
"default": 30000,
"description": "Wait in ms after the first failed check; each later wait is multiplied by backoffMultiplier."
},
"backoffMultiplier": {
"type": "number",
"minimum": 1,
"default": 2,
"description": "Exponential backoff multiplier"
}
},
"description": "Poll pub.dev after each publish until the new version is visible."
}
},
"description": "Registry verification configuration"
}
},
"description": "Publishing configuration"
},
"notes": {
"type": "object",
"additionalProperties": false,
"properties": {
"changelog": {
"oneOf": [
{
"type": "boolean",
"enum": [
false
],
"description": "Set to false to disable changelog generation"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"mode": {
"type": "string",
"enum": [
"root",
"packages",
"both"
],
"description": "Where to write changelog files: 'root' (the default) at the repo root, 'packages' in each package (monorepos only), or 'both'."
},
"file": {
"type": "string",
"description": "Changelog file name override (default: CHANGELOG.md)"
},
"templates": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string",
"description": "Template file, or a directory of composable templates."
},
"engine": {
"type": "string",
"enum": [
"handlebars",
"liquid",
"ejs"
],
"description": "Template engine. Detected from the template files when omitted; ignored without path."
}
},
"description": "Template configuration for changelog"
},
"refs": {
"type": "string",
"enum": [
"strip",
"escape",
"link"
],
"default": "link",
"description": "How `#NNN` issue/PR refs in changelog entries are rendered, wherever the entries appear. Applies to the whole entry — both the appended label and any bare `#N` carried over from the commit subject into the description (a description ref that also appears in the appended label is de-duplicated away). 'link' (default): the PR and the issues it closed are labelled as `(PR #503 · closes #500)`, where the PR links to its canonical /pull/ URL with `PR #503` as the visible text — this keeps the GitHub hovercard but stops the bare-token rich inline card that duplicated the entry; closed issues link to /issues/. An entry with no identifiable PR (a non-squash commit, or a non-GitHub repo) falls back to a plain ref list. 'escape': plain text \\#NNN (no link, no hovercard, no PR/closes labelling). 'strip': refs are removed entirely. Scoped-package / @user mentions in entry text are always neutralised regardless of this setting."
}
},
"description": "Changelog file configuration"
}
],
"description": "Changelog generation, on by default. Set to false to disable."
},
"releaseNotes": {
"oneOf": [
{
"type": "boolean",
"enum": [
false
],
"description": "Set to false to disable release notes"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"file": {
"type": "object",
"additionalProperties": false,
"properties": {
"dir": {
"type": "string",
"default": "release-notes",
"description": "Directory for the per-version release-notes files."
}
},
"description": "Optional in-repo file output. Omit to keep release notes only on the GitHub release body (the default). When set, writes one immutable Markdown file per version under `dir` — release-notes/<package>/<version>.md in a monorepo, release-notes/<version>.md in a single-package repo — giving a browsable, provider-independent per-release history. Not supported with `ci.releaseStrategy: \"standing-pr\"`."
},
"templates": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string",
"description": "Template file, or a directory of composable templates."
},
"engine": {
"type": "string",
"enum": [
"handlebars",
"liquid",
"ejs"
],
"description": "Template engine. Detected from the template files when omitted; ignored without path."
}
},
"description": "Template for rendering release notes (e.g. to add docs-site frontmatter). Takes precedence over LLM prose and the default formatted section."
},
"llm": {
"type": "object",
"additionalProperties": false,
"properties": {
"provider": {
"type": "string",
"enum": [
"openai",
"openai-compatible",
"anthropic",
"ollama"
],
"description": "LLM provider"
},
"model": {
"type": "string",
"minLength": 1,
"description": "Model identifier for the selected provider; releasekit ships no default. Checked only when a run calls the LLM, so other runs work without it."
},
"baseURL": {
"type": "string",
"description": "Custom API base URL. Required for the openai-compatible provider."
},
"apiKey": {
"type": "string",
"description": "API key. When unset, releasekit uses the key saved by releasekit-notes auth, then the provider's environment variable (e.g. OPENAI_API_KEY); prefer either to an inline key."
},
"options": {
"type": "object",
"additionalProperties": false,
"properties": {
"timeout": {
"type": "integer",
"description": "Idle timeout in ms: a streamed response fails only when nothing arrives for this long. Default: 60000."
},
"maxTokens": {
"type": "integer",
"description": "Max tokens to generate. Default: 16384."
},
"temperature": {
"type": "number",
"description": "Sampling temperature. Default: 0.7; the anthropic provider ignores it."
}
},
"description": "Options for each request to the provider."
},
"concurrency": {
"type": "integer",
"minimum": 1,
"description": "Maximum packages processed at once and, separately, entries a package's standalone enhance task rewrites at once. Default: 5."
},
"retry": {
"type": "object",
"additionalProperties": false,
"properties": {
"maxAttempts": {
"type": "integer",
"minimum": 1,
"description": "Maximum number of attempts, including the first. Default: 3."
},
"initialDelay": {
"type": "integer",
"minimum": 0,
"description": "Delay in ms before the first retry. Default: 1000."
},
"maxDelay": {
"type": "integer",
"minimum": 1,
"description": "Maximum delay in ms between attempts. Default: 30000."
},
"backoffFactor": {
"type": "number",
"minimum": 1,
"description": "Delay multiplier per attempt. Default: 2."
}
},
"description": "Retries for LLM requests that fail with a retryable error."
},
"tasks": {
"type": "object",
"additionalProperties": false,
"properties": {
"summarize": {
"type": "boolean",
"description": "Write a 2–3 sentence summary of the release."
},
"enhance": {
"type": "boolean",
"description": "Rewrite each entry's description to be clearer for users."
},
"categorize": {
"type": "boolean",
"description": "Group entries into the configured categories."
},
"releaseNotes": {
"type": "boolean",
"description": "Write prose release notes for the GitHub Release body and any release-notes files."
}
},
"description": "LLM tasks to run. Each is off unless set to true."
},
"categories": {
"type": "array",
"default": [
{
"name": "New",
"description": "New features and capabilities"
},
{
"name": "Changed",
"description": "Changes to existing functionality"
},
{
"name": "Fixed",
"description": "Bug fixes"
},
{
"name": "Developer",
"description": "Internal changes: CI, tooling, dependencies, refactoring"
}
],
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Category label shown in release notes (e.g. 'Features')"
},
"description": {
"type": "string",
"description": "LLM instruction describing what commits belong in this category"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Conventional commit scopes assigned to this category"
}
},
"required": [
"name",
"description"
]
},
"description": "Categories the categorize task sorts entries into. Default: New, Changed, Fixed and Developer, each with a built-in description. Breaking is never offered to the model, even if listed: only a commit marked breaking puts an entry there."
},
"style": {
"type": "string",
"description": "Writing-style instruction for the enhance task, alone or combined with categorize. Default: past tense, concise and user-focused, leading with the impact."
},
"scopes": {
"type": "object",
"additionalProperties": false,
"properties": {
"mode": {
"type": "string",
"enum": [
"restricted",
"packages",
"none",
"unrestricted"
],
"default": "unrestricted",
"description": "Scope allowlist source: 'restricted' uses rules.allowed, 'packages' derives scopes from workspace package names, 'none' strips all scopes, 'unrestricted' allows any scope"
},
"rules": {
"type": "object",
"additionalProperties": false,
"properties": {
"allowed": {
"type": "array",
"items": {
"type": "string"
},
"description": "Explicit list of valid scope names; commits with unlisted scopes trigger invalidScopeAction"
},
"caseSensitive": {
"type": "boolean",
"default": false,
"description": "Whether scope comparison is case-sensitive"
},
"invalidScopeAction": {
"type": "string",
"enum": [
"remove",
"keep",
"fallback"
],
"default": "remove",
"description": "Action for commits whose scope is not in the allowed list: 'remove' strips the scope, 'keep' leaves it, 'fallback' substitutes fallbackScope"
},
"fallbackScope": {
"type": "string",
"description": "Scope substituted when invalidScopeAction is 'fallback'"
}
},
"description": "Scope validation and transformation rules"
}
},
"description": "Validation of the scopes the LLM assigns to entries."
},
"prompts": {
"type": "object",
"additionalProperties": false,
"properties": {
"instructions": {
"type": "object",
"additionalProperties": false,
"properties": {
"enhance": {
"type": "string",
"description": "For the enhance task when categorize is off."
},
"categorize": {
"type": "string",
"description": "For the categorize task when enhance is off."
},
"enhanceAndCategorize": {
"type": "string",
"description": "For the combined task that replaces enhance and categorize when both are on."
},
"summarize": {
"type": "string",
"description": "For the summarize task."
},
"releaseNotes": {
"type": "string",
"description": "For the releaseNotes task."
}
},
"description": "Extra instructions appended to a task's built-in system prompt. The task's output format is unchanged."
}
},
"description": "Per-task prompt additions."
},
"examples": {
"type": "integer",
"minimum": 0,
"maximum": 5,
"default": 3,
"description": "Number of the project's past GitHub Releases (0–5) used as style examples in the combined enhance and categorize prompt and the releaseNotes prompt. Needs GITHUB_TOKEN or GH_TOKEN."
},
"context": {
"type": "object",
"additionalProperties": false,
"properties": {
"pullRequests": {
"type": "boolean",
"default": true,
"description": "Fetch the title and body of each entry's own PR as LLM context. Needs GITHUB_TOKEN or GH_TOKEN."
}
},
"description": "Additional context sources for the LLM."
},
"categoryOrder": {
"type": "array",
"items": {
"type": "string"
},
"description": "Order of the rendered categories. Listed ones come first; the rest keep their order in categories, except Breaking, which stays first unless listed."
},
"cache": {
"type": "boolean",
"default": false,
"description": "Cache LLM responses on disk (under the OS temp dir), keyed by a hash of the provider, model, prompt, and request options. A re-run or backfill with the same inputs reuses the cached generation instead of re-calling the provider. Off by default."
}
},
"required": [
"provider"
],
"description": "LLM configuration for release notes"
},
"links": {
"type": "object",
"additionalProperties": false,
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"type": "string",
"description": "Link text"
},