diff --git a/index.js b/index.js index 9df4ad9..fad9f7c 100644 --- a/index.js +++ b/index.js @@ -168,7 +168,7 @@ module.exports = ({ app }) => { } function handleOneCommit (pr, dcoFailed) { - return `You only have one commit incorrectly signed off! To fix, first ensure you have a local copy of your branch by [checking out the pull request locally via command line](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally). Next, head to your local branch and run: \n\`\`\`bash\ngit commit --amend --signoff\n\`\`\`\nNow your commits will have your sign off. Next run \n\`\`\`bash\ngit push --force-with-lease origin ${pr.head.ref}\n\`\`\`` + return `You only have one commit incorrectly signed off! To fix, first ensure you have a local copy of your branch by [checking out the pull request locally via command line](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally). Next, head to your local branch and run: \n\`\`\`bash\ngit commit --amend --no-edit --signoff\n\`\`\`\nNow your commits will have your sign off. Next run \n\`\`\`bash\ngit push --force-with-lease origin ${pr.head.ref}\n\`\`\`` } function handleMultipleCommits (pr, commitLength, dcoFailed) { diff --git a/test/__snapshots__/index.test.js.snap b/test/__snapshots__/index.test.js.snap index 3fe5a79..c3d6585 100644 --- a/test/__snapshots__/index.test.js.snap +++ b/test/__snapshots__/index.test.js.snap @@ -26,7 +26,7 @@ Object { "output": Object { "summary": "You only have one commit incorrectly signed off! To fix, first ensure you have a local copy of your branch by [checking out the pull request locally via command line](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally). Next, head to your local branch and run: \`\`\`bash -git commit --amend --signoff +git commit --amend --no-edit --signoff \`\`\` Now your commits will have your sign off. Next run \`\`\`bash @@ -58,7 +58,7 @@ Object { "output": Object { "summary": "You only have one commit incorrectly signed off! To fix, first ensure you have a local copy of your branch by [checking out the pull request locally via command line](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally). Next, head to your local branch and run: \`\`\`bash -git commit --amend --signoff +git commit --amend --no-edit --signoff \`\`\` Now your commits will have your sign off. Next run \`\`\`bash