Skip to content

Commit e83b384

Browse files
committed
chore: setup automated changelog generation
- Fix changelog placeholder in .readme-template (use {{__PLUGIN_CHANGELOG__}}) - Configure generate-wp-readme to show 10 recent versions - Rename README.md to DEVELOPER.md to avoid conflicts with generated file - Update .distignore to exclude DEVELOPER.md instead of README.md
1 parent 18bf445 commit e83b384

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

.distignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ commitlint.config.js
2121
.husky/
2222
.readme-template
2323
CHANGELOG.md
24-
README.md
24+
DEVELOPER.md

.readme-template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ By using this plugin you agree with MONEI [Terms of Service](https://monei.com/l
103103

104104
== Changelog ==
105105

106-
{{__CHANGELOG__}}
106+
{{__PLUGIN_CHANGELOG__}}

.release-it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
}
2121
},
2222
"hooks": {
23-
"after:bump": "generate-wp-readme -m woocommerce-gateway-monei.php && git add readme.txt woocommerce-gateway-monei.php class-woocommerce-gateway-monei.php CHANGELOG.md README.md"
23+
"after:bump": "generate-wp-readme -m woocommerce-gateway-monei.php -l 10 && git add readme.txt woocommerce-gateway-monei.php class-woocommerce-gateway-monei.php CHANGELOG.md"
2424
}
2525
}
File renamed without changes.

0 commit comments

Comments
 (0)