add expected version to template warning (#46021)

* add expected version to template warning

* add changelog

* fix spacing for linting

* revert template change

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
This commit is contained in:
Ron Rennick 2024-04-04 13:47:10 -03:00 committed by GitHub
parent 3f74ef2009
commit 0849238776
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
add the expected template version to template bump warning

View File

@ -46,7 +46,7 @@ export const scanForTemplateChanges = async (
let lineNumber = 1;
let code = 'warning';
let message = 'This template may require a version bump!';
let message = `This template may require a version bump! Expected ${ version }`;
for ( const l in lines ) {
const line = lines[ l ];