You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit the file to document your changes with a bump type in the frontmatter:
98
98
99
99
```markdown
100
+
---
101
+
bump: minor
102
+
---
103
+
100
104
### Added
101
105
- Description of new feature
102
106
103
107
### Fixed
104
108
- Description of bug fix
105
109
```
106
110
107
-
**Why fragments?** This prevents merge conflicts in CHANGELOG.md when multiple PRs are open simultaneously.
111
+
**Why fragments?** This prevents merge conflicts in CHANGELOG.md when multiple PRs are open simultaneously. The bump type (`major`, `minor`, or `patch`) in the frontmatter enables automatic version bumping during release.
Each fragment should contain relevant sections. Use the appropriate sections:
18
+
Each fragment should include a **frontmatter section** specifying the version bump type:
19
19
20
20
```markdown
21
+
---
22
+
bump: patch
23
+
---
24
+
25
+
### Fixed
26
+
- Description of bug fix
27
+
```
28
+
29
+
### Bump Types
30
+
31
+
Use semantic versioning bump types in the frontmatter:
32
+
33
+
-**`major`**: Breaking changes (incompatible API changes)
34
+
-**`minor`**: New features (backward compatible)
35
+
-**`patch`**: Bug fixes (backward compatible)
36
+
37
+
### Content Categories
38
+
39
+
Use these categories in your fragment content:
40
+
41
+
```markdown
42
+
---
43
+
bump: minor
44
+
---
45
+
21
46
### Added
22
47
- Description of new feature
23
48
@@ -37,15 +62,74 @@ Each fragment should contain relevant sections. Use the appropriate sections:
37
62
- Description of security fix
38
63
```
39
64
65
+
## Examples
66
+
67
+
### Adding a new feature (minor bump)
68
+
69
+
```markdown
70
+
---
71
+
bump: minor
72
+
---
73
+
74
+
### Added
75
+
- New async processing mode for batch operations
76
+
```
77
+
78
+
### Fixing a bug (patch bump)
79
+
80
+
```markdown
81
+
---
82
+
bump: patch
83
+
---
84
+
85
+
### Fixed
86
+
- Fixed memory leak in connection pool handling
87
+
```
88
+
89
+
### Breaking change (major bump)
90
+
91
+
```markdown
92
+
---
93
+
bump: major
94
+
---
95
+
96
+
### Changed
97
+
- Renamed `process()` to `process_async()` - this is a breaking change
98
+
99
+
### Removed
100
+
- Removed deprecated `legacy_mode` option
101
+
```
102
+
40
103
## Why Fragments?
41
104
42
105
Using changelog fragments (similar to [Changesets](https://github.com/changesets/changesets) in JavaScript and [Scriv](https://scriv.readthedocs.io/) in Python):
43
106
44
107
1.**No merge conflicts**: Multiple PRs can add fragments without conflicts
45
108
2.**Per-PR documentation**: Each PR documents its own changes
46
-
3.**Automated collection**: Fragments are automatically collected during release
0 commit comments