markuman.devops.gitlab_merge_request_comment (1.0.0) — module

write messages to gitlab merge requests

| "added in version" 1.0.0 of markuman.devops"

Authors: Markus Bergholz (@markuman)

Install collection

Install with ansible-galaxy collection install markuman.devops:==1.0.0


Add to requirements.yml

  collections:
    - name: markuman.devops
      version: 1.0.0

Description

write messages to gitlab merge requests.

works only if `CI_OPEN_MERGE_REQUESTS` is defined

it's designed to run inside gitlab ci/cd pipeline


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: post message
      markuman.scm.gitlab_merge_request_comment:
        api_url: gitlab.com
        comment: |
          Summary

          | some | table |
          | --- | --- |
          | yes | 🐧 |

Inputs

    
api_url:
    description:
    - Your gitlab url
    required: true
    type: str

comment:
    description:
    - Comment message.
    required: true
    type: str

api_token:
    description:
    - API Token.
    - If not provided, it's read from ENV ANSIBLE_GITLAB_API_TOKEN
    required: false
    type: str