Skip to content

Commit d4b287d

Browse files
authored
Merge branch 'main' into add-doi-to-bibtex-example
2 parents 8faed65 + ba08e8e commit d4b287d

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/tests-code.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,24 @@ jobs:
206206
- name: Lint CHANGELOG.md
207207
run: |
208208
# run heylogs verification
209-
jbang com.github.nbbrd.heylogs:heylogs-cli:0.11.1:bin check CHANGELOG.md > heylogs.txt || true
209+
jbang com.github.nbbrd.heylogs:heylogs-cli:0.14.1:bin check CHANGELOG.md > heylogs.txt || true
210210
211-
# improve output
212-
sed -i 's/all-h2-contain-a-version/all-h2-contain-a-version (ignored)/' heylogs.txt
211+
# ignore some errors
212+
grep -v no-empty-headings < heylogs.txt | grep -v all-h2-contain-a-version | tee heylogs.txt
213213
214-
cat heylogs.txt
214+
# exit 1 in case of an error
215+
remaining=$(
216+
grep -E " error " heylogx.txt \
217+
| wc -l
218+
)
215219
216-
# exit 1 in case of error
217-
# We have 1 "valid" issue in CHANGELOG.md
218-
grep -q "1 problem" heylogs.txt || exit 1
220+
echo "Remaining errors: $remaining"
219221
222+
# We have on acceptable error
223+
if [ "$remaining" -gt 1 ]; then
224+
echo "Failing because of $remaining remaining error(s)."
225+
exit 1
226+
fi
220227
changelog-unreleased-only:
221228
if: github.event_name == 'pull_request'
222229
name: CHANGELOG.md - only unreleased touched

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
1717

1818
### Changed
1919

20-
- Changed: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd> now opens the terminal in the active library directory (#14130)
2120
- `JabKit`: `--porcelain` does not output any logs to the console anymore. [#14244](https://github.com/JabRef/jabref/pull/14244)
21+
- <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd> now opens the terminal in the active library directory. [#14130](https://github.com/JabRef/jabref/issues/14130)
2222

2323
### Fixed
2424

0 commit comments

Comments
 (0)