Gitea Pull Request
kind: gitea/pullrequest
On this page
Description
The actions
section describes the Gitea Pull Requests that updatecli is expected to open (or update) when the manifest is applied.
Parameters
Name | Type | Description | Required |
---|---|---|---|
body | string | “body” defines a custom body pullrequest.
| |
owner | string | “owner” defines the Gitea repository owner.
| |
repository | string | “repository” defines the Gitea repository for a specific owner
| |
sourcebranch | string | “sourcebranch” defines the branch name used as a source to create the Gitea pullrequest.
| |
targetbranch | string | “targetbranch” defines the branch name used as a target to create the Gitea pullrequest.
| |
title | string | “title” defines the Gitea pullrequest title
| |
token | string | “token” specifies the credential used to authenticate with Gitea API remark: A token is a sensitive information, it’s recommended to not set this value directly in the configuration file but to use an environment variable or a SOPS file. The value can be set to
https://github.com/getsops/sops | |
url | string | “url” defines the Gitea url to interact with | |
username | string | “username” defines the username used to authenticate with Gitea API |
Example
# updatecli.yaml
name: Test Gitea scm
scms:
gitea:
kind: gitea
spec:
url: "try.gitea.io"
owner: "olblak"
repository: "updatecli-mirror"
branch: main
sources:
license:
name: Retrieve license file content
kind: file
scmid: gitea
spec:
file: LICENSE
targets:
license:
name: Retrieve license file content
kind: file
scmid: gitea
sourceid: license
spec:
file: LICENSE
actions:
gitea:
kind: gitea