Skip to content

refactor: Standup context builder + PM integration fixes & test report#3

Merged
hempun10 merged 2 commits into
mainfrom
refactor/standup-generation
Feb 14, 2026
Merged

refactor: Standup context builder + PM integration fixes & test report#3
hempun10 merged 2 commits into
mainfrom
refactor/standup-generation

Conversation

@hempun10

Copy link
Copy Markdown
Owner

Summary

Overhaul standup generation with a rich, factual context builder and fix PM integration bugs across Jira, Linear, and GitHub Issues.

Changes

Core: Standup Context Builder (src/core/standup-context.ts)

  • New StandupContextBuilder assembles structured context from multiple signals:
    • Exact git commits (hash, message, body, files changed)
    • PR metadata (title, body, linked tickets, review status)
    • Ticket details from PM tools (Jira/Linear/GitHub Issues)
    • Diff statistics (files changed, insertions, deletions)
    • File-category analysis and top changed files
  • Copilot prompt rewritten to prioritize accuracy and forbid hallucination
  • Added CLI options: --debug, --preview, --raw-context, --tone

Fix: Jira ADF Description Crash

  • Bug: ticket.description.trim is not a function on Jira Cloud API v3
  • Cause: Jira returns description as an ADF object, not a string
  • Fix: Added extractAdfText() recursive parser + defensive guards in 3 formatters

Fix: Silent PM Fetch Failures

  • fetchTickets() now logs diagnostics when --debug is active
  • Added debug option to StandupContextOptions

Test Report & E2E Scripts

  • Comprehensive PM integration test report: docs/reports/PM_INTEGRATION_TEST_REPORT.md
  • Test setup scripts for reproducible E2E testing:
    • scripts/setup-test-repo.sh — scaffold GitHub repo with issues
    • scripts/setup-test-commits.sh — create branches, commits, PRs
    • scripts/create-linear-issues.py — create Linear issues via GraphQL
  • Updated docs/TESTING.md with PM integration testing section
  • Updated CHANGELOG.md with v0.4.1

Test Matrix

PM Tool Extraction API Fetch Description Standup Status
GitHub Issues Working
Linear Working
Jira (API v3) ✅ Fixed Fixed

Test Status

  • 294 tests passing (8 test files)
  • TypeScript typecheck: clean
  • Build: success

- New StandupContextBuilder assembles structured context from commits,
  PRs, PM tickets, diff stats, and file-category analysis
- Rewrote Copilot prompt to force factual summaries and forbid invention
- Added CLI options: --debug, --preview, --raw-context, --tone
- Fix Jira ADF description crash (ticket.description.trim is not a function)
- Added extractAdfText() for Jira API v3 ADF object parsing
- Defensive string guards for ticket.description across all formatters
- Debug logging in fetchTickets() for PM integration troubleshooting
- Comprehensive unit tests for the context builder (70 tests)
- Updated copilot helper tests for new prompt format

Closes: ticket.description.trim crash on Jira Cloud API v3
- Add comprehensive test report for GitHub Issues, Linear, and Jira
  integrations (docs/reports/PM_INTEGRATION_TEST_REPORT.md)
- Add test setup scripts for reproducible E2E testing:
  - scripts/setup-test-repo.sh — scaffold GitHub repo with issues
  - scripts/setup-test-commits.sh — create branches, commits, and PRs
  - scripts/create-linear-issues.py — create Linear issues via GraphQL
- Update docs/TESTING.md with PM integration testing section
- Update CHANGELOG.md with v0.4.1 fixes and additions
- Add devdaily secrets patterns to .gitignore
@hempun10 hempun10 merged commit a450f42 into main Feb 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant