Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Document footer: false in safe outputs ✅

Plan

  • Understand the footer: false feature from code and tests
  • Add comprehensive documentation for footer: false in safe-outputs.md
    • Add global footer control section
    • Add per-handler footer control section
    • Document what gets omitted vs. preserved (XML markers)
    • Add examples showing both global and local usage
    • Add best practices and use cases
  • Build documentation to validate changes
  • Review build output and fix any issues
  • Store memory for future reference
  • Add documentation about customizing messages in Footer Control section
  • Refactor footer content into separate footers.md file
  • Document how to use XML markers to search for generated items
  • Clean up safe-outputs.md examples to reduce footer: false usage

Summary

Successfully documented the footer: false feature in the safe-outputs reference documentation. This feature allows workflows to control whether AI-generated footers are added to created and updated GitHub items.

Documentation Structure

New File: docs/src/content/docs/reference/footers.md

  • Dedicated page for footer control documentation
  • Complete coverage of global and per-handler footer control
  • Comprehensive section on searching for workflow-created items using XML markers
  • XML marker preservation details with multiple search examples
  • Use cases and examples with footer: false
  • Customizing footer messages with messages.footer template
  • Clear guidance on when to use footer: false vs messages.footer

Updated: docs/src/content/docs/reference/safe-outputs.md

  • Replaced detailed Footer Control section with concise reference
  • Links to dedicated footers.md page
  • Cleaned up examples: Removed footer: false from configuration examples
  • Kept single TIP reference in create-issue section pointing to footers.md
  • Maintains context while improving navigation and reducing clutter

Key Features Documented

  1. Global Control: safe-outputs.footer: false hides footers for all outputs
  2. Per-Handler Override: Individual handlers can override the global setting
  3. Searchability Preserved: XML markers (workflow-id, tracker-id) remain for tracking
  4. Backward Compatible: Defaults to true (show footer) for existing workflows
  5. Custom Messages: Use messages.footer template to customize footer text instead of hiding
  6. Use Cases: Clean content, custom branding, minimal documentation updates
  7. XML Marker Search: Detailed examples of how to find workflow-created items using GitHub search

XML Marker Search Examples Documented

The footers.md page includes comprehensive examples of searching for workflow-created items:

  • Finding open issues by workflow
  • Finding pull requests by workflow
  • Finding all items across an organization
  • Finding comments by workflow
  • Search tips and best practices
  • Link to GitHub's advanced search documentation

Documentation Organization

  • Footer-specific content: Consolidated in footers.md with all examples and use cases
  • Safe-outputs.md: Clean configuration examples without footer clutter, single reference to footers.md
  • All footer examples and footer: false usage now in the dedicated footer control page

Build Validation

✅ Documentation built successfully with no errors
✅ All internal links validated
✅ New footers.md page generated (115 total pages)
✅ Improved documentation organization with cleaner examples

Original prompt

Document footer: false in safe outputs

Custom agent used: technical-doc-writer
AI technical documentation writer for GitHub Actions library using GitHub Docs voice


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove document footer in safe outputs Document footer: false configuration for safe outputs Feb 12, 2026
Copilot AI requested a review from pelikhan February 12, 2026 15:23
@pelikhan
Copy link
Contributor

@copilot also document customizing messages in that section

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 12, 2026

@copilot also document customizing messages in that section

Added "Customizing Footer Messages" subsection in the Footer Control section (269d6dd).

The new subsection documents:

  • Using messages.footer template to customize footer text instead of hiding it
  • Example with custom branding
  • Clear guidance on when to use footer: false vs messages.footer
  • Link to full Custom Messages documentation for all available variables

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@pelikhan
Copy link
Contributor

@copilot move all footer content into a "footers.md" and refernce it from safe-outputs reference page.

Copilot AI changed the title Document footer: false configuration for safe outputs Document footer: false configuration and message customization for safe outputs Feb 12, 2026
@pelikhan
Copy link
Contributor

@copilot document how to use the xml markers to search for generated items

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 12, 2026

@copilot move all footer content into a "footers.md" and refernce it from safe-outputs reference page.

Moved footer content into separate /gh-aw/reference/footers/ page (cd5057c).

