| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(actions): add gc actions workflow list — list repository workflows Add a new actions workflow command group with list subcommand: - workflow list: list all workflow files in a repository (GET /api/v8/repos/{owner}/{repo}/actions/workflows) with --json, --limit, --page flags API additions in queries_actions.go: - Workflow type (workflow_id/file_path/name/state) - WorkflowsResponse type (total_count + workflows array) - ListActionsWorkflows function (uses RawREST for v8 path) 6 unit tests cover: flag validation, JSON output, human-readable output, empty results (text + JSON), error handling. Real command verification on gitcode-cli/cli: workflow list returns 1 workflow (CI, .gitcode/workflows/ci.yml, active). Refs gitcode-cli/cli#508 | 2 个月前 | |
fix(actions): address Round 1 review — json index + test rewrite + content-type Address Round 1 independent review findings (PR #505): Blocker fixes: - D1: Move actions workflow run from read-only --json index to write-path --json index (it's a POST write command) - T4: Rewrite TestRunRunSecretScan to go through NewCmdRun + SetArgs + Execute end-to-end (was manually replicating RunE logic with unreachable t.Fatal) Should-fix: - C1: Remove redundant Content-Type header (RawREST sets it automatically when body != nil), aligns with ValidateActionsWorkflow 6/6 command tests pass. Refs gitcode-cli/cli#509 | 2 个月前 | |
feat(actions): add gc actions workflow run — trigger workflow dispatch Add a new actions workflow run subcommand that triggers a workflow_dispatch run via POST /api/v8/repos/{owner}/{repo}/ actions/workflows/{workflow_id}/dispatches. Features: - Accept workflow ID or filename (e.g. ci.yml) - --ref flag (required): branch or tag name - -f/--field: custom inputs in key=value format, repeatable - --json: output {workflow_id, workflow_run_id} - Secret scan on field values API additions in queries_actions.go: - DispatchWorkflowRequest/Response types - DispatchActionsWorkflow function (RawREST POST v8) 8 tests (6 command + 2 API) cover: flag validation, success, JSON output, no-ref error, API error, secret scan rejection, v8 path construction, assertNoAccessTokenQuery, error handling. Refs gitcode-cli/cli#509 | 2 个月前 |