Skip to content

Commit c8ec840

Browse files
authored
Add append_system_prompt input to _claude-code.yml (#7925)
Allow callers to pass additional system prompt text via the append_system_prompt input, which gets concatenated with the existing ghstack notice. You can see at pytorch/ciforge#228 (comment) how I use it to force the pr-review skill to get used to review PRs.
1 parent 14fd3d2 commit c8ec840

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/_claude-code.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ on:
3232
description: 'Shell commands to run before Claude (e.g. install lintrunner)'
3333
type: string
3434
default: ''
35+
append_system_prompt:
36+
description: 'Additional text appended to the system prompt'
37+
type: string
38+
default: ''
3539

3640
jobs:
3741
claude-code:
@@ -182,7 +186,9 @@ jobs:
182186
claude_args: "--model ${{ inputs.model }} ${{ inputs.additional_claude_args }} ${{ steps.ghstack-check.outputs.extra_claude_args }}"
183187
settings: ${{ inputs.settings }}
184188
env:
185-
INPUT_APPEND_SYSTEM_PROMPT: ${{ steps.ghstack-check.outputs.ghstack_notice }}
189+
INPUT_APPEND_SYSTEM_PROMPT: |
190+
${{ steps.ghstack-check.outputs.ghstack_notice }}
191+
${{ inputs.append_system_prompt }}
186192
187193
- name: Upload usage metrics
188194
if: always()

0 commit comments

Comments
 (0)