From 063f8a8c21c747ceae56d4027e9c8960cc27d975 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Fri, 26 Jan 2024 09:49:05 +0100 Subject: [PATCH] fix: Floating promise --- .github/workflows/update-release-project.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-release-project.yml b/.github/workflows/update-release-project.yml index ad0485fed3..919b919044 100644 --- a/.github/workflows/update-release-project.yml +++ b/.github/workflows/update-release-project.yml @@ -52,7 +52,7 @@ jobs: with: result-encoding: string script: | - const contributors = github.rest.repos.listContributors({ + const contributors = await github.rest.repos.listContributors({ owner: context.repo.owner, repo: context.repo.repo, }); @@ -60,6 +60,7 @@ jobs: const login = "${{ github.event.issue.user.login }}"; const result = contributors + .data .map(c => c.login) .includes(login);