Skip to content

Commit 7fb602b

Browse files
Copilotdsyme
andauthored
Support repo-assist command input from gh aw run
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
1 parent c159a42 commit 7fb602b

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

docs/repo-assist.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ You can run Repo Assist in "blast mode" by repeatedly triggering:
141141
gh aw run repo-assist --repeat 30
142142
```
143143

144+
You can also invoke a predefined instruction directly from the command line:
145+
146+
```bash
147+
gh aw run repo-assist --repo <owner>/<repo> -F command="Run Task 9"
148+
```
149+
144150
### Usage as a General-Purpose Assistant
145151

146152
You can also trigger Repo Assist on-demand by commenting on any issue or PR:

workflows/repo-assist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ steps:
182182

183183
## Command Mode
184184

185-
Take heed of **instructions**: "${{ steps.sanitized.outputs.text }}"
185+
Take heed of **instructions**: "${{ steps.sanitized.outputs.text || inputs.command }}"
186186

187-
If these are non-empty (not ""), then you have been triggered via `/repo-assist <instructions>`. Follow the user's instructions instead of the normal scheduled workflow. Focus exclusively on those instructions. Apply all the same guidelines (read AGENTS.md, run formatters/linters/tests, be polite, use AI disclosure). Skip the weighted task selection and Task 11 reporting, and instead directly do what the user requested. If no specific instructions were provided (empty or blank), proceed with the normal scheduled workflow below.
187+
If these are non-empty (not ""), then you have been triggered via `/repo-assist <instructions>` (or by setting `inputs.command` in a manual `gh aw run`). Follow the user's instructions instead of the normal scheduled workflow. Focus exclusively on those instructions. Apply all the same guidelines (read AGENTS.md, run formatters/linters/tests, be polite, use AI disclosure). Skip the weighted task selection and Task 11 reporting, and instead directly do what the user requested. If no specific instructions were provided (empty or blank), proceed with the normal scheduled workflow below.
188188

189189
Then exit - do not run the normal workflow after completing the instructions.
190190

0 commit comments

Comments
 (0)