[英]Can I get the full pull request text in a Github merge commit?
Let's say I have a pull request on github. 假设我在github上有一个pull请求。 I've spent a tonne of time on it and so enter a long, meaningful description for the PR explaining exactly what happened and why: 我花了很多时间在上面,因此请为PR输入一个很长而有意义的描述,以确切说明发生的事情和原因:
Immanentises the eschaton.
This eschaton is righteously immanentised by to rapidly
frobnicating the plurglewhatsits.
I then merge the pull request and it's done. 然后,我合并拉请求,并完成。
Then, when I look at my git log, I see this: 然后,当我查看git日志时,会看到以下内容:
Merge pull request #19284 from davidgiven/whadjamacallit
Immanentises the eschaton.
Only the first line makes it into the merge commit; 仅第一行使其进入合并提交; the meaningful body which I put so much time into writing is lost. 我花了很多时间在写作上的有意义的东西丢失了。
(Yes, it's still available via Github, but it's not in the repository , which is what I care about.) (是的,它仍然可以通过Github获得,但是它不在存储库中 ,这是我关心的。)
Is there a way to configure github to copy the entire pull request description into the merge commit? 有没有一种方法可以配置github将整个请求请求描述复制到合并提交中?
Is there a way to configure github to copy the entire pull request description into the merge commit? 有没有一种方法可以配置github将整个请求请求描述复制到合并提交中?
No, as GitHub uses by default a git merge --log
, where aa shortlog of the commits being merged will be appended to the specified message. 不,因为GitHub默认情况下使用git merge --log
,其中要合并的提交的简短日志将附加到指定消息中。
That is a convention you would find on the repository for Git itself, where: 您会在Git本身的存储库中找到一个约定,其中:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.