Skip to content

Commit 4938db6

Browse files
authored
Merge pull request #500 from cloudfoundry/github-org-automation
Generate teams and repo access for Admin WG
2 parents 731e24e + 5dd87af commit 4938db6

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

org/org_management.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ def load_from_project(self):
6464
OrgGenerator._validate_contributors(contributors_yaml)
6565
self.contributors = set(contributors_yaml["contributors"])
6666

67-
# working group charters (including TOC), ignore WGs without yaml block
67+
# working group charters (including TOC and ADMIN), ignore WGs without yaml block
6868
self.toc = OrgGenerator._read_wg_charter(f"{_SCRIPT_PATH}/../toc/TOC.md")
69-
for wg_file in glob.glob(f"{_SCRIPT_PATH}/../toc/working-groups/*.md"):
69+
wg_files = glob.glob(f"{_SCRIPT_PATH}/../toc/working-groups/*.md")
70+
wg_files += glob.glob(f"{_SCRIPT_PATH}/../toc/ADMIN.md")
71+
for wg_file in wg_files:
7072
if not wg_file.endswith("/WORKING-GROUPS.md"):
7173
wg = OrgGenerator._read_wg_charter(wg_file)
7274
if wg:

org/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The projects, teams and org membership in github org 'cloudfoundry' are maintain
55
- [cloudfoundry.yml](https://github.com/cloudfoundry/community/blob/main/org/cloudfoundry.yml) - static org configuration and projects
66
- [contributors.yml](https://github.com/cloudfoundry/community/blob/main/org/contributors.yml) - list of [Contributors](https://github.com/cloudfoundry/community/blob/main/toc/ROLES.md#contributor)
77
- [TOC.md](https://github.com/cloudfoundry/community/blob/main/toc/TOC.md) - projects owned by the TOC (specified in yaml block)
8+
- [ADMIN.md](https://github.com/cloudfoundry/community/blob/main/toc/ADMIN.md) - special WG for maintaining administrative repositories owned by CFF staff
89
- [Working Group Charters](https://github.com/cloudfoundry/community/tree/main/toc/working-groups) - projects owned by working groups (specified in yaml block)
910

1011
Once approved and merged, the github action [org-management.yml](https://github.com/cloudfoundry/community/actions/workflows/org-management.yml) compiles a resulting cloudfoundry org configuration from the files mentioned above and applies it with [peribolos](https://github.com/kubernetes/test-infra/tree/master/prow/cmd/peribolos).

org/test_org_management.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ def test_cf_org(self):
338338
self.assertEqual("Technical Oversight Committee", o.toc["name"])
339339
self.assertGreater(len(o.contributors), 100)
340340
self.assertGreater(len(o.working_groups), 5)
341+
self.assertEqual(1, len([wg for wg in o.working_groups if "Admin" in wg["name"]]))
341342
self.assertEqual(1, len([wg for wg in o.working_groups if "Deployments" in wg["name"]]))
342343
# packeto WG charter has no yaml block
343344
self.assertEqual(0, len([wg for wg in o.working_groups if "packeto" in wg["name"].lower()]))

toc/ADMIN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ execution_leads:
2323
github: christopherclark
2424
- name: Ram Iyengar
2525
github: ramiyengar
26+
technical_leads: []
2627
bots: []
2728
areas:
2829
- name: Admin

0 commit comments

Comments
 (0)