Update the automatically generated changelog filename to include PR number (#41000)

This commit is contained in:
jonathansadowski 2023-10-25 23:53:17 +07:00 committed by GitHub
parent 30639a3878
commit 0d6dfb6d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ export const getPullRequestData = async (
const isCommunityPR = isCommunityPullRequest( prData, owner, name );
const headOwner = isCommunityPR ? prData.head.repo.owner.login : owner;
const branch = prData.head.ref;
const fileName = branch.replace( /\//g, '-' );
const fileName = `${ prNumber }-${ branch.replace( /\//g, '-' ) }`;
const prBody = prData.body;
const head = prData.head.sha;
const base = prData.base.sha;