markuman.devops.gitea_pull_request_comment (1.0.0) — module

write messages to gitea pull 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 gitea pull requests.

works only if `CI_PULL_REQUEST` is defined

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


Requirements

Usage examples

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

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

Inputs

    
api_url:
    description:
    - URL of your gitea instance
    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_GITEA_API_TOKEN
    required: false
    type: str