xxxxxxxxxx
# this is single line comment.
#Also,
#Yaml Dosent Support multiline comments
#So you might have to comment multiple lines in this way
xxxxxxxxxx
# This is a comment in YAML!
deploy-prod:
stage: deploy
script:
- echo "test message"
# I was making a gitlab CI pipeline when I myself needed this info.
xxxxxxxxxx
In order to add comments to a YAML file, you simply have to use the # (hashtag symbol) at the start of the line.
Example:
# yaml.load(Quick brown fox jumped over the lazy dog.)