Changes:

  • Created docs/src/content/docs/reference/footers.md with all footer control documentation
  • Replaced detailed section in safe-outputs.md with concise reference and link
  • Fixed internal anchor reference in create-issue tip
  • All links validated successfully

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 12, 2026

@copilot document how to use the xml markers to search for generated items

Added comprehensive XML marker search documentation (d1fd115).

New "Searching for Workflow-Created Items" subsection includes:

  • Explanation that markers are always included regardless of footer setting
  • 4 search examples covering issues, PRs, organization-wide searches, and comments
  • Search tips with filtering options and GitHub advanced search link
  • Clear formatting with code blocks for copy-paste convenience

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Document footer: false configuration and message customization for safe outputs Document footer: false configuration, message customization, and XML marker search for safe outputs Feb 12, 2026
Copy link
Contributor

Choose a reason for hiding this comment

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

@copilot use less footer: false entries in examples. Only add to footer section

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed footer: false from all configuration examples in safe-outputs.md (cb12aa1).

Changes:

  • Removed footer field from 7 handler examples (create-issue, create-pull-request, create-discussion, update-issue, update-pull-request, update-discussion, update-release)
  • Removed 3 related NOTE callouts about footer field behavior
  • Kept single TIP reference in create-issue section linking to footers.md
  • All footer examples and documentation now consolidated in the dedicated footers.md page

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 12, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from pelikhan February 12, 2026 16:06
@pelikhan pelikhan marked this pull request as ready for review February 12, 2026 16:09
Copilot AI review requested due to automatic review settings February 12, 2026 16:09
@pelikhan pelikhan merged commit 699dc17 into main Feb 12, 2026
@pelikhan pelikhan deleted the copilot/remove-document-footer-from-outputs branch February 12, 2026 16:09
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 restructures and expands documentation for safe output footers by moving detailed guidance into a dedicated reference page and leaving a concise pointer in the main Safe Outputs reference.

Changes:

  • Added a new dedicated reference page for footer behavior/configuration (footer: false), footer message customization, and searching via XML markers.
  • Updated safe-outputs.md to include a brief TIP + a short “Footer Control” reference section linking to the new page.
  • Consolidated XML marker search guidance into the new page with multiple GitHub search examples.

Reviewed changes

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

File Description
docs/src/content/docs/reference/safe-outputs.md Adds a TIP and a concise “Footer Control” section that links to the new dedicated footer documentation.
docs/src/content/docs/reference/footers.md Introduces the new dedicated Footer Control reference page with configuration, preserved markers, and search examples.

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

When `footer: false` is set:
- **Visible footer content is omitted** - No AI-generated attribution text appears in the item body
- **XML markers are preserved** - Hidden workflow-id and tracker-id markers remain for searchability
- **All safe output types affected** - Applies to create-issue, create-pull-request, create-discussion, update-issue, update-discussion, and update-release
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The bullet "All safe output types affected" is misleading here because footer only applies to specific create/update handlers (as listed), not every safe output type. Suggest rewording to something like "All footer-capable safe output types" or "Applies to: ..." without implying universal coverage.

Suggested change
- **All safe output types affected** - Applies to create-issue, create-pull-request, create-discussion, update-issue, update-discussion, and update-release
- **Applies to footer-capable handlers** - create-issue, create-pull-request, create-discussion, update-issue, update-discussion, and update-release

Copilot uses AI. Check for mistakes.

1. **Workflow-id marker** - Hidden HTML comment for search and tracking:
```html
<!-- gh-aw-workflow-id: WORKFLOW_NAME -->
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

In the workflow-id marker example, the placeholder says WORKFLOW_NAME, but the value is the workflow ID (derived from the workflow Markdown filename without the .md extension via GH_AW_WORKFLOW_ID). Using WORKFLOW_ID (or clarifying in the example) would avoid confusion with the human-readable workflow name.

Suggested change
<!-- gh-aw-workflow-id: WORKFLOW_NAME -->
<!-- gh-aw-workflow-id: WORKFLOW_ID -->

Copilot uses AI. Check for mistakes.
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.

2 participants