Conversation
Replace the legacy `generateFooter` (from `generate_footer.cjs`) with `generateFooterWithMessages` (from `messages_footer.cjs`) across all remaining callers. This enables `messages.footer` custom templates to apply everywhere, including PR reviews, issue closing, and PR ready notifications. - Migrate 5 callers: pr_review_buffer, close_pull_request, close_entity_helpers, create_issue, mark_pull_request_as_ready_for_review - Remove now-unused `generateFooter` function and its test suite from generate_footer.cjs (-217 lines net) - Clean up test setup: remove file-based GH_AW_PROMPTS_DIR scaffolding that was only needed by the old footer generator Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Pull request overview
This PR standardizes footer generation across the codebase by migrating from the legacy generateFooter function to generateFooterWithMessages, which uses the messages.footer configuration instead of hardcoded footer files.
Changes:
- Replaced all imports and calls to
generateFooterfromgenerate_footer.cjswithgenerateFooterWithMessagesfrommessages_footer.cjs - Removed the legacy
generateFooterfunction implementation and its associated file-reading logic fromgenerate_footer.cjs - Updated test files to remove test setup for the legacy prompts directory and file-based footer templates
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| actions/setup/js/pr_review_buffer.cjs | Updated import to use generateFooterWithMessages instead of legacy generateFooter |
| actions/setup/js/mark_pull_request_as_ready_for_review.cjs | Updated import and function call to use generateFooterWithMessages |
| actions/setup/js/create_issue.cjs | Updated import to use generateFooterWithMessages and split imports to keep generateWorkflowIdMarker from generate_footer.cjs |
| actions/setup/js/close_pull_request.cjs | Updated import to use generateFooterWithMessages |
| actions/setup/js/close_entity_helpers.cjs | Updated import to use generateFooterWithMessages |
| actions/setup/js/generate_footer.cjs | Removed legacy generateFooter function, file system dependencies, and related helper imports |
| actions/setup/js/generate_footer.test.cjs | Removed all tests for the legacy generateFooter function and associated test setup for prompts directory |
| actions/setup/js/pr_review_buffer.test.cjs | Updated test setup to use GH_AW_SAFE_OUTPUT_MESSAGES environment variable instead of creating temporary prompts directory files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
1. Rendered footer diffOld ( New ( Text differences in defaults:
Note: 2. Feature comparison
All features from the old version are present. The new version adds customizability via |
|
Looks good. Some test fixes needed. |
|
looks like the same tests are failing on main #15568 |
Fixes #15564 and ensures that the footer can be customized no matter where it's used