feat: embed file content in message template via {path} placeholder#1665
Draft
feat: embed file content in message template via {path} placeholder#1665
{path} placeholder#1665Conversation
Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Wrap file output with triple backticks
Add Mar 13, 2026
prefix and suffix inputs to wrap comment body
Copilot stopped work on behalf of
marocchino due to an error
March 13, 2026 12:57
Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
Copilot
AI
changed the title
Add
feat: embed file content in message template via Mar 13, 2026
prefix and suffix inputs to wrap comment body$path placeholder
Co-authored-by: marocchino <128431+marocchino@users.noreply.github.com>
Copilot
AI
changed the title
feat: embed file content in message template via
feat: embed file content in message template via Mar 13, 2026
$path placeholder{path} placeholder
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.
Wrapping file output in a code block previously required piping through
$GITHUB_ENVwith a heredoc. This adds support for using bothpathandmessagetogether, embedding file content via a{path}placeholder.Changes
src/config.ts: Whenpathandmessageare both provided andmessagecontains{path}, file content is substituted at every occurrence. Falls back to existing behavior (file content used directly) when no placeholder is present.action.yml: Removedprefix/suffixinputs; updatedmessageandpathdescriptions to document the placeholder.README.md: Added usage example; updated input reference docs.__tests__/config.test.ts: Tests for single-file embed, multi-occurrence replacement, multi-file glob, and no-placeholder fallback.Usage
{path}is intentionally brace-style (not$path) — safe from shell expansion and unlikely to appear in normal message text.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.