inktrap / sloth-ci.validators.gitea

Currently untested validator for sloth ci, based on existing validators for gitlab/github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sloth-ci.validators.gitea

Sloth CI validator for Gitea push events.

Installation

$ pip install sloth-ci.validators.gitea

Usage

Gitea sends the same payload data as GitHub. The secret field is not specified, because it will be removed soon-ish. To quote the page about webhooks:

WARNING: The secret field in the payload is deprecated as of Gitea 1.13.0 and will be removed in 1.14.0: go-gitea/gitea#11755

TODO: ipv6?

            - 2a03:4000:4c:e24:85e:10ff:fef8:a405
provider:
    gitea:
        # Repository owner. Mandatory parameter.
        owner: moigagoo

        # Whitelisted Gitea server IPs. Mandatory parameter.
        # This is only codeberg.org and localhost by default
        # but must be extended if you self-host Gitea somewhere else
        trusted_ips:
            - 193.26.156.135
            - 127.0.0.1

        # Repository title as it appears in the URL, i.e. slug.
        # Mandatory parameter.
        repo: sloth-ci

        # Only pushes to these branches will initiate a build.
        # Skip this parameter to allow all branches to fire builds.
        branches:
            - master
            - staging

About

Currently untested validator for sloth ci, based on existing validators for gitlab/github

License:MIT License


Languages

Language:Python 100.0%