Route Agent of the Day chart PNGs through upload-asset and enforce text-only PR patches#32403
Merged
pelikhan merged 2 commits intoMay 15, 2026
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix daily workflow optimization for blog writer
Route Agent of the Day chart PNGs through May 15, 2026
upload-asset and enforce text-only PR patches
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the “Daily Agent of the Day” blog-writer workflow instructions and compiled lockfile to prevent binary (PNG) files from being included in create_pull_request patches, routing images through the asset-upload safe-output instead.
Changes:
- Narrow
create-pull-requestallowed-filesfromdocs/**todocs/src/content/docs/**. - Update the workflow prompt to require text-only PR patches and direct chart PNG handling through the asset upload path.
- Regenerate the compiled
.lock.ymlto apply updated prompt/safe-output constraints.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/daily-agent-of-the-day-blog-writer.md | Tightens PR patch scope and updates instructions to avoid committing PNGs to PRs. |
| .github/workflows/daily-agent-of-the-day-blog-writer.lock.yml | Recompiled workflow lockfile reflecting the updated safe-output config and prompt content. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
| - one to optimize SEO metadata (`seoDescription`, `linkedPostText`). | ||
| - Use `agentic-workflows` `logs` and `audit` results as live evidence and include links to referenced issues/PRs. | ||
| - If a chart image is available, include it in the post. | ||
| - The `create_pull_request` patch must contain only text changes under `docs/src/content/docs/**`; never include binary assets in the PR patch — use `upload-asset` for those. |
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.
✨ Enhancement
The Daily Agent of the Day workflow was failing downstream in
safe_outputsbecause the prompt directed the agent to commit a PNG into the PR patch, creating a binary-heavy diff. This change aligns prompt instructions and safe-output policy so chart images are uploaded viaupload-assetand PR patches remain text-only.What does this improve?
create_pull_requestpatches from carrying binary image diffs.upload-assetsafe-output path.Why is this valuable?
safe_outputsfailure.Implementation approach:
.github/workflows/daily-agent-of-the-day-blog-writer.md:safe-outputs.create-pull-request.allowed-files:docs/**→docs/src/content/docs/**create_pull_requestmust contain only text changes underdocs/src/content/docs/**; binary assets must useupload-asset.upload-assetsafe-output and use returned URL in markdown (nogit addfor PNGs)..github/workflows/daily-agent-of-the-day-blog-writer.lock.ymlto apply the updated prompt and safe-output constraints.