glab_create_command

in lib/gitlab/ci/build/releaser.rb [118:155]


        def glab_create_command(platform) 
          if platform == 'windows'
            command = GLAB_CREATE_WINDOWS.dup

            
            tag_name = config[:tag_name].presence || '$env:CI_COMMIT_TAG'
            ref = config[:ref].presence || '$env:CI_COMMIT_SHA'
          else
            command = GLAB_CREATE_UNIX.dup

            
            tag_name = config[:tag_name].presence || '$CI_COMMIT_TAG'
            ref = config[:ref].presence || '$CI_COMMIT_SHA'
          end

          command.concat(" \"#{tag_name}\"")
          command.concat(" --assets-links #{stringified_json(create_asset_links)}") if create_asset_links.present?
          command.concat(" --milestone \"#{config[:milestones].join(',')}\"") if config[:milestones].present?
          command.concat(" --name \"#{config[:name]}\"") if config[:name].present?

          if config[:description].present?
            
            command.concat(" --experimental-notes-text-or-file \"#{config[:description]}\"")
          end

          command.concat(" --ref \"#{ref}\"") if ref.present?
          command.concat(" --tag-message \"#{config[:tag_message]}\"") if config[:tag_message].present?
          command.concat(" --released-at \"#{config[:released_at]}\"") if config[:released_at].present?

          command.concat(" #{GLAB_NO_UPDATE_FLAG} #{GLAB_NO_CLOSE_MILESTONE_FLAG}")

          if catalog_publish? && ci_release_cli_catalog_publish_option?
            command.concat(" #{GLAB_PUBLISH_TO_CATALOG_FLAG}")
          end

          command.freeze
        end