From e41ebb84fdbe958f9dea0eddbd7af45879ab78e2 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 19 Aug 2024 22:17:25 +0000 Subject: [PATCH] filter with triage permissions --- .github/workflows/genai-commander.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/genai-commander.yml b/.github/workflows/genai-commander.yml index d1339c244e..9c3b106033 100644 --- a/.github/workflows/genai-commander.yml +++ b/.github/workflows/genai-commander.yml @@ -23,6 +23,8 @@ jobs: username }); console.log(`Permissions for ${username}:`, permissions.data); + if (!permissions.data.user.permissions.triage) + throw "comment author does not have triage permissions"; - name: resolve pr sha id: sha uses: actions/github-script@v4