Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][CI/CD] Fix bugs in get-codeowners.sh (#29746)
**Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> There's a combination of bugs currently existing in `get-codeowners.sh` and the `Mark issues as stale` workflow. This implements proposed solution 2 of #29744 - Match component against beginning of line in code owners. **Issues** Resolves #29744 **Testing** Basic spot checking script: ``` COMPONENTS=("azure" "processor/resourcedetection" "processor/resourcedetectionprocessor" "test" "testbed" "extension/observer" "internal/k8stest" "extension/encoding" "flaky" "pkg/translator" "tools" ) for EXAMPLE_COMPONENT in ${COMPONENTS[@]}; do OWNERS=$(COMPONENT=${EXAMPLE_COMPONENT} bash ".github/workflows/scripts/get-codeowners.sh") echo $EXAMPLE_COMPONENT: $OWNERS done ``` Output: ``` azure: processor/resourcedetection: @Aneurysm9 @dashpole processor/resourcedetectionprocessor: @Aneurysm9 @dashpole test: testbed: @open-telemetry/collector-approvers extension/observer: @dmitryax @rmfitzpatrick internal/k8stest: @crobert-1 extension/encoding: @atoulme @dao-jun @dmitryax @MovieStoreGuy @VihasMakwana flaky: pkg/translator: tools: ``` Reference [CODEOWNERS](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/.github/CODEOWNERS) as source of truth. --------- Co-authored-by: Evan Bradley <[email protected]>
- Loading branch information