repo-assist: allow direct task invocation via gh aw run -F command=...#330
Merged
repo-assist: allow direct task invocation via gh aw run -F command=...#330
gh aw run -F command=...#330Conversation
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for invoking predefined tasks from command line
repo-assist: allow direct task invocation via May 8, 2026
gh aw run -F command=...
dsyme
reviewed
May 8, 2026
| ## Command Mode | ||
|
|
||
| Take heed of **instructions**: "${{ steps.sanitized.outputs.text }}" | ||
| Take heed of **instructions**: "${{ steps.sanitized.outputs.text || inputs.command }}" |
Contributor
There was a problem hiding this comment.
The command must be declared as an optional input to the workflow_dispatch trigger, see gh-aw docs
Contributor
There was a problem hiding this comment.
@copilot The command must be declared as an optional input to the workflow_dispatch trigger, see gh-aw docs
Contributor
Author
There was a problem hiding this comment.
Fixed in cd28e55 by declaring workflow_dispatch.inputs.command as an optional string input in workflows/repo-assist.md.
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
Updated instructions for Command Mode to clarify user-triggered actions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Feature
Repo Assist command mode previously only read slash-command text, so predefined tasks could not be invoked directly from
gh aw runfields. This change adds a CLI input path so task instructions can be passed as workflow input.What does this feature do?
Workflow input fallback
steps.sanitized.outputs.text)inputs.command) as fallbackgh aw run.Declared manual-dispatch input
workflow_dispatch.inputs.commandas an optional string input inworkflows/repo-assist.md.-F command="..."is a declared workflow input for manual runs.User-facing docs
Why is this feature needed?
gh aw runsupports key/value inputs (-F), and Repo Assist should accept those values for command mode to make predefined task execution available from CLI-triggered runs.Implementation details