Skip to content

Commit 0fea916

Browse files
djaglowskiXinRanZhAWS
authored andcommitted
[chore][mdatagen] Add flag to indicate that component is seeking new code owners (open-telemetry#31167)
See open-telemetry#31115
1 parent 2bd469a commit 0fea916

File tree

8 files changed

+39
-3
lines changed

8 files changed

+39
-3
lines changed

cmd/mdatagen/main_test.go

+17
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,23 @@ Some info about a component
179179
Emeritus: []string{"bar"},
180180
},
181181
},
182+
{
183+
name: "readme with status with codeowners and seeking new",
184+
markdown: `# Some component
185+
186+
<!-- status autogenerated section -->
187+
<!-- end autogenerated section -->
188+
189+
Some info about a component
190+
`,
191+
outputFile: "readme_with_status_codeowners_and_seeking_new.md",
192+
componentClass: "receiver",
193+
distros: []string{"contrib"},
194+
codeowners: &Codeowners{
195+
Active: []string{"foo"},
196+
SeekingNew: true,
197+
},
198+
},
182199
{
183200
name: "readme with status with codeowners",
184201
markdown: `# Some component

cmd/mdatagen/statusdata.go

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ type Codeowners struct {
2828
Active []string `mapstructure:"active"`
2929
// Emeritus codeowners
3030
Emeritus []string `mapstructure:"emeritus"`
31+
// Whether new codeowners are being sought
32+
SeekingNew bool `mapstructure:"seeking_new"`
3133
}
3234

3335
type Status struct {

cmd/mdatagen/templates/readme.md.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{{- if .Status.Codeowners }}
2424
{{- $codeowners := userLinks .Status.Codeowners.Active }}
2525
{{- $emeritus := userLinks .Status.Codeowners.Emeritus }}
26-
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | {{ stringsJoin $codeowners ", " }} |
26+
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | {{ stringsJoin $codeowners ", " }} {{ if .Status.Codeowners.SeekingNew }}\| Seeking more code owners! {{ end }}|
2727
{{- if $emeritus }}
2828
| Emeritus | {{ stringsJoin $emeritus ", " }} |
2929
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Some component
2+
3+
<!-- status autogenerated section -->
4+
| Status | |
5+
| ------------- |-----------|
6+
| Stability | [beta]: metrics |
7+
| Distributions | [contrib] |
8+
| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Areceiver%2Ffoo%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Areceiver%2Ffoo) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Areceiver%2Ffoo%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Areceiver%2Ffoo) |
9+
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@foo](https://www.github.com/foo) \| Seeking more code owners! |
10+
11+
[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta
12+
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
13+
<!-- end autogenerated section -->
14+
15+
Some info about a component

extension/storage/filestorage/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Stability | [beta] |
77
| Distributions | [contrib], [observiq], [splunk], [sumo] |
88
| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Aextension%2Ffilestorage%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Aextension%2Ffilestorage) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Aextension%2Ffilestorage%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Aextension%2Ffilestorage) |
9-
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@djaglowski](https://www.github.com/djaglowski) |
9+
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@djaglowski](https://www.github.com/djaglowski) \| Seeking more code owners! |
1010

1111
[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta
1212
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib

extension/storage/filestorage/metadata.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ status:
77
distributions: [contrib, observiq, splunk, sumo]
88
codeowners:
99
active: [djaglowski]
10+
seeking_new: true

receiver/syslogreceiver/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Stability | [alpha]: logs |
77
| Distributions | [contrib], [observiq], [splunk], [sumo] |
88
| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Areceiver%2Fsyslog%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Areceiver%2Fsyslog) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Areceiver%2Fsyslog%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Areceiver%2Fsyslog) |
9-
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@djaglowski](https://www.github.com/djaglowski) |
9+
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@djaglowski](https://www.github.com/djaglowski) \| Seeking more code owners! |
1010

1111
[alpha]: https://github.com/open-telemetry/opentelemetry-collector#alpha
1212
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib

receiver/syslogreceiver/metadata.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ status:
77
distributions: [contrib, splunk, observiq, sumo]
88
codeowners:
99
active: [djaglowski]
10+
seeking_new: true
1011

1112
tests:
1213
config:

0 commit comments

Comments
 (0)