git-release-manager 0.0.4 → 0.0.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.
Files changed (309) hide show
  1. package/dist/cli/types/BranchCliArgs.js +3 -0
  2. package/dist/cli/types/BranchCliArgs.js.map +1 -0
  3. package/dist/{src/cli/types/ChnagelogCliArgs.js → cli/types/ChangelogCliArgs.js} +1 -1
  4. package/dist/cli/types/ChangelogCliArgs.js.map +1 -0
  5. package/dist/cli/types/CliArgs.js +3 -0
  6. package/dist/cli/types/CliArgs.js.map +1 -0
  7. package/dist/cli/types/VersionCliArgs.js +3 -0
  8. package/dist/cli/types/VersionCliArgs.js.map +1 -0
  9. package/dist/config/configLoader.js +61 -0
  10. package/dist/config/configLoader.js.map +1 -0
  11. package/dist/config/configManager.js +66 -0
  12. package/dist/config/configManager.js.map +1 -0
  13. package/dist/config/constants.js +10 -0
  14. package/dist/config/constants.js.map +1 -0
  15. package/dist/config/defaults/config.json +232 -0
  16. package/dist/config/types/ChannelType.js +3 -0
  17. package/dist/config/types/ChannelType.js.map +1 -0
  18. package/dist/config/types/CommitType.js.map +1 -0
  19. package/dist/config/types/Config.js +3 -0
  20. package/dist/config/types/Config.js.map +1 -0
  21. package/dist/{src/core/types/RangeInfo.js → config/types/FileGroups.js} +1 -1
  22. package/dist/config/types/FileGroups.js.map +1 -0
  23. package/dist/{src/git → config}/types/LinkType.js.map +1 -1
  24. package/dist/config/types/MentionType.js.map +1 -0
  25. package/dist/config/types/NoteType.js +3 -0
  26. package/dist/config/types/NoteType.js.map +1 -0
  27. package/dist/config/types/Options.js +3 -0
  28. package/dist/config/types/Options.js.map +1 -0
  29. package/dist/core/changelog/app.js +40 -0
  30. package/dist/core/changelog/app.js.map +1 -0
  31. package/dist/index.js +89 -0
  32. package/dist/index.js.map +1 -0
  33. package/dist/modules/branch/BranchController.js +62 -0
  34. package/dist/modules/branch/BranchController.js.map +1 -0
  35. package/dist/modules/branch/BranchManager.js +194 -0
  36. package/dist/modules/branch/BranchManager.js.map +1 -0
  37. package/dist/modules/changelog/ChangelogValidator.js +19 -0
  38. package/dist/modules/changelog/ChangelogValidator.js.map +1 -0
  39. package/dist/modules/changelog/templateOperations.js +144 -0
  40. package/dist/modules/changelog/templateOperations.js.map +1 -0
  41. package/dist/modules/changes/types/ChangeInformation.js.map +1 -0
  42. package/dist/modules/changes/types/Context.js.map +1 -0
  43. package/dist/modules/changes/types/RangeInfo.js +8 -0
  44. package/dist/modules/changes/types/RangeInfo.js.map +1 -0
  45. package/dist/{src/core/types/RangeDetails.js → modules/changes/types/RangeSummary.js} +1 -1
  46. package/dist/modules/changes/types/RangeSummary.js.map +1 -0
  47. package/dist/modules/changes/types/ReferenceTypesEnum.js.map +1 -0
  48. package/dist/{src → modules}/git/commits/commitProcessor.js +5 -7
  49. package/dist/modules/git/commits/commitProcessor.js.map +1 -0
  50. package/dist/{src → modules}/git/commits/gitLogFetcher.js +2 -2
  51. package/dist/modules/git/commits/gitLogFetcher.js.map +1 -0
  52. package/dist/modules/git/commits/index.js +136 -0
  53. package/dist/modules/git/commits/index.js.map +1 -0
  54. package/dist/{src → modules}/git/commits/profileHandler.js +13 -8
  55. package/dist/modules/git/commits/profileHandler.js.map +1 -0
  56. package/dist/{src → modules}/git/commits/regexHandlers.js +5 -5
  57. package/dist/modules/git/commits/regexHandlers.js.map +1 -0
  58. package/dist/modules/git/context/branchHandler.js +18 -0
  59. package/dist/modules/git/context/branchHandler.js.map +1 -0
  60. package/dist/modules/git/context/commitHandler.js +29 -0
  61. package/dist/modules/git/context/commitHandler.js.map +1 -0
  62. package/dist/{src → modules}/git/context/index.js +6 -11
  63. package/dist/modules/git/context/index.js.map +1 -0
  64. package/dist/{src → modules}/git/context/remoteHandler.js +3 -8
  65. package/dist/modules/git/context/remoteHandler.js.map +1 -0
  66. package/dist/modules/git/context/statusHandler.js +16 -0
  67. package/dist/modules/git/context/statusHandler.js.map +1 -0
  68. package/dist/modules/git/context/tagHandler.js +28 -0
  69. package/dist/modules/git/context/tagHandler.js.map +1 -0
  70. package/dist/modules/git/gitOperations.js +56 -0
  71. package/dist/modules/git/gitOperations.js.map +1 -0
  72. package/dist/modules/git/types/Author.js.map +1 -0
  73. package/dist/modules/git/types/Branch.js +3 -0
  74. package/dist/modules/git/types/Branch.js.map +1 -0
  75. package/dist/modules/git/types/BranchInfo.js.map +1 -0
  76. package/dist/modules/git/types/CommitContent.js.map +1 -0
  77. package/dist/modules/git/types/CommitInfo.js.map +1 -0
  78. package/dist/modules/git/types/CommitType.js +3 -0
  79. package/dist/modules/git/types/CommitType.js.map +1 -0
  80. package/dist/modules/git/types/GitCommit.js.map +1 -0
  81. package/dist/modules/git/types/GitReference.js +3 -0
  82. package/dist/modules/git/types/GitReference.js.map +1 -0
  83. package/dist/{src → modules}/git/types/Link.js.map +1 -1
  84. package/dist/modules/git/types/Mention.js.map +1 -0
  85. package/dist/{src → modules}/git/types/Note.js.map +1 -1
  86. package/dist/modules/git/types/RemoteInfo.js.map +1 -0
  87. package/dist/modules/git/types/Repository.js.map +1 -0
  88. package/dist/modules/git/types/StatusInfo.js.map +1 -0
  89. package/dist/modules/git/types/Tag.js +3 -0
  90. package/dist/modules/git/types/Tag.js.map +1 -0
  91. package/dist/modules/git/types/TagInfo.js.map +1 -0
  92. package/dist/{src → modules}/git/utils/branchUtils.js +5 -7
  93. package/dist/modules/git/utils/branchUtils.js.map +1 -0
  94. package/dist/{src → modules}/git/utils/commitUtils.js +3 -5
  95. package/dist/modules/git/utils/commitUtils.js.map +1 -0
  96. package/dist/modules/git/utils/logUtils.js.map +1 -0
  97. package/dist/modules/git/utils/rangeOperations.js.map +1 -0
  98. package/dist/modules/git/utils/refUtils.js.map +1 -0
  99. package/dist/{src → modules}/git/utils/referenceUtils.js +19 -22
  100. package/dist/modules/git/utils/referenceUtils.js.map +1 -0
  101. package/dist/{src → modules}/git/utils/tagUtils.js +7 -6
  102. package/dist/modules/git/utils/tagUtils.js.map +1 -0
  103. package/dist/{src → modules}/output/writer.js +2 -2
  104. package/dist/modules/output/writer.js.map +1 -0
  105. package/dist/{src → modules}/sections/contributors.js +4 -4
  106. package/dist/modules/sections/contributors.js.map +1 -0
  107. package/dist/{src → modules}/sections/grouping.js +12 -18
  108. package/dist/modules/sections/grouping.js.map +1 -0
  109. package/dist/{src → modules}/sections/index.js +1 -2
  110. package/dist/modules/sections/index.js.map +1 -0
  111. package/dist/{src → modules}/sections/summarizing.js +11 -15
  112. package/dist/modules/sections/summarizing.js.map +1 -0
  113. package/dist/modules/sections/types/Contributor.js +3 -0
  114. package/dist/modules/sections/types/Contributor.js.map +1 -0
  115. package/dist/modules/sections/types/Group.js.map +1 -0
  116. package/dist/modules/sections/types/SectionSummary.js +3 -0
  117. package/dist/modules/sections/types/SectionSummary.js.map +1 -0
  118. package/dist/modules/sections/types/Sections.js.map +1 -0
  119. package/dist/modules/version/GitVersionManager.js +153 -0
  120. package/dist/modules/version/GitVersionManager.js.map +1 -0
  121. package/dist/modules/version/ReleaseManager.js +69 -0
  122. package/dist/modules/version/ReleaseManager.js.map +1 -0
  123. package/dist/modules/version/VersionManager.js +77 -0
  124. package/dist/modules/version/VersionManager.js.map +1 -0
  125. package/dist/modules/version/VersionValidator.js +31 -0
  126. package/dist/modules/version/VersionValidator.js.map +1 -0
  127. package/dist/modules/version/types/const.js +3 -0
  128. package/dist/modules/version/types/const.js.map +1 -0
  129. package/dist/modules/version/versionFormatter.js +104 -0
  130. package/dist/modules/version/versionFormatter.js.map +1 -0
  131. package/dist/modules/version/versionHelper.js +9 -0
  132. package/dist/modules/version/versionHelper.js.map +1 -0
  133. package/dist/src/cli/types/BranchCliArgs.js +3 -0
  134. package/dist/src/cli/types/BranchCliArgs.js.map +1 -0
  135. package/dist/src/cli/types/VersionCliArgs.js +3 -0
  136. package/dist/src/cli/types/VersionCliArgs.js.map +1 -0
  137. package/dist/src/config/defaults/config.json +231 -231
  138. package/dist/src/core/changelog/app.js +5 -4
  139. package/dist/src/core/changelog/app.js.map +1 -1
  140. package/dist/src/index.js +132 -14
  141. package/dist/src/index.js.map +1 -1
  142. package/dist/src/modules/changelog/templateOperations.js +37 -24
  143. package/dist/src/modules/changelog/templateOperations.js.map +1 -1
  144. package/dist/src/modules/git/commits/commitProcessor.js +2 -4
  145. package/dist/src/modules/git/commits/commitProcessor.js.map +1 -1
  146. package/dist/src/modules/git/commits/index.js +26 -26
  147. package/dist/src/modules/git/commits/index.js.map +1 -1
  148. package/dist/src/modules/git/commits/profileHandler.js +5 -2
  149. package/dist/src/modules/git/commits/profileHandler.js.map +1 -1
  150. package/dist/src/modules/git/context/branchHandler.js +4 -9
  151. package/dist/src/modules/git/context/branchHandler.js.map +1 -1
  152. package/dist/src/modules/git/context/commitHandler.js +9 -14
  153. package/dist/src/modules/git/context/commitHandler.js.map +1 -1
  154. package/dist/src/modules/git/context/index.js +5 -7
  155. package/dist/src/modules/git/context/index.js.map +1 -1
  156. package/dist/src/modules/git/context/remoteHandler.js +3 -8
  157. package/dist/src/modules/git/context/remoteHandler.js.map +1 -1
  158. package/dist/src/modules/git/context/statusHandler.js +3 -8
  159. package/dist/src/modules/git/context/statusHandler.js.map +1 -1
  160. package/dist/src/modules/git/context/tagHandler.js +3 -8
  161. package/dist/src/modules/git/context/tagHandler.js.map +1 -1
  162. package/dist/src/modules/git/gitOperations.js +10 -10
  163. package/dist/src/modules/git/gitOperations.js.map +1 -1
  164. package/dist/src/modules/git/utils/branchUtils.js +2 -4
  165. package/dist/src/modules/git/utils/branchUtils.js.map +1 -1
  166. package/dist/src/modules/git/utils/commitUtils.js +2 -4
  167. package/dist/src/modules/git/utils/commitUtils.js.map +1 -1
  168. package/dist/src/modules/git/utils/referenceUtils.js +9 -6
  169. package/dist/src/modules/git/utils/referenceUtils.js.map +1 -1
  170. package/dist/src/modules/git/utils/tagUtils.js +5 -4
  171. package/dist/src/modules/git/utils/tagUtils.js.map +1 -1
  172. package/dist/src/modules/sections/grouping.js +5 -5
  173. package/dist/src/modules/sections/grouping.js.map +1 -1
  174. package/dist/src/modules/sections/index.js.map +1 -1
  175. package/dist/src/modules/sections/summarizing.js +4 -4
  176. package/dist/src/modules/sections/summarizing.js.map +1 -1
  177. package/dist/src/templates/defaults/changelog.detailed.ejs +110 -110
  178. package/dist/src/templates/defaults/changelog.ejs +67 -67
  179. package/dist/src/utils/cmd.js +15 -0
  180. package/dist/src/utils/cmd.js.map +1 -1
  181. package/dist/templates/constants.js.map +1 -0
  182. package/dist/{src/modules/templates → templates}/defaults/changelog.detailed.ejs +110 -110
  183. package/dist/{src/modules/templates → templates}/defaults/changelog.ejs +67 -67
  184. package/dist/templates/templateRenderer.js.map +1 -0
  185. package/dist/templates/templateResolver.js.map +1 -0
  186. package/dist/{src → types}/PackageJson.js.map +1 -1
  187. package/dist/utils/cmd.js +42 -0
  188. package/dist/utils/cmd.js.map +1 -0
  189. package/dist/utils/date.js +20 -0
  190. package/dist/utils/date.js.map +1 -0
  191. package/package.json +64 -61
  192. package/dist/src/cli/types/ChnagelogCliArgs.js.map +0 -1
  193. package/dist/src/core/app-old.js +0 -35
  194. package/dist/src/core/app-old.js.map +0 -1
  195. package/dist/src/core/app.js +0 -19
  196. package/dist/src/core/app.js.map +0 -1
  197. package/dist/src/core/gitOperations.js +0 -95
  198. package/dist/src/core/gitOperations.js.map +0 -1
  199. package/dist/src/core/rangeOperations.js.map +0 -1
  200. package/dist/src/core/templateOperations.js +0 -157
  201. package/dist/src/core/templateOperations.js.map +0 -1
  202. package/dist/src/core/types/ChangeInformation.js.map +0 -1
  203. package/dist/src/core/types/Context.js.map +0 -1
  204. package/dist/src/core/types/RangeDetails.js.map +0 -1
  205. package/dist/src/core/types/RangeInfo.js.map +0 -1
  206. package/dist/src/core/types/ReferenceTypesEnum.js.map +0 -1
  207. package/dist/src/core/types/Repository.js.map +0 -1
  208. package/dist/src/git/commits/commitProcessor.js.map +0 -1
  209. package/dist/src/git/commits/gitLogFetcher.js.map +0 -1
  210. package/dist/src/git/commits/index.js +0 -136
  211. package/dist/src/git/commits/index.js.map +0 -1
  212. package/dist/src/git/commits/profileHandler.js.map +0 -1
  213. package/dist/src/git/commits/regexHandlers.js.map +0 -1
  214. package/dist/src/git/commits.js +0 -136
  215. package/dist/src/git/commits.js.map +0 -1
  216. package/dist/src/git/context/branchHandler.js +0 -23
  217. package/dist/src/git/context/branchHandler.js.map +0 -1
  218. package/dist/src/git/context/commitHandler.js +0 -30
  219. package/dist/src/git/context/commitHandler.js.map +0 -1
  220. package/dist/src/git/context/index.js.map +0 -1
  221. package/dist/src/git/context/remoteHandler.js.map +0 -1
  222. package/dist/src/git/context/statusHandler.js +0 -21
  223. package/dist/src/git/context/statusHandler.js.map +0 -1
  224. package/dist/src/git/context/tagHandler.js +0 -21
  225. package/dist/src/git/context/tagHandler.js.map +0 -1
  226. package/dist/src/git/context.js +0 -95
  227. package/dist/src/git/context.js.map +0 -1
  228. package/dist/src/git/types/Author.js.map +0 -1
  229. package/dist/src/git/types/BranchInfo.js.map +0 -1
  230. package/dist/src/git/types/CommitContent.js.map +0 -1
  231. package/dist/src/git/types/CommitInfo.js.map +0 -1
  232. package/dist/src/git/types/CommitType.js.map +0 -1
  233. package/dist/src/git/types/CommitType2.js +0 -3
  234. package/dist/src/git/types/CommitType2.js.map +0 -1
  235. package/dist/src/git/types/GitCommit.js.map +0 -1
  236. package/dist/src/git/types/GitContext.js +0 -3
  237. package/dist/src/git/types/GitContext.js.map +0 -1
  238. package/dist/src/git/types/LinkType-.js +0 -3
  239. package/dist/src/git/types/LinkType-.js.map +0 -1
  240. package/dist/src/git/types/Mention.js.map +0 -1
  241. package/dist/src/git/types/MentionType-.js +0 -3
  242. package/dist/src/git/types/MentionType-.js.map +0 -1
  243. package/dist/src/git/types/MentionType.js.map +0 -1
  244. package/dist/src/git/types/RemoteInfo.js.map +0 -1
  245. package/dist/src/git/types/StatusInfo.js.map +0 -1
  246. package/dist/src/git/types/TagInfo.js.map +0 -1
  247. package/dist/src/git/utils/branchUtils.js.map +0 -1
  248. package/dist/src/git/utils/commitUtils.js.map +0 -1
  249. package/dist/src/git/utils/logUtils.js.map +0 -1
  250. package/dist/src/git/utils/refUtils.js.map +0 -1
  251. package/dist/src/git/utils/referenceUtils.js.map +0 -1
  252. package/dist/src/git/utils/tagUtils.js.map +0 -1
  253. package/dist/src/main.js +0 -16
  254. package/dist/src/main.js.map +0 -1
  255. package/dist/src/modules/changes/types/RangeDetail.js +0 -3
  256. package/dist/src/modules/changes/types/RangeDetail.js.map +0 -1
  257. package/dist/src/modules/changes/types/RangeDetails.js +0 -3
  258. package/dist/src/modules/changes/types/RangeDetails.js.map +0 -1
  259. package/dist/src/modules/git/types/GitContext.js +0 -3
  260. package/dist/src/modules/git/types/GitContext.js.map +0 -1
  261. package/dist/src/modules/repository/types/Repository.js +0 -3
  262. package/dist/src/modules/repository/types/Repository.js.map +0 -1
  263. package/dist/src/modules/templates/constants.js.map +0 -1
  264. package/dist/src/modules/templates/templateRenderer.js.map +0 -1
  265. package/dist/src/modules/templates/templateResolver.js.map +0 -1
  266. package/dist/src/output/writer.js.map +0 -1
  267. package/dist/src/sections/contributors.js.map +0 -1
  268. package/dist/src/sections/grouping.js.map +0 -1
  269. package/dist/src/sections/index.js.map +0 -1
  270. package/dist/src/sections/summarizing.js.map +0 -1
  271. package/dist/src/sections/types/Contributor.js +0 -15
  272. package/dist/src/sections/types/Contributor.js.map +0 -1
  273. package/dist/src/sections/types/Group.js.map +0 -1
  274. package/dist/src/sections/types/SectionSummary.js +0 -13
  275. package/dist/src/sections/types/SectionSummary.js.map +0 -1
  276. package/dist/src/sections/types/Sections.js.map +0 -1
  277. package/dist/src/templates/index.js +0 -100
  278. package/dist/src/templates/index.js.map +0 -1
  279. package/dist/src/utils/git-utils.js +0 -279
  280. package/dist/src/utils/git-utils.js.map +0 -1
  281. package/dist/src/utils/helpers.js +0 -10
  282. package/dist/src/utils/helpers.js.map +0 -1
  283. /package/dist/{src/git → config}/types/CommitType.js +0 -0
  284. /package/dist/{src/git → config}/types/LinkType.js +0 -0
  285. /package/dist/{src/git → config}/types/MentionType.js +0 -0
  286. /package/dist/{src/core → modules/changes}/types/ChangeInformation.js +0 -0
  287. /package/dist/{src/core → modules/changes}/types/Context.js +0 -0
  288. /package/dist/{src/core → modules/changes}/types/ReferenceTypesEnum.js +0 -0
  289. /package/dist/{src → modules}/git/types/Author.js +0 -0
  290. /package/dist/{src → modules}/git/types/BranchInfo.js +0 -0
  291. /package/dist/{src → modules}/git/types/CommitContent.js +0 -0
  292. /package/dist/{src → modules}/git/types/CommitInfo.js +0 -0
  293. /package/dist/{src → modules}/git/types/GitCommit.js +0 -0
  294. /package/dist/{src → modules}/git/types/Link.js +0 -0
  295. /package/dist/{src → modules}/git/types/Mention.js +0 -0
  296. /package/dist/{src → modules}/git/types/Note.js +0 -0
  297. /package/dist/{src → modules}/git/types/RemoteInfo.js +0 -0
  298. /package/dist/{src/core → modules/git}/types/Repository.js +0 -0
  299. /package/dist/{src → modules}/git/types/StatusInfo.js +0 -0
  300. /package/dist/{src → modules}/git/types/TagInfo.js +0 -0
  301. /package/dist/{src → modules}/git/utils/logUtils.js +0 -0
  302. /package/dist/{src/core → modules/git/utils}/rangeOperations.js +0 -0
  303. /package/dist/{src → modules}/git/utils/refUtils.js +0 -0
  304. /package/dist/{src → modules}/sections/types/Group.js +0 -0
  305. /package/dist/{src → modules}/sections/types/Sections.js +0 -0
  306. /package/dist/{src/modules/templates → templates}/constants.js +0 -0
  307. /package/dist/{src/modules/templates → templates}/templateRenderer.js +0 -0
  308. /package/dist/{src/modules/templates → templates}/templateResolver.js +0 -0
  309. /package/dist/{src → types}/PackageJson.js +0 -0
