2020-02-04-ci-skip-in-commit-title-bad

栏目: IT技术 · 发布时间: 5年前

内容简介:A common way to keep a specific commit from triggering a build on continuous integration services, such as travis and circle (maybe others) is to useIf the skip directive is put in the commit message's first line, which is treated as the commit messageWhen
title date categories tags

TIL: putting [ci skip] in the commit message title breaks merge builds

2020-02-04 13:04:05 -0600

git

git

CI

builds

merges

commit-messages

skip

A common way to keep a specific commit from triggering a build on continuous integration services, such as travis and circle (maybe others) is to use [ci skip] or [skip ci] in the commit message.

If the skip directive is put in the commit message's first line, which is treated as the commit message title , it can cause problems for merges down the line.

When the list of commits is included in a merge commit's message body, the skip directive shows up, which causes the merge build to be skipped as well.

bad commit message:

[ci skip] fix some typos

The directive will show up in the merge commit message body in the list of commits.

good commit message:

updated the README

- fixed some typos and broken links

[ci skip]

Only the title shows up in the merge commit message body, the skip directive does not.


以上所述就是小编给大家介绍的《2020-02-04-ci-skip-in-commit-title-bad》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

C语言名题精选百则技巧篇

C语言名题精选百则技巧篇

冼镜光 / 机械工业出版社 / 2005-7 / 44.00元

《C语言名题精选百则》(技巧篇)收集了100则C语言程序设计题,共分9类。第一类比较简单,主要希望读者了解到《C语言名题精选百则》(技巧篇)的题目、解法与其他书籍之间的差异;第二至六类分别是关于数字、组合数学或离散数学、查找、排序、字符串等方面的题目;第七类列出了一些不太容易归类的题目,如Buffon丢针问题、Dijkstra的三色旗问题等;第八类则收录了一些有趣的、娱乐性的题目,如魔方阵等;第九......一起来看看 《C语言名题精选百则技巧篇》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

在线进制转换器
在线进制转换器

各进制数互转换器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试