diff --git a/.github/workflows/label-issue.yaml b/.github/workflows/label-issue.yaml index 5efd6918b88..c48330a667c 100644 --- a/.github/workflows/label-issue.yaml +++ b/.github/workflows/label-issue.yaml @@ -136,8 +136,8 @@ jobs: // Check to see if labels already exist, and if not, create them so we can set the color const existingLabels = await github.paginate( - `GET /repos/apache/camel-quarkus/labels`, - { owner: "apache", name: "camel-quarkus" }, + `GET /repos/${context.repo.owner}/${context.repo.repo}/labels`, + { owner: context.repo.owner, name: context.repo.repo }, (response) => response.data.map((label) => label.name) ); @@ -146,7 +146,7 @@ jobs: if (existingLabels) { for (let label of labels) { if (!existingLabels.includes(label)) { - labelColor = 'ededed'; + let labelColor = 'ededed'; if (label.startsWith("area/")) { labelColor = '283482'; }