github-merge-pr: remove newline on removing SoB from committer
[maintainer-tools.git] / github-merge-pr.sh
index 64cd6bff1046c236d4f4c0e0ba0fa0b240653490..16a661d2fb4fb28406ddb825e651be2015f526aa 100755 (executable)
@@ -137,7 +137,7 @@ if [ "$(echo "$PR_INFO" | jq -r ".maintainer_can_modify")" == "true" ]; then
 
        # Remove any previous SoB tag if the Pull Request Author and Committer match
        if ! $GIT filter-repo --message-callback "
-               return message.replace(b\"Signed-off-by: $(git config user.name) <$(git config user.email)>\",b\"\")
+               return message.replace(b\"Signed-off-by: $(git config user.name) <$(git config user.email)>\n\",b\"\")
        " --refs $BRANCH..$LOCAL_PR_BRANCH --force; then
                echo "Failed to remove previous Committer SoB tag" >&2
                exit 9