Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Readme.txt Link to changelog instead of adding it inline #19761

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bin/commander.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const uuid = require( 'uuid/v4' );
const gitRepoOwner = 'WordPress';
const gitRepoURL = 'https://github.com/' + gitRepoOwner + '/gutenberg.git';
const svnRepoURL = 'https://plugins.svn.wordpress.org/gutenberg';
const releasePageURLPrefix = 'https://github.com/WordPress/gutenberg/releases/tag/';

// Working Directories
const gitWorkingDirectoryPath = path.join( os.tmpdir(), uuid() );
Expand Down Expand Up @@ -392,7 +393,7 @@ async function runBumpPluginVersionAndCommitStep( version, changelog, abortMessa
const newReadmeContent =
readmeFileContent.substr( 0, readmeFileContent.indexOf( '== Changelog ==' ) ) +
'== Changelog ==\n\n' +
changelog + '\n';
`To read the changelog for Gutenberg ${ version }, please navigate to the <a href="${ releasePageURLPrefix }v${ version }">release page</a>.` + '\n';
fs.writeFileSync( readmePath, newReadmeContent );

// Update the content of the changelog.txt file
Expand Down