Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

The update-discussion safe output was using the legacy generateFooter function instead of generateFooterWithMessages, preventing users from customizing footer messages via the messages configuration.

Changes

  • Updated update_discussion.cjs: Switched from generateFooter to generateFooterWithMessages to respect custom message configuration
  • Added test coverage: Verified custom footer templates are properly applied when GH_AW_SAFE_OUTPUT_MESSAGES is configured
  • Updated example workflow: Demonstrated the feature in .github/workflows/dev.md

Usage

safe-outputs:
  update-discussion:
    body:
  messages:
    footer: "> 📝 Generated by [{workflow_name}]({run_url})"
    footer-install: "> Install with `gh aw add {workflow_source}`"

Supports template variables: {workflow_name}, {run_url}, {workflow_source}, {triggering_number}

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:

  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login e-github-app-token.git sh /usr/bin/infocmp "prettier" --wrigit gh node infocmp -1 it/ref/tags/v5 node (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login k/gh-aw/gh-aw/.g--detach --jq /usr/lib/git-core/git --write ../../**/*.json 64/bin/go /usr/lib/git-core/git remo�� tags/v6 (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login b/workflows -importcfg f2aadee764fa37d99547772697e937842b7/log.json l -w -buildmode=exe e/git -o om/actions/checkout.git om/actions/checkout.git /usr/bin/git by/b1104e9998745sh main -lang=go1.25 git (http block)

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

Original prompt

make the message footer of update-discussion customizable through the frontmatter "messages" object


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 19, 2025 06:39
- Update update_discussion.cjs to use generateFooterWithMessages
- Add test to verify custom messages work with update-discussion
- Update dev.md workflow to demonstrate the feature
- All tests pass

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Make message footer customizable via frontmatter feat: Enable custom footer messages for update-discussion Dec 19, 2025
Copilot AI requested a review from pelikhan December 19, 2025 06:52
@pelikhan pelikhan marked this pull request as ready for review December 19, 2025 06:55
@pelikhan pelikhan merged commit 809081d into main Dec 19, 2025
123 checks passed
@pelikhan pelikhan deleted the copilot/customize-message-footer branch December 19, 2025 07:03
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