Skip to content

feat: add Issue creation from plan and enhanced PR linking#7

Merged
iamladi merged 3 commits intomainfrom
feat/issue-creation-and-pr-linking
Nov 16, 2025
Merged

feat: add Issue creation from plan and enhanced PR linking#7
iamladi merged 3 commits intomainfrom
feat/issue-creation-and-pr-linking

Conversation

@iamladi
Copy link
Owner

@iamladi iamladi commented Nov 16, 2025

Summary

Adds complete Plan → Issue → PR integration:

  • New command to convert plans into GitHub Issues
  • Enhanced PR creation to extract and link plan information
  • Full traceability chain from research through code

Changes

New Command:

  • /github:create-issue-from-plan plans/file.md
    • Parses plan YAML frontmatter
    • Extracts Implementation Phases as checklist
    • Creates Issue with plan Overview as summary
    • Links research files from frontmatter
    • Updates plan frontmatter with Issue number: issue: 123

Enhanced /github:create-pr:

  • Extracts plan type from frontmatter for PR labels
  • Links plan file in PR body
  • Includes research file links
  • References testing strategy from plan
  • Generates Review Focus from Implementation Plan phases

Implementation Details

Plan → Issue Conversion:

  • Issue body includes all phases with checkboxes
  • Validation commands extracted to Issue
  • Acceptance criteria linked
  • Related research files referenced

PR Enhancement:

  • Plan links: See plans/file.md for full design
  • Research links: Automatic from plan frontmatter
  • Title format: <type>: #<issue> - Title
  • Auto-closes Issue on merge via Closes #<number>

Review Focus

Files to review:

  1. commands/create-issue-from-plan.md - New command (119 lines)
  2. commands/create-pr.md - Enhanced with plan extraction (33 line changes)

Key architectural decision:

  • Plans are parsed and linked, not duplicated
  • Single plan file source for Issue body content
  • Automatic frontmatter updates maintain traceability

References

Completes the workflow integration started in sdlc-plugin changes

Commands:
- New: /github:create-issue-from-plan - converts plan to Issue with checklist
- Enhanced: /github:create-pr - extracts plan info and links research files

Changes:
- Update create-pr to extract plan file information
- Link plan file and research files in PR body
- Generate PR title with type from plan metadata
- Extract Implementation Plan phases for Review Focus section
- Update plan frontmatter with Issue number after creation
- Commit Issue linkage back to plan file

This completes the Plan → Issue → PR traceability chain.
- Bump version from 1.2.1 to 1.3.0 (minor version for new features)
- Update package.json and plugin.json manifests
- Document new /github:create-issue-from-plan command in CHANGELOG
- Document /create-pr enhancements for plan extraction and linking
@iamladi iamladi merged commit d4b0078 into main Nov 16, 2025
1 check passed
@iamladi iamladi deleted the feat/issue-creation-and-pr-linking branch November 16, 2025 17:28
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