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 |
|---|---|---|---|
| assignees | array | “assignees” defines a list of assignees for the pull request. | |
| 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
# updatecli.yaml
# updatecli diff --config updatecli.yaml
#
name: Show Gitea pipeline example
scms:
gitea:
kind: gitea
spec:
url: "demo.gitea.com"
owner: "olblak"
repository: "updatecli-mirror"
branch: main
# Sources are responsible to fetch information from third location such as npm registry.
sources:
updatecli:
name: Get latest axios version
kind: npm
spec:
name: axios
# Targets are responsible to update targeted files such as a yaml file.
targets:
npm:
name: Update e2e test file
kind: yaml
sourceid: updatecli
scmid: gitea
spec:
file: e2e/updatecli.d/success.d/npm.yaml
key: $.conditions.axios.spec.version
# Actions such as gitlab/mergerequest is triggered if a target is updated.
actions:
default:
kind: gitea/pullrequest
scmid: gitea
title: Bump axios version