@@ -1,232 +1,232 @@
1
- {
2
- "appName": "Git Release Manager",
3
- "output": "stdout",
4
- "tag": {
5
- "format": "^v(\\d+)\\.(\\d+)\\.(\\d+)(?:-([a-zA-Z0-9]+)\\.(\\d+))?$"
6
- },
7
- "channels": {
8
- "dev": {
9
- "title": "Development",
10
- "description": "Development channel is for testing new features and bug fixes before they are released to the public.",
11
- "branch": "dev",
12
- "prerelease": true
13
- },
14
- "alpha": {
15
- "title": "Alpha",
16
- "description": "Alpha channel is for testing new features and bug fixes before they are released to the public.",
17
- "branch": "test",
18
- "prerelease": true
19
- },
20
- "beta": {
21
- "title": "Beta",
22
- "description": "Beta channel is for testing new features and bug fixes before they are released to the public.",
23
- "branch": "test",
24
- "prerelease": true
25
- },
26
- "preview": {
27
- "title": "Preview",
28
- "description": "Preview channel is for testing new features and bug fixes before they are released to the public.",
29
- "branch": "release/*",
30
- "prerelease": true
31
- },
32
- "stable": {
33
- "title": "Stable",
34
- "description": "Stable channel is for the final release of new features and bug fixes.",
35
- "branch": "main",
36
- "prerelease": false
37
- }
38
- },
39
- "noteTypes": [
40
- {
41
- "sign": "!",
42
- "type": "breaking-change",
43
- "terms": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
44
- "title": "⚠️ BREAKING CHANGE",
45
- "order": 1
46
- },
47
- {
48
- "sign": "-",
49
- "type": "deprecate",
50
- "terms": ["DEPRECATE", "DEPRECATION"],
51
- "title": "📉 DEPRECATE",
52
- "order": 2
53
- },
54
- {
55
- "sign": "+",
56
- "type": "new",
57
- "terms": ["NEW"],
58
- "title": "🆕 NEW",
59
- "order": 3
60
- },
61
- {
62
- "sign": "~",
63
- "type": "change",
64
- "terms": ["CHANGE", "CHANGES"],
65
- "title": "🔄 CHANGE",
66
- "order": 4
67
- },
68
- {
69
- "sign": "*",
70
- "type": "highlight",
71
- "terms": ["HIGHLIGHT", "HIGHLIGHTS"],
72
- "title": "🌟 KEY HIGHLIGHTS",
73
- "order": 5
74
- },
75
- {
76
- "sign": "?",
77
- "type": "experimental",
78
- "terms": ["EXPERIMENTAL"],
79
- "title": "🔬 EXPERIMENTAL",
80
- "order": 6
81
- },
82
- {
83
- "sign": "",
84
- "type": "known-issue",
85
- "terms": ["KNOWN ISSUE", "KNOWN ISSUES", "ISSUE", "ISSUES"],
86
- "title": "🐛 KNOWN ISSUES"
87
- }
88
- ],
89
- "commitTypes": [
90
- {
91
- "type": "feature",
92
- "terms": ["feat"],
93
- "title": "✨ New Features & Enhancements",
94
- "order": 1
95
- },
96
- {
97
- "type": "bug-fix",
98
- "terms": ["fix"],
99
- "title": "🐞 Resolved Issues",
100
- "order": 2
101
- },
102
- {
103
- "type": "documentation",
104
- "terms": ["docs"],
105
- "title": "📚 Documentation",
106
- "order": 3
107
- },
108
- {
109
- "type": "style",
110
- "terms": ["style"],
111
- "title": "🎨 Code Style",
112
- "order": 4
113
- },
114
- {
115
- "type": "refactor",
116
- "terms": ["refactor"],
117
- "title": "♻️ Refactoring",
118
- "order": 5
119
- },
120
- {
121
- "type": "performance",
122
- "terms": ["perf"],
123
- "title": "🚀 Performance Improvements",
124
- "order": 6
125
- },
126
- {
127
- "type": "test",
128
- "terms": ["test"],
129
- "title": "🧪 Tests",
130
- "order": 7
131
- },
132
- {
133
- "type": "ci-cd",
134
- "terms": ["ci"],
135
- "title": "🔄 CI/CD",
136
- "order": 8
137
- },
138
- {
139
- "type": "chore",
140
- "terms": ["chore"],
141
- "title": "🔧 Codebase Maintenance and Updates",
142
- "order": 9
143
- }
144
- ],
145
- "linkTypes": [
146
- {
147
- "type": "basic",
148
- "sign": ["#"],
149
- "title": "Linked to"
150
- },
151
- {
152
- "type": "closed",
153
- "terms": ["Closes", "Closed"],
154
- "title": "Closed",
155
- "order": 1
156
- },
157
- {
158
- "type": "fixed",
159
- "terms": ["Fixes", "Fixed"],
160
- "title": "Fixed",
161
- "order": 2
162
- },
163
- {
164
- "type": "resolved",
165
- "terms": ["Resolves", "Resolved"],
166
- "title": "Resolved",
167
- "order": 3
168
- },
169
- {
170
- "type": "related",
171
- "terms": ["Related", "Related to"],
172
- "title": "Related to",
173
- "order": 4
174
- },
175
- {
176
- "type": "connects",
177
- "terms": ["Connects", "Connects to"],
178
- "title": "Connects to",
179
- "order": 5
180
- }
181
- ],
182
- "mentionTypes": [
183
- {
184
- "type": "co-authored-by",
185
- "terms": ["Co-authored-by"],
186
- "title": "Co-authored-by",
187
- "order": 1
188
- },
189
- {
190
- "type": "signed-off-by",
191
- "terms": ["Signed-off-by"],
192
- "title": "Signed Off By",
193
- "order": 2
194
- },
195
- {
196
- "type": "acked-by",
197
- "terms": ["Acked-by"],
198
- "title": "Acknowledged By",
199
- "order": 3
200
- },
201
- {
202
- "type": "reviewed-by",
203
- "terms": ["Reviewed-by"],
204
- "title": "Reviewed By",
205
- "order": 4
206
- },
207
- {
208
- "type": "helped-by",
209
- "terms": ["Helped-by"],
210
- "title": "Helped By",
211
- "order": 5
212
- }
213
- ],
214
- "fileGroups": {
215
- "Code": ["src/", "plugins/", "pkg/", "cmake/", "build/", "bin/", "sysmodules/", "modules/"],
216
- "Docs": ["docs/", ".github/", ".config/", ".vscode/", "README.md", "README.tr.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "CHANGELOG.md", "release.config.mjs"],
217
- "Tests": ["tests/", "data/", "cache/", "temp/", "drafts/", "log/"],
218
- "Configurations": ["config/", ".editorconfig", ".env", ".gitignore", ".gitmodules", ".gitattributes", ".golangci.yml", "Dockerfile", "Makefile", "CMakeLists.txt", "package.json", "package-lock.json", "t.txt"],
219
- "Assets": ["assets/", "dist/", "templates/"]
220
- },
221
- "allowedBranches": ["dev", "test", "release/*", "main"],
222
- "allowedChannels": ["beta", "rc", "alpha", "stable"],
223
- "options": {
224
- "commits": {
225
- "sort": "date"
226
- }
227
- },
228
- "helpers": {
229
- "groupBy": "function(array, key, config) { return array.reduce((result, item) => { const groupKey = key.split('.').reduce((acc, part) => acc && acc[part], item); if (!result[groupKey]) { const matchingType = config.commitTypes.find(ct => ct.terms.includes(groupKey)); const typeTitle = matchingType ? matchingType.title : 'Other Changes'; result[groupKey] = { title: typeTitle, items: [] }; } result[groupKey].items.push(item); return result; }, {}); }",
230
- "groupByNotes": "function(array, config, includeUnmatched = true) { return array.reduce((result, item) => { if (!item.notes || item.notes.length === 0) return result; item.notes.forEach(note => { const groupKey = note.type; const matchingType = config.noteTypes.find(nt => nt.type === groupKey); if (!matchingType && !includeUnmatched) return; if (!result[groupKey]) { const typeTitle = matchingType ? matchingType.title : groupKey; result[groupKey] = { title: typeTitle, items: [] }; } result[groupKey].items.push({ note, commit: item }); }); return result; }, {}); }"
231
- }
1
+ {
2
+ "appName": "Git Release Manager",
3
+ "output": "stdout",
4
+ "tag": {
5
+ "format": "^v(\\d+)\\.(\\d+)\\.(\\d+)(?:-([a-zA-Z0-9]+)\\.(\\d+))?$"
6
+ },
7
+ "channels": {
8
+ "dev": {
9
+ "title": "Development",
10
+ "description": "Development channel is for testing new features and bug fixes before they are released to the public.",
11
+ "branch": "dev",
12
+ "prerelease": true
13
+ },
14
+ "alpha": {
15
+ "title": "Alpha",
16
+ "description": "Alpha channel is for testing new features and bug fixes before they are released to the public.",
17
+ "branch": "test",
18
+ "prerelease": true
19
+ },
20
+ "beta": {
21
+ "title": "Beta",
22
+ "description": "Beta channel is for testing new features and bug fixes before they are released to the public.",
23
+ "branch": "test",
24
+ "prerelease": true
25
+ },
26
+ "preview": {
27
+ "title": "Preview",
28
+ "description": "Preview channel is for testing new features and bug fixes before they are released to the public.",
29
+ "branch": "release/*",
30
+ "prerelease": true
31
+ },
32
+ "stable": {
33
+ "title": "Stable",
34
+ "description": "Stable channel is for the final release of new features and bug fixes.",
35
+ "branch": "main",
36
+ "prerelease": false
37
+ }
38
+ },
39
+ "noteTypes": [
40
+ {
41
+ "sign": "!",
42
+ "type": "breaking-change",
43
+ "terms": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"],
44
+ "title": "⚠️ BREAKING CHANGE",
45
+ "order": 1
46
+ },
47
+ {
48
+ "sign": "-",
49
+ "type": "deprecate",
50
+ "terms": ["DEPRECATE", "DEPRECATION"],
51
+ "title": "📉 DEPRECATE",
52
+ "order": 2
53
+ },
54
+ {
55
+ "sign": "+",
56
+ "type": "new",
57
+ "terms": ["NEW"],
58
+ "title": "🆕 NEW",
59
+ "order": 3
60
+ },
61
+ {
62
+ "sign": "~",
63
+ "type": "change",
64
+ "terms": ["CHANGE", "CHANGES"],
65
+ "title": "🔄 CHANGE",
66
+ "order": 4
67
+ },
68
+ {
69
+ "sign": "*",
70
+ "type": "highlight",
71
+ "terms": ["HIGHLIGHT", "HIGHLIGHTS"],
72
+ "title": "🌟 KEY HIGHLIGHTS",
73
+ "order": 5
74
+ },
75
+ {
76
+ "sign": "?",
77
+ "type": "experimental",
78
+ "terms": ["EXPERIMENTAL"],
79
+ "title": "🔬 EXPERIMENTAL",
80
+ "order": 6
81
+ },
82
+ {
83
+ "sign": "",
84
+ "type": "known-issue",
85
+ "terms": ["KNOWN ISSUE", "KNOWN ISSUES", "ISSUE", "ISSUES"],
86
+ "title": "🐛 KNOWN ISSUES"
87
+ }
88
+ ],
89
+ "commitTypes": [
90
+ {
91
+ "type": "feature",
92
+ "terms": ["feat"],
93
+ "title": "✨ New Features & Enhancements",
94
+ "order": 1
95
+ },
96
+ {
97
+ "type": "bug-fix",
98
+ "terms": ["fix"],
99
+ "title": "🐞 Resolved Issues",
100
+ "order": 2
101
+ },
102
+ {
103
+ "type": "documentation",
104
+ "terms": ["docs"],
105
+ "title": "📚 Documentation",
106
+ "order": 3
107
+ },
108
+ {
109
+ "type": "style",
110
+ "terms": ["style"],
111
+ "title": "🎨 Code Style",
112
+ "order": 4
113
+ },
114
+ {
115
+ "type": "refactor",
116
+ "terms": ["refactor"],
117
+ "title": "♻️ Refactoring",
118
+ "order": 5
119
+ },
120
+ {
121
+ "type": "performance",
122
+ "terms": ["perf"],
123
+ "title": "🚀 Performance Improvements",
124
+ "order": 6
125
+ },
126
+ {
127
+ "type": "test",
128
+ "terms": ["test"],
129
+ "title": "🧪 Tests",
130
+ "order": 7
131
+ },
132
+ {
133
+ "type": "ci-cd",
134
+ "terms": ["ci"],
135
+ "title": "🔄 CI/CD",
136
+ "order": 8
137
+ },
138
+ {
139
+ "type": "chore",
140
+ "terms": ["chore"],
141
+ "title": "🔧 Codebase Maintenance and Updates",
142
+ "order": 9
143
+ }
144
+ ],
145
+ "linkTypes": [
146
+ {
147
+ "type": "basic",
148
+ "sign": ["#"],
149
+ "title": "Linked to"
150
+ },
151
+ {
152
+ "type": "closed",
153
+ "terms": ["Closes", "Closed"],
154
+ "title": "Closed",
155
+ "order": 1
156
+ },
157
+ {
158
+ "type": "fixed",
159
+ "terms": ["Fixes", "Fixed"],
160
+ "title": "Fixed",
161
+ "order": 2
162
+ },
163
+ {
164
+ "type": "resolved",
165
+ "terms": ["Resolves", "Resolved"],
166
+ "title": "Resolved",
167
+ "order": 3
168
+ },
169
+ {
170
+ "type": "related",
171
+ "terms": ["Related", "Related to"],
172
+ "title": "Related to",
173
+ "order": 4
174
+ },
175
+ {
176
+ "type": "connects",
177
+ "terms": ["Connects", "Connects to"],
178
+ "title": "Connects to",
179
+ "order": 5
180
+ }
181
+ ],
182
+ "mentionTypes": [
183
+ {
184
+ "type": "co-authored-by",
185
+ "terms": ["Co-authored-by"],
186
+ "title": "Co-authored-by",
187
+ "order": 1
188
+ },
189
+ {
190
+ "type": "signed-off-by",
191
+ "terms": ["Signed-off-by"],
192
+ "title": "Signed Off By",
193
+ "order": 2
194
+ },
195
+ {
196
+ "type": "acked-by",
197
+ "terms": ["Acked-by"],
198
+ "title": "Acknowledged By",
199
+ "order": 3
200
+ },
201
+ {
202
+ "type": "reviewed-by",
203
+ "terms": ["Reviewed-by"],
204
+ "title": "Reviewed By",
205
+ "order": 4
206
+ },
207
+ {
208
+ "type": "helped-by",
209
+ "terms": ["Helped-by"],
210
+ "title": "Helped By",
211
+ "order": 5
212
+ }
213
+ ],
214
+ "fileGroups": {
215
+ "Code": ["src/", "plugins/", "pkg/", "cmake/", "build/", "bin/", "sysmodules/", "modules/"],
216
+ "Docs": ["docs/", ".github/", ".config/", ".vscode/", "README.md", "README.tr.md", "CONTRIBUTING.md", "CODE_OF_CONDUCT.md", "CHANGELOG.md", "release.config.mjs"],
217
+ "Tests": ["tests/", "data/", "cache/", "temp/", "drafts/", "log/"],
218
+ "Configurations": ["config/", ".editorconfig", ".env", ".gitignore", ".gitmodules", ".gitattributes", ".golangci.yml", "Dockerfile", "Makefile", "CMakeLists.txt", "package.json", "package-lock.json", "t.txt"],
219
+ "Assets": ["assets/", "dist/", "templates/"]
220
+ },
221
+ "allowedBranches": ["dev", "test", "release/*", "main"],
222
+ "allowedChannels": ["beta", "rc", "alpha", "stable"],
223
+ "options": {
224
+ "commits": {
225
+ "sort": "date"
226
+ }
227
+ },
228
+ "helpers": {
229
+ "groupBy": "function(array, key, config) { return array.reduce((result, item) => { const groupKey = key.split('.').reduce((acc, part) => acc && acc[part], item); if (!result[groupKey]) { const matchingType = config.commitTypes.find(ct => ct.terms.includes(groupKey)); const typeTitle = matchingType ? matchingType.title : 'Other Changes'; result[groupKey] = { title: typeTitle, items: [] }; } result[groupKey].items.push(item); return result; }, {}); }",
230
+ "groupByNotes": "function(array, config, includeUnmatched = true) { return array.reduce((result, item) => { if (!item.notes || item.notes.length === 0) return result; item.notes.forEach(note => { const groupKey = note.type; const matchingType = config.noteTypes.find(nt => nt.type === groupKey); if (!matchingType && !includeUnmatched) return; if (!result[groupKey]) { const typeTitle = matchingType ? matchingType.title : groupKey; result[groupKey] = { title: typeTitle, items: [] }; } result[groupKey].items.push({ note, commit: item }); }); return result; }, {}); }"
231
+ }
232
232
  }
@@ -4,12 +4,13 @@ exports.run = run;
4
4
  const writer_1 = require("../../modules/output/writer");
5
5
  const templateOperations_1 = require("../../modules/changelog/templateOperations");
6
6
  async function run(options, config) {
7
- let templatePath = options.template || config.defaultTemplate;
7
+ let templatePath = options.template || config.template;
8
8
  let outputOpt = options.output || config.output;
9
- let fileData = '';
10
9
  try {
11
- fileData = await (0, templateOperations_1.renderChangelogTemplate)(templatePath, options, config);
12
- (0, writer_1.writeOutput)(fileData, outputOpt);
10
+ const fileData = await (0, templateOperations_1.renderChangelogTemplate)(templatePath, options, config);
11
+ if (fileData) {
12
+ (0, writer_1.writeOutput)(fileData, outputOpt);
13
+ }
13
14
  }
14
15
  catch (error) {
15
16
  console.error('Error getting git logs:', error);
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../src/core/changelog/app.ts"],"names":[],"mappings":";;AAKA,kBAYC;AAfD,wDAAyD;AACzD,mFAAoF;AAE7E,KAAK,UAAU,GAAG,CAAC,OAAyB,EAAE,MAAc;IAC/D,IAAI,YAAY,GAAG,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC,eAAe,CAAA;IAC7D,IAAI,SAAS,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAA;IAC/C,IAAI,QAAQ,GAAW,EAAE,CAAA;IAEzB,IAAI,CAAC;QACD,QAAQ,GAAG,MAAM,IAAA,4CAAuB,EAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;QACvE,IAAA,oBAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;IACpC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAA;QAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnB,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../src/core/changelog/app.ts"],"names":[],"mappings":";;AAKA,kBAcC;AAjBD,wDAAyD;AACzD,mFAAoF;AAE7E,KAAK,UAAU,GAAG,CAAC,OAAyB,EAAE,MAAc;IAC/D,IAAI,YAAY,GAAG,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAA;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAA;IAE/C,IAAI,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAA,4CAAuB,EAAC,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;QAE7E,IAAI,QAAQ,EAAE,CAAC;YACX,IAAA,oBAAW,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;QACpC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAA;QAC/C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACnB,CAAC;AACL,CAAC"}