From 6c4fef0118a705a3eaa8bb275cbfb712b4ec3a74 Mon Sep 17 00:00:00 2001 From: Tatsuya Sato Date: Thu, 2 Jan 2025 15:40:19 +0900 Subject: [PATCH] Use await to get proposed labels --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 824a444..78fe023 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ try { ...github.context.repo, }); - const labels = proposeLabels(issue.data, availableLabels.data, { apiKey, logger: core } ); + const labels = await proposeLabels(issue.data, availableLabels.data, { apiKey, logger: core } ); if (labels.length > 0) { await octokit.rest.issues.setLabels({