Skip to content

Commit 210c946

Browse files
crobert-1Fiery-Fenix
authored andcommitted
[chore][ping-code-owners-on-new-issue] Fix variable reference (open-telemetry#38840)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Lately some `Ping code owners on a new issue` action runs have [been failing](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13972340605/job/39117145364) with the following error: ``` ./.github/workflows/scripts/ping-codeowners-on-new-issue.sh: line 36: COMPONENT: unbound variable ``` This was because recently a variable reference was changed to the wrong variable name, view the diff of the related PR to see the context. Related: open-telemetry#38622
1 parent af0eedf commit 210c946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/ping-codeowners-on-new-issue.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [[ -n "${TITLE_COMPONENT}" && ! ("${TITLE_COMPONENT}" =~ " ") ]]; then
3333
if [[ -n "${CODEOWNERS}" ]]; then
3434
PING_LINES+="- ${TITLE_COMPONENT}: ${CODEOWNERS}\n"
3535
PINGED_COMPONENTS["${TITLE_COMPONENT}"]=1
36-
LABEL_NAME=$(awk -v path="${COMPONENT}" 'index($1, path) > 0 || index($2, path) > 0 {print $2}' .github/component_labels.txt)
36+
LABEL_NAME=$(awk -v path="${TITLE_COMPONENT}" 'index($1, path) > 0 || index($2, path) > 0 {print $2}' .github/component_labels.txt)
3737
if (( "${#LABEL_NAME}" <= 50 )); then
3838
LABELS+="${LABEL_NAME}"
3939
else

0 commit comments

Comments
 (0)