简体   繁体   English

SubGit:将Git拉取请求描述用作SVN提交消息

[英]SubGit: Use Git Pull Request Description as SVN Commit Message

I see the option to define a custom SVN commit message with the configuration option svnCommitMessage using SubGit. 我看到使用SubGit使用配置选项svnCommitMessage定义自定义SVN提交消息的选项。

https://subgit.com/documentation/config-options.html Looking at this documentation, I don's see any ways to define this by pull request, though. https://subgit.com/documentation/config-options.html查看此文档,我看不到通过pull request定义此方法的任何方法。 I believe the options to be per individual commit. 我相信可以根据具体情况进行选择。 I'd ideally like my SVN message to be the pull request message. 理想情况下,我希望SVN消息成为请求请求消息。

Is this possible? 这可能吗? How? 怎么样?

At this time SVN Mirror add-on has no possibility to put pull request message into SVN commit message, all the "svnCommitMessage" placeholders are indeed related to individual commits. 目前,SVN Mirror附加组件无法将拉取请求消息放入SVN提交消息中,所有“ svnCommitMessage”占位符确实与单个提交有关。

Regarding the branch permissions -- note, that despite that "pull request only" permission changes from SVN will be written into the repository directly. 关于分支权限-注意,尽管有“仅拉请求”权限,但SVN的权限更改将直接写入存储库。

Honestly, I haven't completely understood your idea about squashing: if you are using "squash" merge strategy, then indeed all the commits will be squashed into a single commit and it will be translated to SVN, so only one commit will appear in the destination branch, but that commit message will not be the same as the pull request comment. 老实说,我还没有完全理解您对压缩的想法:如果您使用“压缩”合并策略,那么实际上所有提交都将被压缩为一个提交,并将其转换为SVN,因此在其中仅出现一个提交。目标分支,但该提交消息将与拉取请求注释不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM