@tiqora/tiqora 0.0.5-dev → 0.0.6-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -161,71 +161,92 @@
|
|
|
161
161
|
Fixes {{ticketId}}"
|
|
162
162
|
</action>
|
|
163
163
|
|
|
164
|
+
<action>Push branch to remote immediately after commit: git push -u origin {{branchName}}</action>
|
|
165
|
+
|
|
164
166
|
<action>Update run state: mark implementation_completed_at timestamp.</action>
|
|
165
167
|
|
|
166
168
|
<output>[WORKFLOW] ✓ Implementation complete | Changes committed to {{branchName}}</output>
|
|
167
169
|
</step>
|
|
168
170
|
|
|
169
171
|
<step n="7" goal="Generate MR Report and request developer validation">
|
|
170
|
-
<critical>MR Report is
|
|
172
|
+
<critical>MR Report is MANDATORY. Create file, display to developer, and get explicit approval before proceeding.</critical>
|
|
171
173
|
|
|
172
|
-
<action>
|
|
174
|
+
<action>STEP 7.1: Analyze all changes made since branch creation.
|
|
175
|
+
1. Run: git diff {{branch_base}}..HEAD
|
|
176
|
+
2. Identify all modified files
|
|
177
|
+
3. Note test additions/modifications
|
|
178
|
+
4. Understand the overall implementation scope
|
|
179
|
+
</action>
|
|
173
180
|
|
|
174
|
-
<action>Generate MR Report
|
|
181
|
+
<action>STEP 7.2: Generate comprehensive MR Report content in {{document_language}}.
|
|
182
|
+
Use git diff analysis to fill in concrete details for each section:
|
|
175
183
|
|
|
176
|
-
**Title**: [Brief summary of what was implemented]
|
|
184
|
+
**Title**: [Brief summary of what was implemented, extracted from commit message and challenge scope]
|
|
177
185
|
|
|
178
186
|
**Description**:
|
|
179
|
-
[1-2 paragraphs
|
|
187
|
+
[1-2 paragraphs: What problem does this solve? What was implemented? Why this approach?]
|
|
180
188
|
|
|
181
189
|
**Technical Choices**:
|
|
182
|
-
- [Key
|
|
183
|
-
- [Key
|
|
184
|
-
- [
|
|
190
|
+
- [Key decision 1 with justification]
|
|
191
|
+
- [Key decision 2 with justification]
|
|
192
|
+
- [Libraries/tools introduced and why]
|
|
185
193
|
|
|
186
|
-
**Changes Made
|
|
187
|
-
- [File
|
|
188
|
-
- [File
|
|
189
|
-
[List
|
|
194
|
+
**Changes Made** (from git diff):
|
|
195
|
+
- [File 1]: [What changed and why]
|
|
196
|
+
- [File 2]: [What changed and why]
|
|
197
|
+
[List ALL significant files changed]
|
|
190
198
|
|
|
191
199
|
**Testing**:
|
|
192
|
-
- Unit tests: [
|
|
193
|
-
- Integration tests: [
|
|
194
|
-
- Manual testing
|
|
200
|
+
- Unit tests: [List files and what they test]
|
|
201
|
+
- Integration tests: [If applicable]
|
|
202
|
+
- Manual testing: [Step-by-step verification instructions]
|
|
195
203
|
|
|
196
204
|
**How to Run**:
|
|
197
|
-
1. [
|
|
198
|
-
2. [Build
|
|
199
|
-
3. [
|
|
205
|
+
1. [Setup prerequisites]
|
|
206
|
+
2. [Build command]
|
|
207
|
+
3. [Run command to demonstrate feature]
|
|
200
208
|
4. [Expected output/behavior]
|
|
201
209
|
|
|
202
210
|
**Deployment Notes**:
|
|
203
|
-
- [
|
|
204
|
-
-
|
|
205
|
-
-
|
|
206
|
-
-
|
|
211
|
+
- Migrations: [Yes/No - describe if yes]
|
|
212
|
+
- Environment variables: [List if any]
|
|
213
|
+
- Breaking changes: [Yes/No - describe if yes]
|
|
214
|
+
- Rollback plan: [How to rollback if needed]
|
|
207
215
|
|
|
208
216
|
**Reviewed By**: [Developer name]
|
|
209
|
-
**Reviewed At**: [
|
|
217
|
+
**Reviewed At**: [Current timestamp]
|
|
210
218
|
</action>
|
|
211
219
|
|
|
212
|
-
<action>
|
|
220
|
+
<action>STEP 7.3: WRITE the MR Report file to {workflow_runs_dir}/{{runId}}-mr-report.md with the generated content.</action>
|
|
221
|
+
|
|
222
|
+
<action>STEP 7.4: Display the MR Report to the developer and ask for explicit validation.</action>
|
|
213
223
|
|
|
214
|
-
<ask
|
|
215
|
-
[ ] Are technical choices explained clearly?
|
|
216
|
-
[ ] Are testing instructions complete and accurate?
|
|
217
|
-
[ ] Are deployment notes accurate?
|
|
224
|
+
<ask>✓ MR Report generated and saved to: {workflow_runs_dir}/{{runId}}-mr-report.md
|
|
218
225
|
|
|
219
|
-
|
|
226
|
+
Please review carefully:
|
|
227
|
+
- [ ] Title and description accurately reflect the work?
|
|
228
|
+
- [ ] All files changed are documented?
|
|
229
|
+
- [ ] Testing instructions are clear and complete?
|
|
230
|
+
- [ ] Deployment notes are accurate?
|
|
220
231
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
232
|
+
What would you like to do? (approve/edit/regenerate)</ask>
|
|
233
|
+
|
|
234
|
+
<check if="developer chooses edit">
|
|
235
|
+
<action>Ask developer what needs to be changed in the report.</action>
|
|
236
|
+
<action>Apply the requested edits to the MR Report file.</action>
|
|
237
|
+
<action>Display updated report and re-ask for validation.</action>
|
|
224
238
|
</check>
|
|
225
239
|
|
|
226
|
-
<
|
|
240
|
+
<check if="developer chooses regenerate">
|
|
241
|
+
<action>Ask developer for guidance on what should be different.</action>
|
|
242
|
+
<action>Re-generate MR Report with new guidance and save to file.</action>
|
|
243
|
+
<action>Display updated report and re-ask for validation.</action>
|
|
244
|
+
</check>
|
|
227
245
|
|
|
228
|
-
<
|
|
246
|
+
<check if="developer chooses approve">
|
|
247
|
+
<action>STEP 7.5: Mark run state: mr_report_approved_at = now, mr_report_path = {workflow_runs_dir}/{{runId}}-mr-report.md</action>
|
|
248
|
+
<output>[WORKFLOW] ✓ MR Report approved and saved</output>
|
|
249
|
+
</check>
|
|
229
250
|
</step>
|
|
230
251
|
|
|
231
252
|
<step n="8" goal="Validate definition of done checklist">
|
|
@@ -245,17 +266,33 @@
|
|
|
245
266
|
Store as {{total_worklog_minutes}}.
|
|
246
267
|
</action>
|
|
247
268
|
|
|
248
|
-
<!-- STEP 9.2: Create
|
|
249
|
-
<action>
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
-
|
|
253
|
-
-
|
|
254
|
-
|
|
255
|
-
|
|
269
|
+
<!-- STEP 9.2: Create MR (branch already pushed in step 6) -->
|
|
270
|
+
<action>STEP 9.2a: Attempt to create MR/PR in {{git_host}} using available tools:
|
|
271
|
+
- If {{git_host}} == "github": Use GitHub CLI (gh pr create) or GitHub API MCP if available
|
|
272
|
+
- If {{git_host}} == "gitlab": Use GitLab CLI (gitlab) or GitLab API MCP if available
|
|
273
|
+
- If {{git_host}} == "gitea": Use Gitea API or CLI if available
|
|
274
|
+
- MR/PR Details:
|
|
275
|
+
* Title: "[{{ticketId}}] " + [MR Report title from step 7]
|
|
276
|
+
* Description: [Full MR Report content from {workflow_runs_dir}/{{runId}}-mr-report.md]
|
|
277
|
+
* Target branch: {{branch_base}} (usually main/master)
|
|
278
|
+
* Source branch: {{branchName}}
|
|
256
279
|
</action>
|
|
257
280
|
|
|
258
|
-
<
|
|
281
|
+
<check if="MR/PR creation succeeds via CLI or MCP">
|
|
282
|
+
<action>Capture MR/PR URL as {{mr_url}}.</action>
|
|
283
|
+
</check>
|
|
284
|
+
|
|
285
|
+
<check if="MR/PR creation fails or no tools available">
|
|
286
|
+
<action>STEP 9.2b (Fallback): Generate MR/PR draft template for manual creation.
|
|
287
|
+
1. Create {workflow_runs_dir}/{{runId}}-mr-draft.md with:
|
|
288
|
+
- MR URL template: https://gitlab.com/{{project}}/{{repo}}/-/merge_requests/new?merge_request[source_branch]={{branchName}}&merge_request[target_branch]={{branch_base}}
|
|
289
|
+
- Pre-filled MR details (title, description from MR Report)
|
|
290
|
+
- Instructions: "Copy the content below into GitLab to create the MR manually"
|
|
291
|
+
2. Display to user: "⚠️ MR/PR cannot be created automatically. Here's a draft for manual creation:"
|
|
292
|
+
3. Ask user to create MR manually and provide the URL when done.
|
|
293
|
+
4. Once user provides URL, capture as {{mr_url}}.
|
|
294
|
+
</action>
|
|
295
|
+
</check>
|
|
259
296
|
|
|
260
297
|
<!-- STEP 9.3: Transition Jira to Review -->
|
|
261
298
|
<action if="pm_tool is not none and ticket was retrieved">
|
package/package.json
CHANGED