Skip to content

refactor: derive audit labels from @tagName#429

Merged
kacy merged 1 commit into
mainfrom
refactor/audit-tagname-labels
May 25, 2026
Merged

refactor: derive audit labels from @tagName#429
kacy merged 1 commit into
mainfrom
refactor/audit-tagname-labels

Conversation

@kacy
Copy link
Copy Markdown
Owner

@kacy kacy commented May 25, 2026

small cleanup from reviewing the recent audit/rbac work. the Action and
Outcome label switches just echoed each tag name verbatim — @tagName (already
an idiom in the codebase) gives the same strings with no per-variant boilerplate,
so adding a future action no longer needs a matching label arm. Actor keeps its
switch because its labels use hyphens (api_token -> api-token).

wire/stored values are unchanged.

tested

  • YOQ_SKIP_SLOW_TESTS=1 zig build test — 2183 passed, 2 skipped, 0 failed.
  • zig fmt --check clean.

the Action and Outcome label switches just echoed each tag verbatim.
@TagName gives the same strings with no per-variant boilerplate, so a
new action no longer needs a matching label arm. Actor keeps its switch
(its labels use hyphens). wire values are unchanged.
@kacy kacy merged commit bb781a9 into main May 25, 2026
2 checks passed
@kacy kacy deleted the refactor/audit-tagname-labels branch May 25, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant