CI_COMMIT_MESSAGE とは?
CI_COMMIT_MESSAGE は、パイプラインをトリガーしたコミットの完全なメッセージです。
CI_COMMIT_MESSAGE を読み取って、ジョブのスキップやリリースノートのパースなど、条件付きの挙動を制御できます。GitLab はメッセージ中の [skip ci] も尊重します。
CI のスキップ
コミットメッセージに [skip ci] または [ci skip] を含めると、GitLab にパイプラインをまったく実行しないよう指示します。
重要なポイント
- CI_COMMIT_MESSAGE は完全なコミットメッセージです。
[skip ci]はパイプラインをスキップします。- 条件ロジックのためにパースします。
関連ガイド
What Is a Conventional Commit?What is a conventional commit? An explainer on the structured commit message format, its type and scope prefi…
What Is CI_COMMIT_SHA?CI_COMMIT_SHA is the full commit hash that triggered a GitLab CI pipeline. Learn what it holds and how to use…
What Is CI_PIPELINE_SOURCE?CI_PIPELINE_SOURCE is how a GitLab CI pipeline was triggered: push, merge_request_event, schedule, and more.…