-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add codeowners tooling to this repository #11562
Comments
i'd like to work on this :) |
@mx-psi so after a quick review of the 4 links above, I noticed that probably only the issue related things will really work on this repo. That's because the codeowners file is not set up as granular here compared to the contrib repo so the PR related workflows, Update: the |
@mowies That's fair. There will be a long transition period in which a lot of things do not have a codeowner. I think we should ignore the I am working on a PR that should be ready on Wednesday adding more specific codeowners, maybe after that is ready it's a good time to see how this would work in practice |
The automations only look for specific labels as components anyways, so they already ignore the |
For some of the automations to work, I would also need to adjust the existing issue templates and probably mostly exchange them for the ones from the contrib repo. Should I add that to this PR or rather create a separate one? |
Ah, goes to show how little I know about this 😅 I don't understand the notifications issue you mention above. Could you explain with an example where we would get a lot of notifications?
Let's create a separate one for this |
I thought at first, that the |
Makes sense! Then yeah, the tooling will not be super useful until we have a more fleshed out list of codeowners, but it will be good as a start. |
Yeah I think it's still good to have them in place. As soon as the issue templates are updated, we at least get labels for components, which is already something 😄 |
some more ideas around this that i will extend over the course of implementing this:
EDIT: |
otel-go-contrib is also copying some of the scripts from collector-contrib, so that repository would be interested in that too. |
first PR for this is ready for review: #11756 |
@dmathieu could you please list a few tools that you'd like to see moved? EDIT: issue to move githubgen: open-telemetry/opentelemetry-collector-contrib#36691 |
Right now, we're using request codeowners review: |
### This PR - adds the githubgen tool as a dependency in internal/tools - uses githubgen to generate codeowners and issue template files - updates lots of metadata files by - taking the existing codeowners file and feeding the info from there back into the component metadata.yaml files or creating new metadata.yaml files where none existed yet - adds distributions.yaml as a basis the mostly already existing `distributions:` keys in metadata.yaml files (needed for githubgen to work correctly) - adds relevant make commands to make the githubgen tool usage mostly transparent to users This change is a prerequisite to be able to ping codeowners reliably with automated tooling as a next step. Part of #11562 --------- Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
This PR copies over automation from the collector-contrib repo and slightly adjusts it where needed. The PR includes 3 new workflows: - add-labels: enables users to add labels to issues by commenting `/label <the-label>` (although github org and other permissions apply) - ping-codeowners-issues: ping codeowners of a component if the label for that component was added to an issue - ping-codeowners-on-new-issue: search the issue text for components and add labels accordingly, then ping code owners Fixes #11562 ### Tests (done on my personal fork) #### Adding/removing labels via comment mowies#6 #### Pinging codeowners on new issues mowies#12 #### Pinging codeowners when component label is added to issue mowies#11 #### Adding codeowners to new PRs only visible in workflow logs because other user is not a collaborator of the repo, but the user would have been added https://github.com/mowies/opentelemetry-collector/actions/runs/13266017136/job/37033580832 #### Pinging codeowners when component label is added to PR only visible in workflow logs because other user is not a collaborator of the repo, but the user would have been pinged https://github.com/mowies/opentelemetry-collector/actions/runs/13264177723/job/37027389440?pr=13 --------- Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
We have some tooling on the opentelemetry-collector-contrib that allows us to automate some actions related to codeowners:
We can add the tooling one by one. Some of these may need additional tooling (more issue templates?):
The text was updated successfully, but these errors were encountered: