Skip to content

fix(cli): address PR review feedback for project settings integration - #599

Closed
kicchann with Copilot wants to merge 1 commit into
mainfrom
copilot/sub-pr-598
Closed

kicchann with Copilot wants to merge 1 commit into
mainfrom
copilot/sub-pr-598

Conversation

Copilot AI commented Mar 2, 2026 •

Copy link
Copy Markdown

Fixes several bugs and security issues identified in review of the ProjectSettings CLI integration (spec-000036~041).

Security

  • Path traversal: Added validation in requirement-service.ts and specification-service.ts rejecting customFiles entries containing .. or starting with / before passing to loadFile()

Bug fixes

  • Severity default inconsistency: fb.severity ?? "medium" → fb.severity ?? "low" in both req/approve.ts and spec/approve.ts to match the "low" baseline used in shouldBlockApproval
  • Dry-run misleading output: approval-service.ts dry-run now branches on draftToApproved — only logs branch/PR creation when that flow is active
  • Stale commit message: status-transition-service.ts now uses updatedTarget instead of the pre-update target when building commit messages
  • Spec title fallback: draft-reversion-service.ts was using bare id as title; fixed to spec.title ?? id

Code quality

  • buildBranchName settings parameter made non-optional (was settings?: ProjectSettings)
  • _s → s in req/implement.ts callbacks (parameter was actually used)
  • Japanese error message in req implement changed to English
  • Approve command output differentiates PR flow vs. direct commit (result.prUrl guard)
  • loadProjectSettings moved to top of handlers for consistency with approve commands
  • Test mock for "requirement not found" fixed to reject via showRequirement (not loadProjectSettings)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Integrate ProjectSettings into all CLI commands fix(cli): address PR review feedback for project settings integration Mar 2, 2026
Base automatically changed from feature/spec-000036-041-project-settings-integration to main March 2, 2026 12:11
@kicchann kicchann closed this Mar 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants