Update the automatically generated changelog filename to include PR number (#41000)
This commit is contained in:
parent
30639a3878
commit
0d6dfb6d3d
|
@ -22,7 +22,7 @@ export const getPullRequestData = async (
|
||||||
const isCommunityPR = isCommunityPullRequest( prData, owner, name );
|
const isCommunityPR = isCommunityPullRequest( prData, owner, name );
|
||||||
const headOwner = isCommunityPR ? prData.head.repo.owner.login : owner;
|
const headOwner = isCommunityPR ? prData.head.repo.owner.login : owner;
|
||||||
const branch = prData.head.ref;
|
const branch = prData.head.ref;
|
||||||
const fileName = branch.replace( /\//g, '-' );
|
const fileName = `${ prNumber }-${ branch.replace( /\//g, '-' ) }`;
|
||||||
const prBody = prData.body;
|
const prBody = prData.body;
|
||||||
const head = prData.head.sha;
|
const head = prData.head.sha;
|
||||||
const base = prData.base.sha;
|
const base = prData.base.sha;
|
||||||
|
|
Loading…
Reference in New Issue