Skip to content

Commit 2547d75

Browse files
authored
MINOR Update asf.yaml collaborators (#17345)
Reviewers: Josep Prat <[email protected]>
1 parent cfd7d94 commit 2547d75

File tree

2 files changed

+12
-25
lines changed

2 files changed

+12
-25
lines changed

.asf.yaml

+8-23
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,22 @@
1616
# under the License.
1717

1818
notifications:
19-
20-
19+
20+
2121
pullrequests: [email protected]
2222
jira_options: link label
2323

24-
# This list allows you to trigger builds on pull requests. It can have a maximum of 10 people.
25-
# https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=Git+-+.asf.yaml+features#Git.asf.yamlfeatures-JenkinsPRwhitelisting
26-
jenkins:
27-
github_whitelist:
28-
- FrankYang0529
29-
- kamalcph
24+
# This list allows you to triage pull requests and trigger workflow runs on GitHub Actions. It can have a maximum of 10 collaborators.
25+
# Read more here: https://github.com/apache/infrastructure-asfyaml
26+
github:
27+
collaborators:
28+
- AndrewJSchofield
3029
- apoorvmittal10
31-
- lianetm
3230
- brandboat
33-
- kirktrue
34-
- nizhikov
35-
- OmniaGM
3631
- dongnuo123
3732
- frankvicky
38-
39-
# This list allows you to triage pull requests. It can have a maximum of 10 people.
40-
# https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=Git+-+.asf.yaml+features#Git.asf.yamlfeatures-AssigningexternalcollaboratorswiththetriageroleonGitHub
41-
github:
42-
collaborators:
4333
- FrankYang0529
44-
- kamalcph
45-
- apoorvmittal10
46-
- lianetm
47-
- brandboat
4834
- kirktrue
35+
- m1a2st
4936
- nizhikov
5037
- OmniaGM
51-
- dongnuo123
52-
- frankvicky

committer-tools/refresh_collaborators.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ def update_local_yaml_content(yaml_file_path: str, collaborators: List[str]) ->
111111
f"Updating {yaml_file_path} with {len(collaborators)} new collaborators"
112112
)
113113

114+
collaborators.sort(key=str.casefold)
115+
114116
with open(yaml_file_path, "r", encoding="utf-8") as file:
115117
yaml: YAML = YAML()
118+
yaml.indent(mapping=2, sequence=4, offset=2)
116119
yaml_content: dict = yaml.load(file)
117120

118-
yaml_content["jenkins"]["github_whitelist"] = collaborators
119-
yaml_content["github"]["collaborators"] = collaborators.copy()
121+
yaml_content["github"]["collaborators"] = collaborators
120122

121123
with open(yaml_file_path, "w", encoding="utf-8") as file:
122124
yaml.dump(yaml_content, file)

0 commit comments

Comments
 (0)