Add shared component for asset upload and discussion creation pattern#10779
Closed
Add shared component for asset upload and discussion creation pattern#10779
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor asset upload and discussion creation workflow
Add shared component for asset upload and discussion creation pattern
Jan 20, 2026
This was referenced Jan 20, 2026
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.
15-20 workflows repeat the same 30-40 line pattern for uploading charts and embedding them in GitHub Discussions. This creates a shared component documenting the standard pattern.
Changes
Created
.github/workflows/shared/asset-discussion-pattern.md:General/audits/reports), expiration (expires: 3d), auto-close previous (close-older-discussions: true)Usage
Workflows like
daily-code-metrics.md,daily-issues-report.md, andcopilot-session-insights.mdcan now import this instead of duplicating the pattern inline.Original prompt
This section details on the original issue you should resolve
<issue_title>[refactoring] Create asset upload and discussion creation pattern skill</issue_title>
<issue_description>## Skill Overview
Create a shared component that documents the standard workflow pattern for uploading charts/assets and embedding them in GitHub Discussions. Currently 15-20 workflows repeat similar instructions for this pattern, leading to inconsistency and duplication.
Current Usage
This pattern appears in the following workflows:
daily-code-metrics.md(lines 203-231) - Uploads 6 charts, embeds in discussiondaily-issues-report.md(lines 228-263) - Uploads 2 charts, embeds in discussiondeep-report.md- Creates discussion with assetscopilot-session-insights.md- Uploads session chartspython-data-charts.md- Chart generation and uploaddaily-performance-summary.md- Performance visualizationsdaily-observability-report.md- Observability chartsdaily-team-evolution-insights.md- Team activity chartscopilot-pr-nlp-analysis.md- NLP visualization chartsprompt-clustering-analysis.md- Clustering visualizationsrepo-tree-map.md- Repository treemap visualizationportfolio-analyst.md- Portfolio chartsstatic-analysis-report.md- Analysis chartsvideo-analyzer.md- Video analysis framesorg-health-report.md- Organization health chartsEstimated: 15-20 workflows create discussions with uploaded assets
Proposed Shared Component
File:
.github/workflows/shared/asset-discussion-pattern.mdConfiguration:
Standard Workflow Pattern
Phase 1: Generate Assets
Generate your charts, images, or other assets:
Chart Quality Standards (for image assets):
Phase 2: Upload Assets
Upload each asset and collect the returned URLs:
Important Notes:
issue_activity_trends.pngnotchart1.png)Phase 3: Create Discussion with Embedded Assets
Create a discussion with embedded asset URLs:
Discussion Configuration Best Practices
Title Formatting
Use descriptive, dated titles:
Daily Code Metrics Report - 2026-01-20[daily-issues] Issue Analysis - 2026-01-20Report,Analysis(too generic)Category Selection
Choose appropriate categories:
General: Informational reports, summariesaudits: Security, compliance, health checksreports: Data analysis, metrics, trendsQ&A: Question-based reports requiring responseClose Older Discussions
...
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.