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

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

内容简介: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》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

挑战编程

挑战编程

斯基纳 / 刘汝佳 / 2009-7 / 39.00元

《挑战编程:程序设计竞赛训练手册》分为14章,分别介绍在线评测系统的基本使用方法、数据结构、字符串、排序、算术与代数、组合数学、数论、回溯法、图遍历、图算法、动态规划、网格、几何,以及计算几何,并在附录中介绍了一些著名的程序设计竞赛以及相应的备赛建议与比赛技巧。每章的正文用十余页的篇幅覆盖了该领域最核心的概念和算法,然后给出八道可在线提交的完整编程挑战题目供读者练习。 全书内容紧凑、信息量大......一起来看看 《挑战编程》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器