Skip to content

feat(api): add stepsDone, stepsTotal, durationMinutes to story API responses#11

Merged
johnazariah merged 2 commits intomainfrom
workflow/add-duration-and-step-summary-to-story-list-api-respon
Feb 21, 2026
Merged

feat(api): add stepsDone, stepsTotal, durationMinutes to story API responses#11
johnazariah merged 2 commits intomainfrom
workflow/add-duration-and-step-summary-to-story-list-api-respon

Conversation

@johnazariah
Copy link
Copy Markdown
Owner

Summary

Add computed fields to all three story endpoints (list, get, get-by-path):

  • stepsDone: count of completed steps
  • stepsTotal: total step count
  • durationMinutes: elapsed time from createdAt to completedAt (or now if still running)

Also aligns the list endpoint response with the get endpoint by adding previously missing fields (automationMode, issueProvider, issueOwner, issueRepo).

Changes

  • src/Aura.Api/Endpoints/DeveloperEndpoints.cs - 3 endpoints updated

Testing

  • Build passes (0 errors, 0 warnings)
  • Pre-commit hooks pass

Generated via interactive /work-on-story pattern

GitHub Copilot and others added 2 commits February 21, 2026 18:59
… detection

Add next_step, start_step, step_context operations to aura_workflow MCP tool
for driving stories interactively from Copilot CLI. Add branch-ahead detection
to CreateStoryFromIssueAsync that warns when a worktree branch already has
commits ahead of the default branch (pre-existing work from another session).

- McpHandler.Workflow.cs: 3 new operations + BuildStepContext helper
- McpHandler.cs: inject IGitService, update tool schema enum
- patterns/interactive-story.md: operational pattern for interactive flow
- .github/prompts/aura.work-on-story.prompt.md: bootstrap prompt
- .github/copilot-instructions.md: document interactive story workflow
- Tests updated with IGitService mock parameter

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…sponses

Add computed fields to all three story endpoints (list, get, get-by-path):
- stepsDone: count of completed steps
- stepsTotal: total step count
- durationMinutes: elapsed time from createdAt to completedAt (or now)

Also align list endpoint with get endpoint fields (automationMode,
issueProvider, issueOwner, issueRepo).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@johnazariah johnazariah added the aura-generated Generated by Aura AI workflows label Feb 21, 2026
@johnazariah johnazariah marked this pull request as ready for review February 21, 2026 11:49
@johnazariah johnazariah merged commit a5f2568 into main Feb 21, 2026
4 checks passed
@johnazariah johnazariah deleted the workflow/add-duration-and-step-summary-to-story-list-api-respon branch February 21, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aura-generated Generated by Aura AI workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant