Skip to content

Commit faa7a9d

Browse files
authored
Merge pull request #5268 from IntersectMBO/nm/changelog-linting
Changelog linting
2 parents 95bf46b + 85fb9a0 commit faa7a9d

File tree

21 files changed

+1632
-1581
lines changed

21 files changed

+1632
-1581
lines changed

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
# from the repository's root to tell `git blame` to ignore
44
# the commits below.
55

6+
# Use different bullet characters for different list levels in CHANGELOGs
7+
# CommitDate: Thu Sep 4 22:48:33 2025 -0600
8+
dd81c3f9e2acd33e58911cff1688232fd3593680
9+
10+
# Fix formatting inconsistencies and errors in CHANGELOG files
11+
# CommitDate: Thu Sep 4 22:48:33 2025 -0600
12+
d91a32057ba6c0caa97a5282b652c36c8b6a601a
13+
614
# Apply `fourmolu` with `respectful: false`
715
# CommitDate: Mon May 12 14:08:08 2025 -0600
816
4b79a7a9fb54aabe567e2a4f83825616046f7ab3

.github/workflows/haskell.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,3 +645,25 @@ jobs:
645645
echo 'The diff must not contain any `undefined` values'
646646
false
647647
fi
648+
649+
changelog-lint:
650+
runs-on: ubuntu-latest
651+
652+
steps:
653+
- uses: actions/checkout@v4
654+
655+
- name: Install changelog linter
656+
run: |
657+
REPO=cardano-ledger-release-tool
658+
RELEASE=changelogs-0.1.0.0
659+
curl -sSfL "https://github.com/input-output-hk/$REPO/releases/download/$RELEASE/$REPO-Linux-x86_64.zip" -o $REPO.zip
660+
BINDIR=$HOME/.local/bin
661+
mkdir -p "$BINDIR"
662+
unzip $REPO.zip -d "$BINDIR"
663+
rm $REPO.zip
664+
echo "$BINDIR" >> $GITHUB_PATH
665+
666+
- name: Run linter
667+
run: |
668+
git ls-files '*CHANGELOG.md' | xargs -r changelogs --inplace
669+
git diff --exit-code

CHANGELOG.md

Lines changed: 472 additions & 460 deletions
Large diffs are not rendered by default.

eras/allegra/impl/CHANGELOG.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@
2727
## 1.7.0.0
2828

2929
* Add `DecCBOR` instances for:
30-
* `Timelock`
31-
* `AllegraTxAuxData`
32-
* `AllegraTxBody`
30+
- `Timelock`
31+
- `AllegraTxAuxData`
32+
- `AllegraTxBody`
3333
* Converted `CertState` to a type family
3434
* Made the fields of predicate failures and environments lazy
3535
* Add `Era era` constraint to `NoThunks` instance for `TimeLock`
3636
* Remove `Era era` constraint from:
37-
* `getRequireSignatureTimelock`
38-
* `getRequireAllOfTimelock`
39-
* `getRequireAnyOfTimelock`
40-
* `getRequireMOfTimelock`
41-
* `getTimeStartTimelock`
42-
* `getTimeExpireTimelock`
37+
- `getRequireSignatureTimelock`
38+
- `getRequireAllOfTimelock`
39+
- `getRequireAnyOfTimelock`
40+
- `getRequireMOfTimelock`
41+
- `getTimeStartTimelock`
42+
- `getTimeExpireTimelock`
4343
* Add `MemPack` instance for `Timelock`
4444
* Remove deprecated `AuxiliaryData` type synonym
4545
* Deprecate `Allegra` type synonym
@@ -64,24 +64,24 @@
6464
## 1.5.0.0
6565

6666
* Replace patterns within `Timelock` with `AllegraEraScript`- constrained ones:
67-
* `RequireTimeExpire`
68-
* `RequireTimeStart`
67+
- `RequireTimeExpire`
68+
- `RequireTimeStart`
6969
* Remove `Timelock` patterns:
70-
* `RequireSignature`
71-
* `RequireAllOf`
72-
* `RequireAnyOf`
73-
* `RequireMOf`
70+
- `RequireSignature`
71+
- `RequireAllOf`
72+
- `RequireAnyOf`
73+
- `RequireMOf`
7474
* Introduce `AllegraEraScript` class
7575
* Add `AllegraEraScript` and `ShelleyEraScript` instances for `AllegraEra`
7676
* Change signatures of `evalTimelock` and `validateTimelock`:
77-
* replace `Era` constraint with `AllegraEraScript`
78-
* replace `Timelock` with `NativeScript`
77+
- replace `Era` constraint with `AllegraEraScript`
78+
- replace `Timelock` with `NativeScript`
7979

8080
### testlib
8181

8282
* Change signatures of `Arbitrary` instances for `Timelock` and `AllegraTxAuxData era`:
83-
* replace `Era` constraint with `AllegraEraScript`
84-
* add `NativeScript era ~ Timelock era` constraint
83+
- replace `Era` constraint with `AllegraEraScript`
84+
- add `NativeScript era ~ Timelock era` constraint
8585

8686
## 1.4.1.0
8787

@@ -179,9 +179,9 @@
179179
## 1.1.1.0
180180

181181
* Add `TranslateEra` instances for:
182-
* `DState`
183-
* `PState`
184-
* `VState`
182+
- `DState`
183+
- `PState`
184+
- `VState`
185185

186186
## 1.1.0.0
187187

0 commit comments

Comments
 (0)