Use tag? instead of tag to indicate that this is boolean

This commit is contained in:
Kamil Trzcinski 2015-10-13 17:00:55 +02:00
parent 7b5ab3ded5
commit 5807419519

View file

@ -261,7 +261,7 @@ module Ci
def predefined_variables def predefined_variables
variables = [] variables = []
variables << { key: :CI_BUILD_TAG, value: ref, public: true } if tag variables << { key: :CI_BUILD_TAG, value: ref, public: true } if tag?
variables << { key: :CI_BUILD_NAME, value: name, public: true } variables << { key: :CI_BUILD_NAME, value: name, public: true }
variables << { key: :CI_BUILD_STAGE, value: stage, public: true } variables << { key: :CI_BUILD_STAGE, value: stage, public: true }
variables << { key: :CI_BUILD_TRIGGERED, value: 'true', public: true } if trigger_request variables << { key: :CI_BUILD_TRIGGERED, value: 'true', public: true } if trigger_request