Skip to content

Add contributor sorting option to compile_contributors.py - #32549

Open
Tianlei Wu (tianleiwu) wants to merge 2 commits into
mainfrom
tlwu/sort_contributor
Open

Add contributor sorting option to compile_contributors.py#32549
Tianlei Wu (tianleiwu) wants to merge 2 commits into
mainfrom
tlwu/sort_contributor

Conversation

@tianleiwu

@tianleiwu Tianlei Wu (tianleiwu) commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

  • Add --sort-by to order the contributor summary by contribution count or contributor name.
  • Preserve contribution-count ordering as the default, with a deterministic contributor-name tie-breaker.
  • Add focused unit tests for both sorting modes.
  • Add claude to bot list

Motivation and Context

Release-note contributor acknowledgments should be alphabetized, while existing workflows can continue sorting by contribution count.

Testing

  • .venv\Scripts\python.exe tools\python\test_compile_contributors.py
  • .venv\Scripts\python.exe -m ruff check --config pyproject.toml tools/python/compile_contributors.py tools/python/test_compile_contributors.py
  • .venv\Scripts\python.exe -m ruff format --check --config pyproject.toml tools/python/compile_contributors.py tools/python/test_compile_contributors.py

Copilot AI balanced review requested due to automatic review settings September 10, 2026 16:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The implementation matches the stated behavior and includes focused coverage.

Pull request overview

Adds configurable contributor-summary ordering while preserving contribution-count sorting by default.

Changes:

  • Adds --sort-by with contribution and alphabetical modes.
  • Adds deterministic tie-breaking and focused unit tests.
File summaries
File Description
tools/python/compile_contributors.py Implements and documents configurable sorting.
tools/python/test_compile_contributors.py Tests both sorting modes.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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