Skip to content

Commit 3c50bb0

Browse files
committed
chore: testing lefthook
1 parent 2708afe commit 3c50bb0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,4 +434,4 @@ You can contribute just by submitting bugs or suggesting improvements by
434434

435435
## License
436436

437-
Licensed under [MIT License](LICENSE). © Luciano Mammino.
437+
Licensed under [MIT License](LICENSE). © Luciano Mammino.

lefthook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pre-commit:
22
parallel: true
33
commands:
4-
updateReadme:
5-
files: "src/openapi.yml scripts/updateReadme.ts"
4+
update-readme:
5+
glob: "{src/openapi.yml,scripts/updateReadme.ts}"
66
run: pnpm run update-readme

scripts/updateReadme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const docs = stdout
4040
.replace(/^## /g, '### ')
4141
.replace(/^# /g, '## ')
4242

43-
const newContent = `${before}<!-- openapi -->\n${docs}\n<!-- openapi -->\n${after}`
43+
const newContent = `${before}<!-- openapi -->\n${docs}\n<!-- openapi -->\n${after.trimEnd()}`
4444
await writeFile(readmePath, newContent)
4545

4646
console.log('Updated README.md')

0 commit comments

Comments
 (0)