lib/release_tools/deployments/merge_request_labeler.rb
def label_merge_requests(environment, deployments)
        workflow_label = DEPLOYMENT_LABELS[environment]

        unless workflow_label
          logger.warn(
            'Not updating merge requests as there is no workflow label for this environment',
            environment: environment
          )

          return
        end

        logger.info(
          'Adding workflow label to deployed merge requests',
          environment: environment,
          label: workflow_label
        )

        MergeRequestUpdater
          .for_successful_deployments(deployments)
          .add_label(workflow_label)
      end
# environment - The name of the environment that was deployed to.
# deployments - An Array of `DeploymentTrackes::Deployment` instances,
#               containing data about a deployment.
The name of the environment that was deployed to.
deployments - An Array of `DeploymentTrackes::Deployment` instances,
containing data about a deployment.
The name of the environment that was deployed to . deployments - An Array of ` DeploymentTrackes :: Deployment ` instances containing data about a deployment .
def label_merge_requests(environment, deployments)
        workflow_label = DEPLOYMENT_LABELS[environment]
        unless workflow_label
          logger.warn(
            'Not updating merge requests as there is no workflow label for this environment',
            environment: environment
          )
          return
        end
        logger.info(
          'Adding workflow label to deployed merge requests',
          environment: environment,
          label: workflow_label
        )
        MergeRequestUpdater
          .for_successful_deployments(deployments)
          .add_label(workflow_label)
      end
def label_merge_requests ( environment , deployments ) workflow_label = DEPLOYMENT_LABELS [ environment ] unless workflow_label logger . warn ( 'Not updating merge requests as there is no workflow label for this environment' , environment : environment ) return end logger . info ( 'Adding workflow label to deployed merge requests' , environment : environment , label : workflow_label ) MergeRequestUpdater . for_successful_deployments ( deployments ) . add_label ( workflow_label ) end
environment - The name of the environment that was deployed to.
environment - The name of the environment that was deployed to .
environment
deployments