diff --git a/dist/cli/index.js b/dist/cli/index.js index 43e9a46..c06fa48 100755 --- a/dist/cli/index.js +++ b/dist/cli/index.js @@ -171,7 +171,7 @@ class PullRequestConfigsParser extends configs_parser_1.default { } } const bodyPrefix = args.bodyPrefix ?? `**Backport:** ${originalPullRequest.htmlUrl}\r\n\r\n`; - const body = args.body ?? `${originalPullRequest.body}\r\n\r\nPowered by [BPer](https://github.com/lampajr/backporting).`; + const body = args.body ?? `${originalPullRequest.body}`; return { author: args.gitUser, title: args.title ?? `[${args.targetBranch}] ${originalPullRequest.title}`, @@ -181,8 +181,6 @@ class PullRequestConfigsParser extends configs_parser_1.default { targetRepo: originalPullRequest.targetRepo, sourceRepo: originalPullRequest.targetRepo, branchName: args.bpBranchName, - // nCommits: 0, // not needed, but required by the - // commits: [] // not needed }; } } diff --git a/dist/gha/index.js b/dist/gha/index.js index dce6400..55f3ce2 100755 --- a/dist/gha/index.js +++ b/dist/gha/index.js @@ -165,7 +165,7 @@ class PullRequestConfigsParser extends configs_parser_1.default { } } const bodyPrefix = args.bodyPrefix ?? `**Backport:** ${originalPullRequest.htmlUrl}\r\n\r\n`; - const body = args.body ?? `${originalPullRequest.body}\r\n\r\nPowered by [BPer](https://github.com/lampajr/backporting).`; + const body = args.body ?? `${originalPullRequest.body}`; return { author: args.gitUser, title: args.title ?? `[${args.targetBranch}] ${originalPullRequest.title}`, @@ -175,8 +175,6 @@ class PullRequestConfigsParser extends configs_parser_1.default { targetRepo: originalPullRequest.targetRepo, sourceRepo: originalPullRequest.targetRepo, branchName: args.bpBranchName, - // nCommits: 0, // not needed, but required by the - // commits: [] // not needed }; } } diff --git a/src/service/configs/pullrequest/pr-configs-parser.ts b/src/service/configs/pullrequest/pr-configs-parser.ts index 715433d..4052698 100644 --- a/src/service/configs/pullrequest/pr-configs-parser.ts +++ b/src/service/configs/pullrequest/pr-configs-parser.ts @@ -54,7 +54,7 @@ export default class PullRequestConfigsParser extends ConfigsParser { } const bodyPrefix = args.bodyPrefix ?? `**Backport:** ${originalPullRequest.htmlUrl}\r\n\r\n`; - const body = args.body ?? `${originalPullRequest.body}\r\n\r\nPowered by [BPer](https://github.com/lampajr/backporting).`; + const body = args.body ?? `${originalPullRequest.body}`; return { author: args.gitUser, @@ -65,8 +65,6 @@ export default class PullRequestConfigsParser extends ConfigsParser { targetRepo: originalPullRequest.targetRepo, sourceRepo: originalPullRequest.targetRepo, branchName: args.bpBranchName, - // nCommits: 0, // not needed, but required by the - // commits: [] // not needed }; } } \ No newline at end of file diff --git a/test/service/configs/pullrequest/pr-configs-parser.test.ts b/test/service/configs/pullrequest/pr-configs-parser.test.ts index fe5cd7e..fed7ee4 100644 --- a/test/service/configs/pullrequest/pr-configs-parser.test.ts +++ b/test/service/configs/pullrequest/pr-configs-parser.test.ts @@ -81,7 +81,7 @@ describe("pull request config parser", () => { url: undefined, htmlUrl: undefined, title: "[prod] PR Title", - body: "**Backport:** https://github.com/owner/reponame/pull/2368\r\n\r\nPlease review and merge\r\n\r\nPowered by [BPer](https://github.com/lampajr/backporting).", + body: "**Backport:** https://github.com/owner/reponame/pull/2368\r\n\r\nPlease review and merge", reviewers: ["gh-user", "that-s-a-user"], assignees: [], targetRepo: {