There are times when you don’t want CircleCI (CCI) to build a trivial commit. Maybe it’s adding a note to the README or updating a log file. Not running a build can save container time for commits that actually need it. CCI covers this scenario by supporting the
[ci skip] or
[skip ci] “flags” in commit messages. However having to do this frequently will get annoying fast. Automate the process with a Git hook.
In this blog post, we’re going to create an automated build skipping feature using the
commit-msg Git hook.