fj workflow enable/disable (and view): pause a workflow without editing YAML #167

Open
opened 2026-06-15 15:01:14 +00:00 by stephen · 1 comment
Owner

Problem

fj workflow only lists and dispatches. Stopping a flaky, noisy, or cost-heavy workflow means editing or deleting its file or using the web UI.

Acceptance criteria

  • fj workflow disable <file|id> and fj workflow enable <file|id> (Forgejo PUT /repos/{}/actions/workflows/{id}/disable | /enable).
  • fj workflow view <file|id>: state (active / disabled), path, declared workflow_dispatch inputs.
  • fj workflow list gains a state column (active / disabled).
  • enable / disable are idempotent (no error if already in the target state).

Value

Pause cost and noise without code changes; see dispatch inputs before workflow run.

Priority

p2.

Dependencies / sequencing

None hard. view's input display pairs with the shipped workflow run -f.

Overlap

None.

## Problem `fj workflow` only lists and dispatches. Stopping a flaky, noisy, or cost-heavy workflow means editing or deleting its file or using the web UI. ## Acceptance criteria - [ ] `fj workflow disable <file|id>` and `fj workflow enable <file|id>` (Forgejo `PUT /repos/{}/actions/workflows/{id}/disable` | `/enable`). - [ ] `fj workflow view <file|id>`: state (active / disabled), path, declared `workflow_dispatch` inputs. - [ ] `fj workflow list` gains a state column (active / disabled). - [ ] enable / disable are idempotent (no error if already in the target state). ## Value Pause cost and noise without code changes; see dispatch inputs before `workflow run`. ## Priority p2. ## Dependencies / sequencing None hard. `view`'s input display pairs with the shipped `workflow run -f`. ## Overlap None.
Author
Owner

Blocked server-side on the current rasterhub.com Forgejo build: the workflow API routes needed for this task are not exposed. Probes returned 404 for GET /api/v1/repos/rasterstate/fj/actions/workflows, GET /api/v1/repos/rasterstate/fj/actions/workflows/ci.yml, OPTIONS /api/v1/repos/rasterstate/fj/actions/workflows/ci.yml/disable, and the encoded full-path variants. Leaving this open until the server exposes the enable/disable workflow endpoints.

Blocked server-side on the current rasterhub.com Forgejo build: the workflow API routes needed for this task are not exposed. Probes returned 404 for GET /api/v1/repos/rasterstate/fj/actions/workflows, GET /api/v1/repos/rasterstate/fj/actions/workflows/ci.yml, OPTIONS /api/v1/repos/rasterstate/fj/actions/workflows/ci.yml/disable, and the encoded full-path variants. Leaving this open until the server exposes the enable/disable workflow endpoints.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/fj#167
No description provided.