Skip to content

Don't require body on PR Approval and honor footer: false#15507

Merged
pelikhan merged 3 commits intogithub:mainfrom
strawgate:dont-require-body-for-approve-v2
Feb 13, 2026
Merged

Don't require body on PR Approval and honor footer: false#15507
pelikhan merged 3 commits intogithub:mainfrom
strawgate:dont-require-body-for-approve-v2

Conversation

@strawgate
Copy link
Contributor

Fixes #15503 and #15505

Copilot AI review requested due to automatic review settings February 13, 2026 20:25
@pelikhan
Copy link
Contributor

ouch... that's annoying.
image

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes two issues related to PR review submissions: removing the incorrect body requirement for APPROVE events and adding support for the footer: false configuration option.

Changes:

  • Updated validation logic to only require body for REQUEST_CHANGES events (not APPROVE)
  • Added footer configuration option to submit-pull-request-review that controls whether AI-generated footer is appended to review body
  • Modified footer logic to skip footer when disabled or when body is empty

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
schemas/agent-output.json Updated body requirement description and conditional validation to only require body for REQUEST_CHANGES
pkg/workflow/js/safe_outputs_tools.json Updated body requirement description in tool schema
actions/setup/js/safe_outputs_tools.json Updated body requirement description in action tool schema
pkg/parser/schemas/main_workflow_schema.json Added footer boolean field to submit-pull-request-review configuration
pkg/workflow/submit_pr_review.go Added Footer field to config struct and parsing logic
pkg/workflow/compiler_safe_outputs_config.go Added footer config handling using getEffectiveFooter helper
actions/setup/js/submit_pr_review.cjs Updated validation to only require body for REQUEST_CHANGES
actions/setup/js/pr_review_buffer.cjs Added includeFooter flag and logic to conditionally append footer
actions/setup/js/safe_output_unified_handler_manager.cjs Applied footer config from submit_pull_request_review to review buffer
actions/setup/js/safe_output_handler_manager.cjs Applied footer config from submit_pull_request_review to review buffer
actions/setup/js/submit_pr_review.test.cjs Updated tests to validate empty body is allowed for APPROVE and required for REQUEST_CHANGES
actions/setup/js/pr_review_buffer.test.cjs Added tests for footer control and empty body behavior
docs/src/content/docs/reference/safe-outputs.md Updated documentation to reflect correct body requirements and footer option
docs/src/content/docs/reference/frontmatter-full.md Added footer field documentation
.github/workflows/smoke-copilot.lock.yml Updated tool schema description for body requirement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@strawgate
Copy link
Contributor Author

simple solution is to give me push access 😉

@pelikhan
Copy link
Contributor

I'm thinking I might give you an workflow to run on your side to enforce all our little rules...

Copy link
Contributor

@pelikhan pelikhan left a comment

Choose a reason for hiding this comment

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

ok after comments

@strawgate strawgate force-pushed the dont-require-body-for-approve-v2 branch from e1b8169 to 53ec669 Compare February 13, 2026 23:45
@pelikhan pelikhan merged commit 4acc2ef into github:main Feb 13, 2026
37 of 51 checks passed
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.

Review body is not actually required for approval via submit_pull_request_review

2 participants