Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 2, 2025

Update Daily News Workflows with Trend Charts ✅

Summary

Successfully implemented trend chart generation for daily news agentic workflows as requested. Both workflows now generate exactly 2 professional trend charts showcasing key repository metrics.

Implementation Complete

  • Explore repository structure and understand workflow system
  • Update daily-news.md workflow with chart generation
  • Update daily-repo-chronicle.md workflow with chart generation
  • Add upload-assets safe output configuration
  • Add comprehensive 5-phase chart generation instructions
  • Import shared/trends.md for visualization guidance
  • Add GitHub API tools for data collection
  • Compile workflows successfully (241.5 KB and 237.5 KB)
  • Run and pass all unit tests
  • Run and pass linting
  • Verify job dependency graphs
  • Create implementation summary

Workflows Updated

  1. daily-news.md - Upbeat, friendly daily status report
  2. daily-repo-chronicle.md - Dramatic newspaper-style chronicle

Chart Specifications

Chart 1: Issues & Pull Requests Activity

  • Multi-line time series (30 days)
  • Tracks: Issues opened/closed, PRs opened/merged
  • 7-day moving average overlay
  • Professional seaborn styling

Chart 2: Commit Activity & Contributors

  • Dual-axis visualization (30 days)
  • Tracks: Daily commits, unique contributors
  • Bar/line combination chart
  • Clear annotations for patterns

Quality Standards

  • ✅ DPI 300+ for publication quality
  • ✅ 12x7 inch figure size for readability
  • ✅ Professional color palettes
  • ✅ Grid lines, labels, legends
  • ✅ Significant pattern annotations

Five-Phase Execution

  1. Data Collection: GitHub API queries for 30-day metrics
  2. Data Preparation: CSV files with date/metric columns
  3. Chart Generation: Python matplotlib/seaborn visualization
  4. Upload Charts: Asset upload for URL-addressable images
  5. Embed in Report: Markdown with chart URLs and analysis

Infrastructure Leveraged

  • Python environment (NumPy, Pandas, Matplotlib, Seaborn)
  • Trend visualization guidance (shared/trends.md)
  • GitHub API tools (issues, PRs, commits)
  • Asset upload system for image embedding
  • Discussion creation for reporting

Verification Results

✓ .github/workflows/daily-news.md (241.5 KB)
✓ .github/workflows/daily-repo-chronicle.md (237.5 KB)
✓ Compiled 2 workflow(s): 0 error(s), 0 warning(s)
✓ All unit tests pass
✓ Linting passes
✓ Python environment setup confirmed
✓ Upload assets job configured
✓ Job dependencies correct

Changes

  • .github/workflows/daily-news.md (+124 lines)
  • .github/workflows/daily-news.lock.yml (+362 lines)
  • .github/workflows/daily-repo-chronicle.md (+107 lines)
  • .github/workflows/daily-repo-chronicle.lock.yml (+1285 lines)
  • Total: 1,450 insertions, 428 deletions

Impact

When workflows execute, they will:
✨ Automatically collect repository metrics
✨ Generate 2 professional trend charts per report
✨ Upload charts as accessible assets
✨ Embed visualizations with analysis in discussions
✨ Provide visual insights into project health and activity

The workflows are production-ready and will enhance daily reporting with data-driven visualizations.

Original prompt

Update daily news agentic workflows to generate trend charts that showcase key metrics of the projects. 2 charts per report.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Added upload-assets safe output to both daily-news.md and daily-repo-chronicle.md
- Added comprehensive chart generation instructions for 2 trend charts
- Chart 1: Issues & Pull Requests Activity (multi-line chart)
- Chart 2: Commit Activity & Contributors (dual-axis chart)
- Imported shared/trends.md for trend visualization guidance
- Added GitHub API tools configuration for data collection
- Python environment and libraries already available via shared/python-dataviz.md
- Workflows compile successfully and tests pass

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review November 2, 2025 22:15
Copilot AI review requested due to automatic review settings November 2, 2025 22:15
@pelikhan pelikhan enabled auto-merge (squash) November 2, 2025 22:15
@pelikhan pelikhan merged commit 1dbb4f8 into main Nov 2, 2025
35 checks passed
@pelikhan pelikhan deleted the copilot/update-news-agentic-workflows branch November 2, 2025 22:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds trend chart visualization capabilities to two daily reporting workflows (daily-repo-chronicle and daily-news). The changes enable AI agents to generate and embed data visualization charts showing repository metrics like issues, PRs, and commit activity over time.

Key changes:

  • Adds upload-assets safe output configuration for uploading chart images to a Git branch
  • Integrates Python data visualization libraries (NumPy, Pandas, Matplotlib, Seaborn) via shared imports
  • Adds detailed chart generation instructions requiring exactly 2 trend charts per report
  • Implements a new upload_assets job to publish generated charts to orphaned Git branches
  • Adds cache-memory support for storing reusable Python helper functions

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/daily-repo-chronicle.md Adds chart requirements, imports trends/python-dataviz modules, configures upload-assets output
.github/workflows/daily-repo-chronicle.lock.yml Compiled workflow with Python setup, asset upload job, cache-memory configuration
.github/workflows/daily-news.md Similar chart visualization additions with GitHub API toolset configuration
.github/workflows/daily-news.lock.yml Compiled workflow matching daily-news.md changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


**Phase 4: Upload Charts**

1. Upload both charts using the `upload asset` tool
Copy link

Copilot AI Nov 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instruction refers to 'upload asset' tool but the actual configuration uses 'upload-assets' (hyphenated). This inconsistency could confuse users about which tool name to use. Recommend standardizing on either 'upload-assets' or 'upload_asset' throughout.

Suggested change
1. Upload both charts using the `upload asset` tool
1. Upload both charts using the `upload-assets` tool

Copilot uses AI. Check for mistakes.
## 📊 Trend Charts Requirement

**IMPORTANT**: Generate exactly 2 trend charts that showcase key metrics of the project. These charts should visualize trends over time to give readers a visual representation of the repository's activity patterns.

Copy link

Copilot AI Nov 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The requirement for 'exactly 2 trend charts' is rigid but lacks explanation of what happens if the AI generates fewer or more charts. Consider adding guidance on error handling or validation of chart count.

Suggested change
**Validation and Error Handling**: After generating the charts, validate that there are exactly 2 trend charts included in your output. If there are fewer than 2 charts, attempt to regenerate or supplement the missing chart(s) and clearly report the issue in your output. If there are more than 2 charts, remove the extras and note the correction. Always include a brief summary in your report indicating whether the chart count validation passed or if any corrective action was taken.

Copilot uses AI. Check for mistakes.
Comment on lines +36 to +44
allowed:
- list_pull_requests
- list_issues
- list_commits
- get_pull_request
- issue_read
- search_issues
- search_pull_requests
- list_discussions
Copy link

Copilot AI Nov 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using toolsets (which enable groups of tools), explicitly listing individual tools in 'allowed' creates redundancy. The 'default' toolset already includes most of these tools. Either remove the 'allowed' section and rely on toolsets, or remove 'toolsets' and use only the explicit 'allowed' list for clarity.

Suggested change
allowed:
- list_pull_requests
- list_issues
- list_commits
- get_pull_request
- issue_read
- search_issues
- search_pull_requests
- list_discussions

Copilot uses AI. Check for mistakes.
Copilot AI requested a review from pelikhan November 2, 2025 22:17
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