MCPcopy Create free account
hub / github.com/apache/datafusion / sort_committers

Function sort_committers

docs/scripts/update_committer_list.py:140–144  ·  view source on GitHub ↗

Sort committers by role ('PMC Chair', PMC, Committer) then by apache id.

(committers: List[Committer])

Source from the content-addressed store, hash-verified

138
139
140def sort_committers(committers: List[Committer]) -> List[Committer]:
141 """Sort committers by role ('PMC Chair', PMC, Committer) then by apache id."""
142 role_order = {'PMC Chair': 0, 'PMC': 1, 'Committer': 2}
143
144 return sorted(committers, key=lambda c: (role_order.get(c.role, 3), c.apache.lower()))
145
146
147def update_governance_file(file_path: str):

Callers 1

update_governance_fileFunction · 0.85

Calls 2

lowerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…