From ad0fcbdec93a975f4e016ebd39bf7cf72ea271b6 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Sat, 4 Oct 2025 14:14:25 -0400 Subject: [PATCH] Updating README. --- README.md | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0475024..c4425b2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,48 @@ -# gitea-auto-pr +# Gitea Auto-PR (Gitea Compatible) +Create a new PR on Gitea using Gitea or Github Actions. Derived from https://github.com/arifer612/Gitea-PR-action which uses `success()` and `failure()` expressions which [Gitea does not support (only supports `always`)](https://docs.gitea.com/usage/actions/comparison#expressions). Thus, this version has been tweaked to work with both Github and Gitea Actions. + +### Requirements + +This action recipe requires a token with the following permissions: + +```yaml +issue: read +repository: write +user: read +``` + +## Inputs + +### url + +**Required** URL to the Gitea instance + +### token + +**Required** Personal access token to the Gitea instance + +### tea-version + +Tea CLI version (Default: 0.10.1) + +### pr-label + +Issues label for the PR + +### assignee + +User to assign the PR to + +## Example + +```yaml +- name: Create PR + uses: https://git.trez.wtf/Trez/gitea-auto-pr@main + with: + url: https://git.domain.tld + token: abcdefghijklmnopqrstuvwxyz + tea-version: 0.10.1 + pr-label: foobar + assignee: ${{ github.actor }} +```