Skip to content

Conversation

@shashank-factory
Copy link
Contributor

Summary

Update review prompt to output findings to JSON file instead of posting inline comments directly.

Why This Change

This enables the parallel workflow (PR4) to combine code review and security review findings before posting, avoiding overlapping inline comments.

Changes

  • Review writes findings to code-review-results.json
  • Tracking comment updated with summary table
  • Inline comments deferred to finalize step
  • Updated test expectations

This PR is part of a split from the security review feature branch.

PR Stack

  1. Formatting cleanup (chore: code formatting and style cleanup #16)
  2. Security commands foundation (feat: add @droid security commands #17)
  3. This PR - Review prompt JSON output pattern
  4. Parallel workflow architecture (next)

shashank-factory and others added 2 commits January 13, 2026 13:37
- Apply consistent formatting across base-action tests
- Format README.md bullet points consistently
- Minor whitespace and formatting fixes in various files

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Add support for security-focused code review commands:

- @droid security - Security review on PR changes
- @droid security --full - Full repository security scan

New features:
- Security command parser (security, review-security, security-full)
- Security review prompt with STRIDE methodology
- Security scan prompt with threat model generation
- Security configuration inputs in action.yml
- Security-specific tracking comment message

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Copy link
Contributor

@factory-droid factory-droid bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No high-severity issues found in this PR’s changes; it updates the review prompt template and tests to switch code review output to a JSON file plus a tracking-comment summary.

Copy link
Contributor

@factory-droid factory-droid bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look correct: they update the review prompt/template and tests to switch the code-review step to JSON-file output plus updating a tracking comment, and they remove inline-commenting guidance from the prompt. No high-severity issues found in this PR’s changes.

shashank-factory and others added 2 commits January 13, 2026 14:02
- Fix SECURITY_SCAN_DAYS to avoid NaN (clamp to positive integer, default 7)
- Remove instructions to commit threat model to PR branch during review
- Remove instructions to commit patches to PR branch
- Align security review with JSON output pattern (no direct inline comments)

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Update review prompt to output findings to JSON file instead of posting
inline comments directly. This enables the parallel workflow to combine
code review and security review findings before posting.

Changes:
- Review writes findings to code-review-results.json
- Tracking comment updated with summary table
- Inline comments deferred to finalize step

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@shashank-factory shashank-factory force-pushed the ssharma/pr3-review-json-output branch from 394437b to 6d909b9 Compare January 13, 2026 22:02
@varin-nair-factory varin-nair-factory force-pushed the ssharma/pr2-security-commands branch from dff43cf to 01e9df8 Compare January 15, 2026 18:22
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.

3 participants