We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f040f commit ac03e60Copy full SHA for ac03e60
bin/plugin/commands/since.js
@@ -101,6 +101,18 @@ exports.handler = async ( opt ) => {
101
}
102
103
104
+ // Update versions in Changelog and Upgrade Notices.
105
+ const readmeContentUpdated = readmeContent.replace(
106
+ /(^= )(n\.e\.x\.t)( =$)/gm,
107
+ function ( matches, before, next, after ) {
108
+ replacementCount++;
109
+ return before + version + after;
110
+ }
111
+ );
112
+ if ( readmeContent !== readmeContentUpdated ) {
113
+ fs.writeFileSync( readmeFile, readmeContentUpdated );
114
115
+
116
const commonMessage = `Using version ${ version } for ${ pluginSlug }: `;
117
if ( replacementCount > 0 ) {
118
log(
0 commit comments