-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Overview
Implement the /pre-merge-check command as defined in the OpenSpec proposal to provide comprehensive validation before merging PRs.
Background
OpenSpec proposal: openspec/changes/add-pre-merge-validation/proposal.md
This command will orchestrate all validation steps (Terraform, YAML, Bash), detect merge conflicts, analyze PR status, and identify unaddressed review comments.
Implementation Tasks
Phase 1: ✅ Repository Preparation (COMPLETED)
- Remove .claude/ from .gitignore (commit ca6f2fa)
- Commit .claude/ directory to repository (commit ca6f2fa)
Phase 2: Core Command Implementation (TODO)
- Create
.claude/commands/pre-merge-check.md - Implement three execution modes (local, pre-pr, pre-merge)
- Implement git status validation (conflicts, divergence)
- Orchestrate existing validation commands
- Integrate PR analysis via gh CLI
- Implement OpenSpec validation integration
- Add clear reporting and verdict logic
Phase 3: Address Current PR #17 Issues (TODO)
- Resolve merge conflicts with main
- Fix CRITICAL syntax error in main.tf:299 (missing closing brace)
- Fix SECURITY issue in user_data.sh:49 (quote variable)
- Fix BUG in main.tf:256 (empty DOMAIN_NAME for CloudFlare)
- Address remaining 7 Copilot comments
- Run new /pre-merge-check command to verify
Phase 4: Documentation and Testing (TODO)
- Write command usage documentation
- Add examples for each mode
- Test with various scenarios
- Update README.md
Success Criteria
- Command completes in <10 minutes (pre-merge mode)
- Detects 100% of merge conflicts
- Reports all validation failures
- Analyzes PR review comments correctly
- Provides clear "Ready/Not Ready" verdict
- All 10 Copilot comments in PR Implement simplified DNS/SSL configuration and add config validation to CI #17 addressed
- PR Implement simplified DNS/SSL configuration and add config validation to CI #17 ready to merge
References
- OpenSpec proposal: openspec/changes/add-pre-merge-validation/proposal.md
- Spec: openspec/changes/add-pre-merge-validation/specs/development-commands/spec.md
- Tasks: openspec/changes/add-pre-merge-validation/tasks.md
- Related: Issue Automate example configuration testing in CI #22 (automate config testing in CI)
Next Steps
- Implement
/pre-merge-checkcommand following tasks.md - Test with current PR Implement simplified DNS/SSL configuration and add config validation to CI #17
- Address all Copilot comments identified by command
- Merge PR Implement simplified DNS/SSL configuration and add config validation to CI #17 once command shows "Ready to Merge"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels