From bfdb2d76593266381a125bc1aa748717155316a7 Mon Sep 17 00:00:00 2001 From: LitoMore Date: Sat, 3 Jun 2023 02:39:26 +0800 Subject: [PATCH] Autocloser: Fix issues API URL (#8716) --- .github/workflows/autoclose-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autoclose-issues.yml b/.github/workflows/autoclose-issues.yml index fd6b707c..d6fe3e24 100644 --- a/.github/workflows/autoclose-issues.yml +++ b/.github/workflows/autoclose-issues.yml @@ -21,7 +21,7 @@ jobs: - id: get-labels name: Get labels run: | - labels="$(curl --retry 5 -s https://api.github.com/repos/simple-icons/simple-icons/pulls/${{ github.event.issue.number }} | jq '.labels[].name' | tr '\n' ',' | sed -e 's/"//g' -e 's/,$//')" + labels="$(curl --retry 5 -s https://api.github.com/repos/simple-icons/simple-icons/issues/${{ github.event.issue.number }} | jq '.labels[].name' | tr '\n' ',' | sed -e 's/"//g' -e 's/,$//')" echo "labels=$labels" >> $GITHUB_OUTPUT # if the issue is labeled as a 'new icon' and it matches Java, we