elastic / elastic/integrations

[CI] Update teams in the pull request pipeline configuration automatically (catalog-info.yaml)

Open
#13,047 1 comment 0 reactions 0 assignees View on GitHub
ci Team:Ecosystem
Dominant language
Handlebars
Stars
333
Forks
647
Avg merge
3d 4h
Merged PRs (30d)
209

Description

In https://github.com/elastic/integrations/pull/13016, all the teams specified in `.github/CODEOWNERS` at that moment were added as part of the teams with permissions to build and read the pull request pipeline.

It would be helpful to automate this task so every time a new CODEOWNER team is added to `.github/CODEOWNERS` file, it is added also to the configuration of the Pull Request pipeline:

https://github.com/elastic/integrations/blob/1cce1a920b0a39b0e4c3902d622b70be9c86ca7a/catalog-info.yaml#L61-L107

Requirements:
- All teams present should be kept even if they are not part of the CODEOWNERS (e.g. `ingest-fp`)
- All new teams must be added with BUILD_AND_READ permission.
- Teams already added to the configuration that have assigned another permission, it must be kept the permission they had assigned with no changes (e.g. `ecosystem`, `ingest-fp` or `everyone`)

Related: https://github.com/elastic/integrations/pull/13016#issuecomment-2711279787

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.