Skip to content

Commit c4d33f7

Browse files
committed
remove release message from pr body
1 parent 8b8c782 commit c4d33f7

File tree

4 files changed

+4
-15
lines changed

4 files changed

+4
-15
lines changed

dist/index.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -21227,11 +21227,8 @@ function pushChangesToRemote(branchName) {
2122721227
});
2122821228
}
2122921229
exports.pushChangesToRemote = pushChangesToRemote;
21230-
function makePRBody(releaseNotes, publishedAt, releaseUrl) {
21230+
function makePRBody(publishedAt, releaseUrl) {
2123121231
return `This PR migrates the project to the latest stable version of NX.
21232-
21233-
**NX Release Notes:**
21234-
${releaseNotes}
2123521232

2123621233
**Published:**
2123721234
${publishedAt}
@@ -21381,7 +21378,7 @@ function run() {
2138121378
yield (0, git_1.pushChangesToRemote)(branchName);
2138221379
core.info(`Pushed changes to origin/${branchName}`);
2138321380
core.debug('Creating Pull Request...');
21384-
const { data: newPr } = yield octokit.rest.pulls.create(Object.assign(Object.assign({}, github.context.repo), { title: inputs.prTitle.replace('$VERSION', latestNxVersion), body: (0, git_1.makePRBody)(latestNxGHRelease.body || 'No release notes', latestNxGHRelease.created_at, latestNxGHRelease.html_url), head: branchName, base: 'main' }));
21381+
const { data: newPr } = yield octokit.rest.pulls.create(Object.assign(Object.assign({}, github.context.repo), { title: inputs.prTitle.replace('$VERSION', latestNxVersion), body: (0, git_1.makePRBody)(latestNxGHRelease.created_at, latestNxGHRelease.html_url), head: branchName, base: 'main' }));
2138521382
core.info(`Pull Request created: ${newPr.issue_url}`);
2138621383
core.setOutput('prId', newPr.number);
2138721384
}

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/git.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,8 @@ export async function pushChangesToRemote(branchName: string): Promise<void> {
1616
await exec(`git push --force-with-lease -u origin ${branchName}`)
1717
}
1818

19-
export function makePRBody(
20-
releaseNotes: string,
21-
publishedAt: string,
22-
releaseUrl: string
23-
): string {
19+
export function makePRBody(publishedAt: string, releaseUrl: string): string {
2420
return `This PR migrates the project to the latest stable version of NX.
25-
26-
**NX Release Notes:**
27-
${releaseNotes}
2821
2922
**Published:**
3023
${publishedAt}

src/main.ts

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ async function run(): Promise<void> {
6969
...github.context.repo,
7070
title: inputs.prTitle.replace('$VERSION', latestNxVersion),
7171
body: makePRBody(
72-
latestNxGHRelease.body || 'No release notes',
7372
latestNxGHRelease.created_at,
7473
latestNxGHRelease.html_url
7574
),

0 commit comments

Comments
 (0)