Skip to content

Make is_pr_author optional in /cmd#167

Merged
danielbui12 merged 2 commits into
cmd-botfrom
ci/cmd-run-optional-is-pr-author
Jun 11, 2026
Merged

Make is_pr_author optional in /cmd#167
danielbui12 merged 2 commits into
cmd-botfrom
ci/cmd-run-optional-is-pr-author

Conversation

@franciscoaguirre

Copy link
Copy Markdown
Collaborator

The /cmd flow dispatches cmd-run.yml with gh workflow run --ref cmd-bot, so workflow_dispatch inputs are validated against this branch. After the PR-author authorization path was dropped from cmd.yml (in #158), it stopped sending is_pr_author, which 422'd the dispatch ("Required input 'is_pr_author' not provided") because the input was required here.

Make it optional with a default and drop the now-dead IS_PR_AUTHOR env var (the Run cmd step never read it). Keeping the input declared rather than removing it avoids an "Unexpected inputs provided" 422 from cmd.yml copies that still pass the flag, so the two branches can be updated in any order.

The /cmd flow dispatches cmd-run.yml with `gh workflow run --ref cmd-bot`,
so workflow_dispatch inputs are validated against this branch. After the
PR-author authorization path was dropped from cmd.yml, it stopped sending
is_pr_author, which 422'd the dispatch ("Required input 'is_pr_author' not
provided") because the input was required here.

Make it optional with a default and drop the now-dead IS_PR_AUTHOR env var
(the Run cmd step never read it). Keeping the input declared rather than
removing it avoids an "Unexpected inputs provided" 422 from cmd.yml copies
that still pass the flag, so the two branches can be updated in any order.
@franciscoaguirre

Copy link
Copy Markdown
Collaborator Author

@danielbui12 take a look

@danielbui12 danielbui12 merged commit 6a0419d into cmd-bot Jun 11, 2026
7 checks passed
@danielbui12 danielbui12 deleted the ci/cmd-run-optional-is-pr-author branch June 11, 2026 16:35
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.

2 participants