Skip to content

Commit 624799d

Browse files
committed
setup scriv for changelog management
1 parent e4fab9e commit 624799d

File tree

28 files changed

+213
-56
lines changed

28 files changed

+213
-56
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ need to delete branch created in `cardano-haskell-packages`.
296296

297297
* First run `./script/release-to-chap.sh -r` to see which changes can be
298298
published.
299-
* Update versions in `*.cabal` files according to changes in `CHANGELOG.md`
300-
files.
301-
* Update `CHANGELOG.md` files.
299+
* Update versions in `*.cabal` files according to changelog fragments in `changelog.d` directory
300+
(using `scriv print` might be helpful to see the changes).
301+
* Collect `CHANGELOG.md` using `scriv collect` (available in `nix develop`)
302302
* Run `./script/release-to-chap.sh` which will create a branch in
303303
`cardano-haskell-packages` repo (pointed by `CARDANO_HASKELL_PACKAGES_DIR`
304304
environment variable or `/tmp/chap` if it's not defined).

acts-generic/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Revision history for acts-generic
1+
# acts-generic changelog
2+
3+
<!-- scriv-end-here -->
24

35
## 0.1.0.0 -- YYYY-mm-dd
46

acts-generic/changelog.d/scriv.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[scriv]
2+
format = md
3+
insert_marker = Changelog entries
4+
md_header_level = 2
5+
version = literal: acts-generic.cabal: version
6+
categories = Breaking, Non-Breaking
7+
end_marker = scriv-end-here
8+
fragment_directory = changelog.d
9+
ghrel_template = {{body}}
10+
main_branches = main
11+
new_fragment_template = file: new_fragment.${config:format}.j2
12+
output_file = CHANGELOG.${config:format}
13+
skip_fragments = README.*
14+
entry_title_template = {%% if version %%}{{ version }} -- {%% endif %%}{{ date.strftime('%%Y-%%m-%%d') }}

cardano-client/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# Revision history for cardano-client
1+
# cardano-client changelog
22

3-
## next release
4-
5-
### Breaking changes
6-
7-
### Non-breaking changes
3+
<!-- scriv-end-here -->
84

95
## 0.6.0.0 -- 2025-06-28
106

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[scriv]
2+
format = md
3+
insert_marker = Changelog entries
4+
md_header_level = 2
5+
version = literal: cardano-client.cabal: version
6+
categories = Breaking, Non-Breaking
7+
end_marker = scriv-end-here
8+
fragment_directory = changelog.d
9+
ghrel_template = {{body}}
10+
main_branches = main
11+
new_fragment_template = file: new_fragment.${config:format}.j2
12+
output_file = CHANGELOG.${config:format}
13+
skip_fragments = README.*
14+
entry_title_template = {%% if version %%}{{ version }} -- {%% endif %%}{{ date.strftime('%%Y-%%m-%%d') }}

cardano-ping/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
# Revision history for cardano-ping
1+
# cardano-ping changelog
22

3-
## next version
4-
5-
### Breaking changes
6-
7-
### Non-breaking changes
3+
<!-- scriv-end-here -->
84

95
## 0.9.0.0 -- 2026-06-28
106

cardano-ping/changelog.d/scriv.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[scriv]
2+
format = md
3+
insert_marker = Changelog entries
4+
md_header_level = 2
5+
version = literal: cardano-ping.cabal: version
6+
categories = Breaking, Non-Breaking
7+
end_marker = scriv-end-here
8+
fragment_directory = changelog.d
9+
ghrel_template = {{body}}
10+
main_branches = main
11+
new_fragment_template = file: new_fragment.${config:format}.j2
12+
output_file = CHANGELOG.${config:format}
13+
skip_fragments = README.*
14+
entry_title_template = {%% if version %%}{{ version }} -- {%% endif %%}{{ date.strftime('%%Y-%%m-%%d') }}

dmq-node/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Revision history for decentralized-message-queue
1+
# dmq-node changelog
2+
3+
<!-- scriv-end-here -->
24

35
## 0.1.0.0 -- YYYY-mm-dd
46

dmq-node/changelog.d/scriv.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[scriv]
2+
format = md
3+
insert_marker = Changelog entries
4+
md_header_level = 2
5+
version = literal: dmq-node.cabal: version
6+
categories = Breaking, Non-Breaking
7+
end_marker = scriv-end-here
8+
fragment_directory = changelog.d
9+
ghrel_template = {{body}}
10+
main_branches = main
11+
new_fragment_template = file: new_fragment.${config:format}.j2
12+
output_file = CHANGELOG.${config:format}
13+
skip_fragments = README.*
14+
entry_title_template = {%% if version %%}{{ version }} -- {%% endif %%}{{ date.strftime('%%Y-%%m-%%d') }}

monoidal-synchronisation/CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# Revision history for monoidal-synchronisation
1+
# monoidal-synchronisation changelog
22

3-
## next version
3+
<!-- scriv-end-here -->
44

55
## 0.1.0.6 - 2024-08-07
66

7-
### Breaking changes
8-
97
### Non-breaking changes
108

119
* Make it build with ghc-9.10

0 commit comments

Comments
 (0)