Skip to content

Commit 8fc0775

Browse files
authored
actually pass prompt-files through to the root action (#36)
1 parent a775326 commit 8fc0775

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/review-pr.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ on:
5454
required: false
5555
type: string
5656
default: "v1.23.0"
57+
add-prompt-files:
58+
description: "Comma-separated list of files to append to the prompt (e.g., 'AGENTS.md,CLAUDE.md')"
59+
required: false
60+
type: string
61+
default: ""
5762
auto-review-org:
5863
description: "Organization to check membership for auto-reviews"
5964
required: false
@@ -162,7 +167,7 @@ jobs:
162167
- name: Generate GitHub App token
163168
if: steps.membership.outputs.is_member == 'true' && env.HAS_APP_SECRETS == 'true'
164169
id: app-token
165-
continue-on-error: true # Don't fail workflow if token generation fails
170+
continue-on-error: true # Don't fail workflow if token generation fails
166171
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
167172
with:
168173
app_id: ${{ secrets.CAGENT_REVIEWER_APP_ID }}
@@ -175,6 +180,7 @@ jobs:
175180
with:
176181
pr-number: ${{ inputs.pr-number || github.event.pull_request.number }}
177182
additional-prompt: ${{ inputs.additional-prompt }}
183+
add-prompt-files: ${{ inputs.add-prompt-files }}
178184
model: ${{ inputs.model }}
179185
cagent-version: ${{ inputs.cagent-version }}
180186
github-token: ${{ steps.app-token.outputs.token || github.token }}
@@ -211,7 +217,7 @@ jobs:
211217
- name: Generate GitHub App token
212218
if: env.HAS_APP_SECRETS == 'true'
213219
id: app-token
214-
continue-on-error: true # Don't fail workflow if token generation fails
220+
continue-on-error: true # Don't fail workflow if token generation fails
215221
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
216222
with:
217223
app_id: ${{ secrets.CAGENT_REVIEWER_APP_ID }}
@@ -224,6 +230,7 @@ jobs:
224230
pr-number: ${{ inputs.pr-number || github.event.issue.number }}
225231
comment-id: ${{ inputs.comment-id || github.event.comment.id }}
226232
additional-prompt: ${{ inputs.additional-prompt }}
233+
add-prompt-files: ${{ inputs.add-prompt-files }}
227234
model: ${{ inputs.model }}
228235
cagent-version: ${{ inputs.cagent-version }}
229236
github-token: ${{ steps.app-token.outputs.token || github.token }}

review-pr/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ inputs:
5353
description: "Model to use for reviews (e.g., anthropic/claude-sonnet-4-5, openai/gpt-4o)"
5454
required: false
5555
default: ""
56+
add-prompt-files:
57+
description: "Comma-separated list of files to append to the prompt (e.g., 'AGENTS.md,CLAUDE.md')"
58+
required: false
59+
default: ""
5660

5761
outputs:
5862
exit-code:
@@ -337,6 +341,7 @@ runs:
337341
github-token: ${{ steps.resolve-token.outputs.token }}
338342
cagent-version: ${{ inputs.cagent-version }}
339343
extra-args: ${{ inputs.model && format('--model={0}', inputs.model) || '' }}
344+
add-prompt-files: ${{ inputs.add-prompt-files }}
340345

341346
- name: Save reviewer memory
342347
if: always()

0 commit comments

Comments
 (0)