Add organization repository report workflow and report generation script#89
Open
mimiflynn wants to merge 16 commits into
Open
Add organization repository report workflow and report generation script#89mimiflynn wants to merge 16 commits into
mimiflynn wants to merge 16 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces automated org-level repository reporting for the morganstanley GitHub organization, generating CSV/Markdown outputs and publishing them via a scheduled/manual GitHub Actions workflow.
Changes:
- Added a GitHub Actions workflow to generate and commit/push an organization repository report to the
github-org-statsbranch on a weekly schedule or manual trigger. - Added a Python report generator that enumerates org repos and enriches them with “created by” (audit log, best-effort) and “most recent updater” (push event / commit fallback) metadata.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
reporting/generate_org_repo_report.py |
New Python script that queries GitHub APIs, normalizes timestamps, and writes CSV/Markdown reports. |
.github/workflows/org-repo-report.yml |
New scheduled/manual workflow that runs the generator and commits report artifacts to a dedicated branch. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…/.github into workflow-github-org-report
…WN_VALUE for missing repository creator information
…ads for organization repository report
Member
Author
|
Please see actions for output report. |
…ts on pull requests; add requirements files and .gitignore for Python project
…d accuracy in pull request validation
…port logic; update tests to maintain import consistency
…rt.yml to streamline execution
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.
Summary
This PR adds automated organization-level repository reporting for
morganstanleyvia GitHub Actions.What Changed
Added a new workflow:
.github/workflows/org-repo-report.ymlRuns on:
workflow_dispatch)0 6 * * 1)Uses
GH_TOKENto call GitHub APIs.Generates report outputs:
reporting/org-repo-report.csvreporting/org-repo-report.mdCommits and pushes generated report updates to branch:
github-org-statsAdded a new report generator script:
reporting/generate_org_repo_report.pyEnumerates all repos in the
morganstanleyorganization.Captures per-repo fields:
Uses latest
PushEventactor/time when available, with fallback to latest default-branch commit metadata.Handles pagination, basic retry/rate-limit behavior, and timestamp normalization to UTC.
Output Format
reporting/org-repo-report.csvreporting/org-repo-report.mdNotes / Requirements
GH_TOKENsecret is required.repo_created_bydepends on org audit log access; if unavailable (for example missingadmin:org), creator fields are marked unknown and the report notes the limitation.Validation