Prefix all global workflow names with global- #69

Open
opened 2026-11-20 20:05:31 +00:00 by martin · 0 comments
Owner

Goal

Give every workflow injected by the global Woodpecker extension a global- name prefix so global workflows are easy to identify and cannot be confused with repository-owned workflows.

Context

Workflow names are the keys under [workflows.*] in woodpecker-extension.nix. The same names are referenced by rules.*.workflows, endpoints.routes[].workflows, and depends_on in the workflow YAML. The current set mixes prefixed and unprefixed names.

Renames

Current New
bun-verify global-bun-verify
bun-push global-bun-push
bun-deploy global-bun-deploy
flake-check global-flake-check
renovate-lint global-renovate-lint
pr-review global-pr-review

Already compliant: global-rust-verify, global-rust-generate-verify, global-forgejo-release.

Rule names (bun-astro, nix-flake, renovate, rust-cargo, rust-openapi) are not workflows and are out of scope here.

Files to update

  • shared/base/modules/services/woodpecker/woodpecker-extension.nix: workflows keys, every rules.*.workflows entry, and endpoints.routes[].workflows.
  • shared/base/modules/services/woodpecker/workflows/global/bun/push.yml: depends_on.
  • shared/base/modules/services/woodpecker/workflows/global/bun/deploy.yml: depends_on.
  • .opencode/skills/add-global-workflow/SKILL.md: examples use pr-review.
  • Any required status checks, branch protection rules, badges, or automation that match workflow names.

Acceptance criteria

  • Every key under workflows starts with global-.
  • Every rules.*.workflows and endpoints.routes[].workflows reference uses the new names.
  • depends_on in global-bun-push and global-bun-deploy uses the new names and pipeline ordering is preserved.
  • No stale references to the old names remain; allow path and image names such as .woodpecker/renovate-lint.yaml and woodpecker-plugin-flake-checker.
  • The extension starts cleanly and a test pipeline shows the renamed global workflows.
  • Required status checks and any workflow-name consumers are updated.
  • The global- naming convention is documented, including the add-global-workflow skill.

Risks

  • pr-review is a likely consumer-facing name; audit bot automation and branch protection before renaming.
  • Missing a depends_on update breaks the Bun workflow ordering.
  • Renamed workflows change the check names shown in Forgejo and Woodpecker.
## Goal Give every workflow injected by the global Woodpecker extension a `global-` name prefix so global workflows are easy to identify and cannot be confused with repository-owned workflows. ## Context Workflow names are the keys under `[workflows.*]` in `woodpecker-extension.nix`. The same names are referenced by `rules.*.workflows`, `endpoints.routes[].workflows`, and `depends_on` in the workflow YAML. The current set mixes prefixed and unprefixed names. ## Renames | Current | New | | --- | --- | | `bun-verify` | `global-bun-verify` | | `bun-push` | `global-bun-push` | | `bun-deploy` | `global-bun-deploy` | | `flake-check` | `global-flake-check` | | `renovate-lint` | `global-renovate-lint` | | `pr-review` | `global-pr-review` | Already compliant: `global-rust-verify`, `global-rust-generate-verify`, `global-forgejo-release`. Rule names (`bun-astro`, `nix-flake`, `renovate`, `rust-cargo`, `rust-openapi`) are not workflows and are out of scope here. ## Files to update - `shared/base/modules/services/woodpecker/woodpecker-extension.nix`: `workflows` keys, every `rules.*.workflows` entry, and `endpoints.routes[].workflows`. - `shared/base/modules/services/woodpecker/workflows/global/bun/push.yml`: `depends_on`. - `shared/base/modules/services/woodpecker/workflows/global/bun/deploy.yml`: `depends_on`. - `.opencode/skills/add-global-workflow/SKILL.md`: examples use `pr-review`. - Any required status checks, branch protection rules, badges, or automation that match workflow names. ## Acceptance criteria - [ ] Every key under `workflows` starts with `global-`. - [ ] Every `rules.*.workflows` and `endpoints.routes[].workflows` reference uses the new names. - [ ] `depends_on` in `global-bun-push` and `global-bun-deploy` uses the new names and pipeline ordering is preserved. - [ ] No stale references to the old names remain; allow path and image names such as `.woodpecker/renovate-lint.yaml` and `woodpecker-plugin-flake-checker`. - [ ] The extension starts cleanly and a test pipeline shows the renamed global workflows. - [ ] Required status checks and any workflow-name consumers are updated. - [ ] The `global-` naming convention is documented, including the `add-global-workflow` skill. ## Risks - `pr-review` is a likely consumer-facing name; audit bot automation and branch protection before renaming. - Missing a `depends_on` update breaks the Bun workflow ordering. - Renamed workflows change the check names shown in Forgejo and Woodpecker. ## Related - #68 (Astro matcher narrowing; same config file, separate concern) - Personal/backstage#20 and Personal/backstage#42 - Not a blocker for Personal/backstage#42.
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
Personal/nixos-configuration#69
No description provided.