Skip to content

chore(sdk): reject #[workflow(name=...)] for overriding workflow name#1390

Merged
chris-olszewski merged 2 commits into
mainfrom
olszewski/fix_workflow_name
Jul 10, 2026
Merged

chore(sdk): reject #[workflow(name=...)] for overriding workflow name#1390
chris-olszewski merged 2 commits into
mainfrom
olszewski/fix_workflow_name

Conversation

@chris-olszewski

Copy link
Copy Markdown
Member

What was changed

Explicitly throw on additional tokens being passed to #[workflow]

Why?

We already allow name overriding via #[run(name = "MyName")] and we were just #[workflow] attributes leading to users thinking they set a custom workflow name, but it was just being ignored.
Aligning on the run syntax there's not a strong reason to allow for overriding workflow name in multiple places.

Checklist

  1. Closes [Bug] #[workflow(name = "...")] is silently ignored instead of setting the workflow name #1389

  2. How was this tested:
    Added failing test in first commit, fixed in second.

  3. Any docs updates needed?
    N/A

@chris-olszewski chris-olszewski marked this pull request as ready for review July 9, 2026 20:18
@chris-olszewski chris-olszewski requested a review from a team as a code owner July 9, 2026 20:18
@chris-olszewski chris-olszewski merged commit 03a6d12 into main Jul 10, 2026
21 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/fix_workflow_name branch July 10, 2026 13:49
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.

[Bug] #[workflow(name = "...")] is silently ignored instead of setting the workflow name

2 participants