foxygoat / git-scripts

0 stars 1 forks source link

Use PR title for merge commit title #16

Closed camh- closed 4 years ago

camh- commented 4 years ago

git-pr-merge currently uses the branch name as the merge commit title. Branch names are never that descriptive so the titles are often not that good.

Use the PR title for the merge commit title instead in the form:

[gitmoji] merge: <pr-title> (#<pr-num>)

Also add a trailer to the commit message of the form:

Pull-Request: <pr-url>

so a git commit references the PR properly from outside the github UI.

camh- commented 4 years ago

Dropping the "merge: " from the title and adding a line above the commit list saying it is a merge.