feat: implement Gitea Actions / CI-CD workflows #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Gitea Actions is the built-in CI/CD system (compatible with GitHub Actions syntax).
These endpoints allow listing and triggering workflows, inspecting run results,
downloading artifacts, and managing runners — the full CI automation surface.
Endpoints to implement
/repos/{owner}/{repo}/actions/runslist_workflow_runs/repos/{owner}/{repo}/actions/runs/{run_id}get_workflow_run/repos/{owner}/{repo}/actions/runs/{run_id}delete_workflow_run/repos/{owner}/{repo}/actions/runs/{run_id}/cancelcancel_workflow_run/repos/{owner}/{repo}/actions/runs/{run_id}/jobslist_run_jobs/repos/{owner}/{repo}/actions/jobs/{job_id}get_workflow_job/repos/{owner}/{repo}/actions/runs/{run_id}/artifactslist_run_artifacts/repos/{owner}/{repo}/actions/workflowslist_workflows/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enableenable_workflow/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disabledisable_workflow/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatchestrigger_workflow/repos/{owner}/{repo}/actions/secretslist_repo_action_secrets/repos/{owner}/{repo}/actions/secrets/{secretname}set_repo_action_secret/repos/{owner}/{repo}/actions/secrets/{secretname}delete_repo_action_secret/repos/{owner}/{repo}/actions/variableslist_repo_action_variables/repos/{owner}/{repo}/actions/variables/{variablename}create_repo_action_variable/repos/{owner}/{repo}/actions/variables/{variablename}update_repo_action_variable/repos/{owner}/{repo}/actions/variables/{variablename}delete_repo_action_variableAcceptance Criteria
list_workflow_runs(owner, repo, status, limit, page)—status:waiting|running|success|failure|cancelled|skippedtrigger_workflow(owner, repo, workflow_id, ref, inputs)—refis branch/tag,inputsis dictset_repo_action_secretencrypts nothing — just passes value; Gitea handles encryption server-sidelist_run_artifactsreturns artifact metadata; downloading artifact binaries is out of scopeTechnical Notes
POST /dispatchesbody:{"ref": "main", "inputs": {"key": "value"}}PUT /secrets/{name}body:{"data": "secret_value", "name": "SECRET_NAME"}POST /variables/{name}body:{"name": "VAR_NAME", "value": "var_value"}{workflow_id}is the filename (e.g.ci.yml), not an integer ID