From 2c908168699bcf4a497e2bbb425e1aee38362347 Mon Sep 17 00:00:00 2001 From: florent-leborgne Date: Mon, 30 Jun 2025 12:17:48 +0200 Subject: [PATCH 1/2] Add result-encoding to label-community-issues.yml --- .github/workflows/label-community-issues.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/label-community-issues.yml b/.github/workflows/label-community-issues.yml index 583e3f33cc..51cc0049e7 100644 --- a/.github/workflows/label-community-issues.yml +++ b/.github/workflows/label-community-issues.yml @@ -17,6 +17,7 @@ jobs: uses: actions/github-script@v7 with: github-token: ${{ secrets.ORG_MEMBER_READ_TOKEN }} + result-encoding: string script: | const issueAuthor = '${{ github.event.issue.user.login }}'; const orgName = 'elastic'; @@ -55,4 +56,4 @@ jobs: labels: ['community'] }); - console.log(`Added "community" label to issue by ${issueAuthor}`); \ No newline at end of file + console.log(`Added "community" label to issue by ${issueAuthor}`); From 5802b667ee2101943ff7e8599bbb12bb4a4d3f74 Mon Sep 17 00:00:00 2001 From: Florent Le Borgne Date: Mon, 30 Jun 2025 12:22:17 +0200 Subject: [PATCH 2/2] #1964 --- .github/workflows/label-community-issues.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/label-community-issues.yml b/.github/workflows/label-community-issues.yml index 51cc0049e7..c9f5f54822 100644 --- a/.github/workflows/label-community-issues.yml +++ b/.github/workflows/label-community-issues.yml @@ -12,6 +12,11 @@ jobs: contents: read steps: + # Adding this step for debug purposes + # If this works as expected, we can simplify this workflow + # and replace it with the `check-membership` step + - name: Check organization membership (test) + run: echo "${{ github.event.issue.author_association == 'MEMBER' }}" - name: Check organization membership id: check-membership uses: actions/github-script@v7