-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Summary
Explore an alternative/complementary approach that uses gh copilot CLI to generate AI-powered summaries of specification changes, rather than (or in addition to) showing raw diffs.
Current Approach
The current action is a self-contained TypeScript GitHub Action that:
- Detects spec file changes via git
- Generates diffs programmatically
- Renders issues using Handlebars templates
- Creates GitHub issues via the API
Alternative Approach: Git Diff + Copilot CLI
git diff HEAD~1 -- docs/specification.md | gh copilot explainPros
- AI-powered summaries: Can explain changes in natural language rather than showing raw diffs
- Flexible: Natural language prompts are highly adaptable
- Quick prototyping: Fast to set up for single-repo use cases
Cons
- Not Marketplace-distributable: Shell scripts are not packageable as reusable actions
- Authentication complexity: Requires
ghCLI with Copilot extension and user-level auth (noGITHUB_TOKENsupport) - Runner setup:
gh copilotnot installed by default; requiresgh extension install github/gh-copilot - Non-deterministic: LLM output varies; hard to test or guarantee consistent formatting
- Cost: Incurs Copilot API usage costs at scale
- Enterprise restrictions: Many orgs block or restrict Copilot usage
- Security: Prompt injection risk from adversarial diff content
Recommendation
The current self-contained approach remains best for a shareable, Marketplace-ready action. However, AI summaries could be added as an opt-in enhancement in a future version:
- uses: spec-ops-method/spec-ops-action@v2
with:
ai-summary: true # Optional: Use AI to summarize changes
ai-provider: copilot # or: openai, anthropicImplementation Considerations
If pursued, an AI summary feature would need to:
- Be optional with a fallback to raw diffs
- Handle authentication gracefully (fail soft if not configured)
- Sanitize inputs to prevent prompt injection
- Document costs clearly to users
- Support multiple providers for flexibility
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed