LoginSignup
4
2

More than 5 years have passed since last update.

Droneのビルドをスキップするコミットメッセージ

Last updated at Posted at 2016-10-12

Droneネタばかりですみません。小ネタですが、社内共有を兼ねて。

Documentを読んでいて、Build & TestのページにSkip Commitsという項があるのに気付きました。

Skip Commits

Instruct Drone to skip builds by by including any combination of ci and skip wrapped in square brackets in your commit message. Examples: [skip CI] [ci skip]

コミットメッセージの中に”ci”と”skip”という文字列が角括弧[]で囲われた形で含まれていたら、ビルドをスキップします。例:[skip CI] [ci skip]

コードのロジックに影響のない修正をした時にもビルドが走ってしまうため、気軽にremoteにpushできないことがあったので、これは地味に便利です。

[skip ci] remove old comments.

みたいなコミットメッセージにしておけば、共有しているCIのリソースを無駄に消費しないし、こまめにpushできるので精神衛生的にも良いですね。


この記事は2016.4.7にこちらのURLで公開していた内容を移行しました。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2