Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
12

Add a label to a GitLab merge request gitlab-mr-annotate

Add a comma-separated list of labels to a GitLab merge request.

arguments

  • GIT_CONTEXT - The name of the git provider context you can see on the integrations page.
  • LABELS - The comma separated list of labels you would like to apply to the merge request
  • MERGE_REQUEST_ID - The ID of the merge request. Optional (the default value is formed from Codefresh variables)
  • PROJECT_ID - The ID of the GitLab project. Optional (the default value is formed from Codefresh variables)
    AnnotateMR:
  type: gitlab-mr-annotate
  arguments:
    GIT_CONTEXT: '${{GIT_CONTEXT}}'
    LABELS: '${{LABELS}}'
    PROJECT_ID: '${{PROJECT_ID}}'
    MERGE_REQUEST_ID: '${{MERGE_REQUEST_ID}}'

  
github.com
Alex Kogan
Jul 4, 2021