feat(action): new command group for Gitea Actions workflows #380
Loading…
Reference in New Issue
No description provided.
Delete Branch "Taoyouce/gitlink-cli:feat/actions-group"
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?
What
GitLink ships a full Actions API (
Api::V1::Projects::Actions) driving the DevOps tab, but the CLI had no way to touch it. This adds anactioncommand group:Contract notes from the server source:
+runsrequiresworkflow(the controller only lists runs when the workflow file exists) — enforced client-side as a required flag.+enable/+disableare per-workflow: the server rejects requests withoutworkflow("请输入正确的流水线文件!"), so the flag is required. Both forward it as a query param, matching the controller.--run-idis integer-validated before any API call.Validation
+list(1 workflow),+runs(history returned),+run(a new run appeared in the history), and a+disable→+enableround-trip (status: 0).go test ./...,go vet,gofmtall clean.Pull request closed