Add GitHub Action for efficient weekly QuantEcon organization reporting with repository exclusion and optimized CI workflows - #206
Conversation
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
|
@copilot I noticed the comment Fetches all repositories from QuantEcon organization Are we able to filter and list only the repositories that have had changes in the past week? |
…vity Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Yes, excellent suggestion! I've optimized the action to use the GitHub Search API to filter repositories by recent activity instead of fetching all repositories. The updated implementation:
This is much more efficient, especially for organizations with many repositories where only a subset are actively maintained. The change is in commit b2f0214. |
|
@copilot I noticed the |
…nges Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Good point! I've updated the test-warning-check.yml workflow to only run when relevant files change. The workflow now includes path filters for:
This prevents the tests from running unnecessarily on every PR and only triggers when changes are made to the check-warnings action or its tests. The workflow_dispatch trigger is still available for manual runs when needed. Commit: 5d834e0 |
|
@copilot this action is looking great. We have a few repos that are automatically updated such as |
…tories Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
I've added the exclude-repos: 'lecture-python.notebooks,another-repo'The feature accepts a comma-separated list of repository names to exclude from the weekly report. I've updated the workflow example to demonstrate excluding Commit: 82a1d1e |
…tories Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
|
@copilot can we please revert all changes to |
|
I have opened issue to document the reporting from |
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
I've reverted all changes to the check-warnings action back to its original state. The exclude-paths feature has been completely removed from both the action.yml file and the README documentation. The action is now exactly as it was before any modifications were made. Commit: 45e6ede |
|
@copilot given the changes being made to this file: |
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
The tests were running because I had included Commit: adccc2a
Thanks for opening issue #207 to document the reporting from check-warnings. That will help track the separate concern about test discovery in the repository. |
This PR implements a comprehensive weekly reporting system for the QuantEcon organization with smart repository filtering and configurable repository exclusion for optimal performance, plus CI workflow optimizations.
What's Added
🔧 New Reusable Action:
weekly-report.github/actions/weekly-report/🚀 Smart Repository Filtering
The action uses GitHub's Search API to identify repositories with recent activity before processing:
org:QuantEcon pushed:>YYYY-MM-DD🎯 Repository Exclusion Feature
exclude-reposparameter accepts comma-separated list of repository nameslecture-python.notebooksthat don't need metrics tracking📊 Report Contents
The generated report includes exactly what was requested:
🕐 Automated Scheduling
workflow_dispatch📋 Example Report Format
🎯 CI/CD Optimizations
test-warning-checkworkflow now only runs when the check-warnings action or its test files change:.github/actions/check-warnings/**(the action itself)test/check-warnings/**(associated test files)✅ Quality Assurance
The action integrates seamlessly with the existing codebase and follows the same patterns as the current
check-warningsaction. The repository filtering, exclusion capabilities, and CI workflow optimizations ensure efficient operation and resource usage while providing flexibility to skip repos that don't require tracking.Fixes #205.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.