Skip to content

Conversation

@derekmisler
Copy link
Contributor

@derekmisler derekmisler commented Feb 10, 2026

Summary

Fixes a missing parameter propagation issue where the add-prompt-files input was defined in the root workflow but not being passed through to the underlying review-pr action. This ensures that users can properly specify additional prompt files when triggering PR reviews.

Changes

Fixed

  • Parameter propagation: Added missing add-prompt-files parameter to both workflow job calls in .github/workflows/review-pr.yml
  • Action input definition: Added add-prompt-files input parameter to review-pr/action.yml action definition

Technical Details

This PR addresses a configuration gap where the workflow accepted an add-prompt-files input parameter but failed to pass it through to the actual action that performs the review.

Key changes:

  • .github/workflows/review-pr.yml: Added add-prompt-files: ${{ inputs.add-prompt-files }} to both the review-pr-direct and review-pr-comment job steps (lines 177 and 227)
  • review-pr/action.yml: Added the missing input parameter definition for add-prompt-files with proper description and default value

The parameter allows users to specify comma-separated file paths (e.g., 'AGENTS.md,CLAUDE.md') that should be appended to the AI prompt during PR review, enabling more context-aware reviews.

Testing

  • Manual testing with workflow dispatch using add-prompt-files parameter
  • Verify parameter is properly passed to cagent execution
  • Test with both direct PR review and comment-triggered review flows

Breaking Changes

None - this is a bug fix that adds missing functionality without changing existing behavior.

Related Issues

None explicitly referenced - this appears to be a bug fix discovered during development.

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No new warnings introduced
  • Parameter properly documented with description and default
  • Applied to both workflow job variants consistently

@derekmisler derekmisler self-assigned this Feb 10, 2026
@derekmisler derekmisler marked this pull request as ready for review February 10, 2026 00:17
@derekmisler derekmisler requested a review from a team as a code owner February 10, 2026 00:17
@derekmisler
Copy link
Contributor Author

/describe

@docker-agent
Copy link

docker-agent bot commented Feb 10, 2026

✅ PR description has been generated and updated!

@derekmisler derekmisler force-pushed the actually-pass-prompt-files-through-to-the-root-act branch from 954f236 to 5d7c882 Compare February 10, 2026 16:34
@derekmisler
Copy link
Contributor Author

/review

Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

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

Review Summary

No issues found!

This PR correctly implements the parameter propagation for add-prompt-files. The changes properly:

  • Define the input parameter in the workflow with appropriate type and default value
  • Pass it through both job flows (direct review and comment-triggered)
  • Define it in the action inputs
  • Forward it to the underlying cagent-action

All YAML syntax and GitHub Actions expressions are correct. The parameter chain is complete and consistent.

Great fix! 🚀

@derekmisler derekmisler force-pushed the actually-pass-prompt-files-through-to-the-root-act branch from 5d7c882 to 357fb78 Compare February 13, 2026 14:33
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