gruntwork-io / git-xargs

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
https://blog.gruntwork.io/introducing-git-xargs-an-open-source-tool-to-update-multiple-github-repos-753f9f3675ec
Apache License 2.0
933 stars 63 forks source link

The name of the Pull Request have the description when it's provided #63

Open marciorgb opened 2 years ago

marciorgb commented 2 years ago

Describe the bug

When using the git-xargs with a very big commit message, that includes \n characters (to create the description) the name the PR seems to ignore the \n.

I think the title should be only the name of the commit, and the description should be out of the title.

To Reproduce

Run the command of git-xargs with a very big commit message, that includes \n.

git-xargs --skip-archived-repos --loglevel DEBUG --dry-run --repo=foo/bar --branch-name \"branch/change_x_y_z\" --commit-message "Add x y z\n**X:** is to allow this\n **Y:** is to allow that\n **Z:** idk\n> OK this comment shouldn't appear in the PR name" python main.py

Expected behavior

The title of the PR for the command above should be: "Add x y z"

Nice to have

Screen Shot 2021-12-08 at 16 19 43 Screen Shot 2021-12-08 at 16 20 57