15
15
prefix :
16
16
description :' Prefix for workspace name'
17
17
required :false
18
- default :' triage '
18
+ default :' traiage '
19
19
type :string
20
-
20
+ persistence_mode :
21
+ description :' Persistence mode (push or archive)'
22
+ required :false
23
+ type :choice
24
+ options :
25
+ -push
26
+ -archive
27
+ default :' archive'
21
28
22
29
jobs :
23
- triage :
30
+ traiage :
24
31
name :Triage GitHub Issue with Claude Code
25
32
runs-on :ubuntu-latest
26
33
timeout-minutes :30
@@ -114,12 +121,16 @@ jobs:
114
121
115
122
-name :Commit and push changes
116
123
id :commit-push
124
+ if :${{ inputs.persistence_mode == 'push' }}
117
125
run :|
118
126
echo "Committing and pushing changes in workspace: $WORKSPACE_NAME"
119
127
./scripts/traiage.sh commit-push
120
128
121
129
-name :Create and upload archive
122
130
id :create-archive
131
+ if :${{ inputs.persistence_mode == 'archive' }}
132
+ env :
133
+ GCS_BUCKET :${{ secrets.TRAIAGE_DEST_GCS_BUCKET }}
123
134
run :|
124
135
echo "Creating archive for workspace: $WORKSPACE_NAME"
125
136
archive_url=$(./scripts/traiage.sh archive)
@@ -133,7 +144,7 @@ jobs:
133
144
ARCHIVE_URL :${{ steps.create-archive.outputs.archive_url }}
134
145
run :|
135
146
{
136
- echo "##AI Triage Results";
147
+ echo "##TrAIage Results";
137
148
echo "- **Issue URL:** ${ISSUE_URL}";
138
149
echo "- **Context Key:** ${CONTEXT_KEY}";
139
150
echo "- **Workspace:** ${WORKSPACE_NAME}";