gruntwork-io / gruntwork-io/git-xargs

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

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
1.1k
Forks
75
PR merge metrics
No merged PRs in 30d

Description

**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`.

```hcl
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.