lib/release_tools/deployments/deployment_version_parser.rb
# The regular expression to use for extracting the name of a deployed tag.
The regular expression to use for extracting the name of a deployed tag.
The regular expression to use for extracting the name of a deployed tag .
def deployment_from_version(version)
        matches = version.match(Qa::Ref::AUTO_DEPLOY_TAG_REGEX)
        return unless matches && matches[:commit]
        sha = fetch_complete_sha(matches[:commit])
        ref = GitlabClient.first_successful_auto_deployment_pipeline(
          Project::GitlabEe.canonical_or_security_path,
          sha
        )&.ref
        DeploymentVersion.new(sha, ref || DEFAULT_REF, false)
      end
def deployment_from_version ( version ) matches = version . match ( Qa :: Ref :: AUTO_DEPLOY_TAG_REGEX ) return unless matches && matches [ :commit ] sha = fetch_complete_sha ( matches [ :commit ] ) ref = GitlabClient . first_successful_auto_deployment_pipeline ( Project :: GitlabEe . canonical_or_security_path , sha ) &. ref DeploymentVersion . new ( sha , ref || DEFAULT_REF , false ) end
The regular expression to use for extracting the name of a deployed tag.
The regular expression to use for extracting the name of a deployed tag .
version