Skip to content

Commit 2e65ba1

Browse files
authored
Merge pull request #7057 from Priyankasaggu11929/automate-listing-subprojects
Auto generate list of subprojects & working-groups from annual report year
2 parents d78fbdc + a0bf20a commit 2e65ba1

File tree

4 files changed

+376
-56
lines changed

4 files changed

+376
-56
lines changed

generator/annual-report/sig_report.tmpl

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
-
1616

1717
{{$releases := getReleases}}
18-
3. KEP work in {{lastYear}} (v{{$releases.Latest}}, v{{$releases.LatestMinusOne}}, v{{$releases.LatestMinusTwo}}):
1918
{{$owingsig := .Dir}}
19+
3. KEP work in {{lastYear}} (v{{$releases.Latest}}, v{{$releases.LatestMinusOne}}, v{{$releases.LatestMinusTwo}}):
2020
{{- range $stage, $keps := filterKEPs $owingsig $releases}}
2121
{{ $stage }}:
2222
{{- range $keps}}
@@ -71,43 +71,62 @@
7171

7272
Include any other ways you measure group membership
7373

74-
## Subprojects
74+
## [Subprojects](https://git.k8s.io/community/{{.Dir}}#subprojects)
75+
{{- define "subprojects" -}}
76+
{{- $owingsig := .Dir -}}
77+
{{- if .New}}
7578

76-
<!--
77-
In future, this will be generated from delta of sigs.yaml from $YYYY-01-01 to $YYYY-12-31
78-
Manually visible via `git diff HEAD@{$YYYY-01-01} HEAD@{$YYYY-12-31} -- $sig-id/README.md`
79-
-->
79+
**New in {{lastYear}}:**
80+
{{range .New}}
81+
- {{.}}
82+
{{- end}}
83+
{{- end}}
8084

81-
New in $YYYY:
82-
- [$subproject-name](https://git.k8s.io/community/$sig-id#$subproject-name)
83-
-
85+
{{- if .Retired}}
8486

85-
Retired in $YYYY:
86-
- [$subproject-name](https://git.k8s.io/community/$sig-id#$subproject-name)
87-
-
87+
**Retired in {{lastYear}}:**
88+
{{range .Retired}}
89+
- {{.}}
90+
{{- end}}
91+
{{- end}}
8892

89-
Continuing:
90-
- [$subproject-name](https://git.k8s.io/community/$sig-id#$subproject-name)
91-
-
93+
{{- if .Continuing}}
9294

93-
## Working groups
95+
**Continuing:**
96+
{{range .Continuing}}
97+
- {{.}}
98+
{{- end}}
99+
{{- end}}
100+
{{- end}}
94101

95-
<!--
96-
In future, this will be generated from delta of sigs.yaml from $YYYY-01-01 to $YYYY-12-31
97-
Manually visible via `git diff HEAD@{$YYYY-01-01} HEAD@{$YYYY-12-31} -- $sig-id/README.md`
98-
-->
102+
{{ template "subprojects" (getCategorizedSubprojects .Dir) }}
99103

100-
New in $YYYY:
101-
- [$wg-name](https://git.k8s.io/community/$wg-id/) ([$YYYY report](https://git.k8s.io/community/$wg-id/annual-report-$YYYY.md))
102-
-
103104

104-
Retired in $YYYY:
105-
- [$wg-name](https://git.k8s.io/community/$wg-id/) ([$YYYY report](https://git.k8s.io/community/$wg-id/annual-report-$YYYY.md))
106-
-
105+
## [Working groups](https://git.k8s.io/community/{{.Dir}}#working-groups)
106+
{{ $categorizedWorkingGroups := getCategorizedWorkingGroups .Dir }}
107+
{{- if $categorizedWorkingGroups.New}}
107108

108-
Continuing:
109-
- [$wg-name](https://git.k8s.io/community/$wg-id/) ([$YYYY report](https://git.k8s.io/community/$wg-id/annual-report-$YYYY.md))
110-
-
109+
**New in {{lastYear}}:**
110+
{{range $categorizedWorkingGroups.New }}
111+
- {{.}}
112+
{{- end}}
113+
{{- end}}
114+
115+
{{- if $categorizedWorkingGroups.Retired}}
116+
117+
**Retired in {{lastYear}}:**
118+
{{range $categorizedWorkingGroups.Retired }}
119+
- {{.}}
120+
{{- end}}
121+
{{- end}}
122+
123+
{{- if $categorizedWorkingGroups.Continuing}}
124+
125+
**Continuing:**
126+
{{range $categorizedWorkingGroups.Continuing }}
127+
- {{ . }}
128+
{{- end}}
129+
{{- end}}
111130

112131
## Operational
113132

0 commit comments

Comments
 (0)