From 66317d35ecfd2f3649a4c3f64a506328731081bf Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Sun, 29 Jun 2025 23:53:28 +0200 Subject: [PATCH] Test and monitor `issue.author_association` --- .github/workflows/label-community-issues.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/label-community-issues.yml b/.github/workflows/label-community-issues.yml index 583e3f33cc..782014835e 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 @@ -55,4 +60,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}`);