在 #27486 (评论) 中,我尝试为 Go 1.11 设置一个回溯问题。然而,显然是因为我在理由中提到了“从 1.9 或 1.10”,gopherbot
也为 1.10 构建了一个回溯问题。
我认为我们应该让 gopherbot
忽略那些在注解中与第一个版本之间用除逗号之外的任何标点符号分隔的版本。(但是,我们应该小心不要在作为版本字符串一部分的句号之后停止。)
例如:@gopherbot, p—— backport to Go 1.11: this is a regression from 1.9.
应该仅回溯到 1.11。@gopherbot, p—— backport to Go 1.11, and possibly 1.10: this is a bad runtime bug.
应该同时回溯到 1.11 和 1.10。
(CC @FiloSottile)
6条答案
按热度按时间iqxoj9l91#
为了简化这个过程,可以考虑将gopherbot查找请求的范围限制在提到3个关键词的段落(
@gopherbot
,please
,backport
)。可以通过查找"
"序列来将注解分割成单独的段落。例如,这个评论有三个段落(不包括底部的编辑)。
这足以帮助解决#34878(评论)问题。
**编辑:**在#38122(评论)中又出现了一次。上面的建议在那里也适用。
**编辑:**在#39635(评论)中又出现了一次。/cc @ianlancetaylor
**编辑:**在#44463中也出现了一次。
**编辑:**对于#44884也适用。
exdqitrt2#
See issue #41012 for another occurrence. /cc @toothrot@cagedmantis@andybons
Until this issue is resolved, one possible workaround is to embed a zero-width space () in Go versions that need to be mentioned but should not be considered for backport.
3duebb1j3#
一种可能的解决方法是在两个单词之间插入一个零宽度空格。难点在于记住要这样做。
vddsk6oq4#
在#44884中再次遇到这个问题。
tpxzln5u5#
The difficult part of that is remembering
separated from the first version in the comment by any punctuation other than a comma. (However, we should be careful not to stop after a period that appears as part of a version string.)
All that seems hard to remember. It looks like the suggestion in #27489 (comment) to split by paragraphs is easier to remember and works for almost all instances of this issue. I'll retitle the issue to be about that.
3b6akqbq6#
在#45332(评论)(@jayconrod)中发生的另一个事件:
... 请将此功能回退到1.16版本。我们计划恢复到1.15版本的行为。