Skip to content

Commit 454e32a

Browse files
committed
ci: changelogs to detect breaking changes header
1 parent 13f39cd commit 454e32a

File tree

9 files changed

+103
-4
lines changed

9 files changed

+103
-4
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# [0.2.0](https://github.com/AriPerkkio/tutorialkit/compare/0.1.6...0.2.0) (2024-08-28)
2+
3+
4+
### Features
5+
6+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` ([#155](https://github.com/AriPerkkio/tutorialkit/issues/155)) ([e3c0fee](https://github.com/AriPerkkio/tutorialkit/commit/e3c0fee902a7bfc312fb01b30531209815d460c3))
7+
* simplify UnoCSS integration ([#270](https://github.com/AriPerkkio/tutorialkit/issues/270)) ([8d49ef8](https://github.com/AriPerkkio/tutorialkit/commit/8d49ef81272d84cbfa2c1a10742f01540fe3650c))
8+
9+
10+
### BREAKING CHANGES
11+
12+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` (#155)
13+
* simplify UnoCSS integration (#270)
14+
15+
16+
117
# [0.2.0](https://github.com/stackblitz/tutorialkit/compare/0.1.6...0.2.0) (2024-08-28)
218

319

packages/astro/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# [0.2.0](https://github.com/AriPerkkio/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/astro" (2024-08-28)
2+
3+
4+
### Features
5+
6+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` ([#155](https://github.com/AriPerkkio/tutorialkit/issues/155)) ([e3c0fee](https://github.com/AriPerkkio/tutorialkit/commit/e3c0fee902a7bfc312fb01b30531209815d460c3))
7+
* simplify UnoCSS integration ([#270](https://github.com/AriPerkkio/tutorialkit/issues/270)) ([8d49ef8](https://github.com/AriPerkkio/tutorialkit/commit/8d49ef81272d84cbfa2c1a10742f01540fe3650c))
8+
9+
10+
### BREAKING CHANGES
11+
12+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` (#155)
13+
* simplify UnoCSS integration (#270)
14+
15+
16+
117
# [0.2.0](https://github.com/stackblitz/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/astro" (2024-08-28)
218

319

packages/cli/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# [0.2.0](https://github.com/AriPerkkio/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/cli" (2024-08-28)
2+
3+
4+
### Features
5+
6+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` ([#155](https://github.com/AriPerkkio/tutorialkit/issues/155)) ([e3c0fee](https://github.com/AriPerkkio/tutorialkit/commit/e3c0fee902a7bfc312fb01b30531209815d460c3))
7+
* simplify UnoCSS integration ([#270](https://github.com/AriPerkkio/tutorialkit/issues/270)) ([8d49ef8](https://github.com/AriPerkkio/tutorialkit/commit/8d49ef81272d84cbfa2c1a10742f01540fe3650c))
8+
9+
10+
### BREAKING CHANGES
11+
12+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` (#155)
13+
* simplify UnoCSS integration (#270)
14+
15+
16+
117
# [0.2.0](https://github.com/stackblitz/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/cli" (2024-08-28)
218

319

packages/create-tutorial/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.0.3](https://github.com/AriPerkkio/tutorialkit/compare/0.1.6...0.0.3) "create-tutorial" (2024-08-28)
2+
3+
4+
15
## [0.0.3](https://github.com/stackblitz/tutorialkit/compare/0.1.6...0.0.3) "create-tutorial" (2024-08-28)
26

37

packages/react/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# [0.2.0](https://github.com/AriPerkkio/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/react" (2024-08-28)
2+
3+
4+
### Features
5+
6+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` ([#155](https://github.com/AriPerkkio/tutorialkit/issues/155)) ([e3c0fee](https://github.com/AriPerkkio/tutorialkit/commit/e3c0fee902a7bfc312fb01b30531209815d460c3))
7+
8+
9+
### BREAKING CHANGES
10+
11+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` (#155)
12+
13+
14+
115
# [0.2.0](https://github.com/stackblitz/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/react" (2024-08-28)
216

317

packages/runtime/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# [0.2.0](https://github.com/AriPerkkio/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/runtime" (2024-08-28)
2+
3+
4+
15
# [0.2.0](https://github.com/stackblitz/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/runtime" (2024-08-28)
26

37

packages/theme/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# [0.2.0](https://github.com/AriPerkkio/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/theme" (2024-08-28)
2+
3+
4+
### Features
5+
6+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` ([#155](https://github.com/AriPerkkio/tutorialkit/issues/155)) ([e3c0fee](https://github.com/AriPerkkio/tutorialkit/commit/e3c0fee902a7bfc312fb01b30531209815d460c3))
7+
* simplify UnoCSS integration ([#270](https://github.com/AriPerkkio/tutorialkit/issues/270)) ([8d49ef8](https://github.com/AriPerkkio/tutorialkit/commit/8d49ef81272d84cbfa2c1a10742f01540fe3650c))
8+
9+
10+
### BREAKING CHANGES
11+
12+
* rename `@tutorialkit/components-react` to `@tutorialkit/react` (#155)
13+
* simplify UnoCSS integration (#270)
14+
15+
16+
117
# [0.2.0](https://github.com/stackblitz/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/theme" (2024-08-28)
218

319

packages/types/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# [0.2.0](https://github.com/AriPerkkio/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/types" (2024-08-28)
2+
3+
4+
15
# [0.2.0](https://github.com/stackblitz/tutorialkit/compare/0.1.6...0.2.0) "@tutorialkit/types" (2024-08-28)
26

37

scripts/changelog/generate.mjs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,19 @@ export function generateChangelog(pkg, preset) {
4343
path: pkg.gitPath ?? pkg.path,
4444
};
4545

46-
const changelogStream = conventionalChangelog(options, context, gitRawCommitsOpts).on('error', (error) => {
47-
console.error(error.stack);
48-
process.exit(1);
49-
});
46+
// detect breaking change headers: https://github.com/conventional-changelog/conventional-changelog/issues/648#issuecomment-704867077
47+
const parserOptions = {
48+
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
49+
breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/,
50+
};
51+
52+
const changelogStream = conventionalChangelog(options, context, gitRawCommitsOpts, parserOptions).on(
53+
'error',
54+
(error) => {
55+
console.error(error.stack);
56+
process.exit(1);
57+
},
58+
);
5059

5160
const CHANGELOG_FILE = pkg.changelogPath;
5261

0 commit comments

Comments
 (0)