Add Contributor Compilation Tool for Release Notes#27284
Merged
Conversation
4b408bf to
57b6f66
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Python tool to generate contributor attribution for ONNX Runtime release notes by diffing git history between a base and target ref, with special handling for cherry-pick “meta-PRs”.
Changes:
- Introduces
tools/python/compile_contributors.pyto collect PRs/commits between two refs, expand cherry-pick rounds, and attribute authors. - Outputs auditable artifacts (
detail.csv,logs.txt) plus a markdown-ready contributor summary. - Implements contributor consolidation/deduping (case-insensitive logins) and bot filtering.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
hariharans29
reviewed
Feb 9, 2026
hariharans29
approved these changes
Feb 9, 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.
Summary
This PR introduces a new tool,
compile_contributors.py, designed to automate and improve the accuracy of contributor attribution for ONNX Runtime release notes. It accurately identifies original authors even in complex scenarios involving release cherry-pick rounds and meta-PRs.Key Features
1. Robust Meta-PR & Cherry-Pick Expansion
gh).2. High-Fidelity Contributor Attribution
3. Traceability & Output
logs.txtfile in the output directory, providing a step-by-step audit trail of why every PR was included, expanded, or skipped.detail.csvmapping every change to its original PR, title, authors, and target commit.--scan-depthargument to allow users to control the lookback window for deduplication or meta-PR expansion analysis.Verification
The tool has been validated across several release scenarios:
shell=Falsehandling prevents command injection via branch names.Usage
Requirements:
gh) must be installed and authenticated.capture_output)