feat: add disclosure-footer shorthand for AI authorship disclosure in safe-outputs#40000
Closed
Copilot wants to merge 3 commits into
Closed
feat: add disclosure-footer shorthand for AI authorship disclosure in safe-outputs#40000Copilot wants to merge 3 commits into
disclosure-footer shorthand for AI authorship disclosure in safe-outputs#40000Copilot wants to merge 3 commits into
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…e-outputs Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add built-in AI-authorship disclosure footer for safe-outputs
feat: add Jun 18, 2026
disclosure-footer shorthand for AI authorship disclosure in safe-outputs
Contributor
|
Hey
If you'd like a hand completing the implementation, here's a ready-to-use prompt:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every workflow that posts AI-generated content under a maintainer's token had to copy the same verbose footer string into
safe-outputs.messages.footer. This adds a single-toggle alternative.Changes
DefaultDisclosureFooterconstant (safe_outputs_messages_config.go) — canonical built-in disclosure text using standard template variables ({workflow_name},{agentic_workflow_url},{ai_credits_suffix},{history_link})disclosure-footerfrontmatter key (safe_outputs_config.go) — parsed aftermessages, so explicitmessages.footeralways wins. Supports:true→ built-in textfalse→ no-op{template: "..."}→ custom textTests (
safe_outputs_messages_test.go) — 5 cases covering all forms plus precedence ruleDocs (
reference/footers.md) — new "AI Authorship Disclosure Footer" sectionBefore / After
Before — repeated across 20+ workflows:
After — one toggle:
Or with a custom template: