Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/label-community-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ 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
with:
github-token: ${{ secrets.ORG_MEMBER_READ_TOKEN }}
result-encoding: string
script: |
const issueAuthor = '${{ github.event.issue.user.login }}';
const orgName = 'elastic';
Expand Down Expand Up @@ -55,4 +61,4 @@ jobs:
labels: ['community']
});
console.log(`Added "community" label to issue by ${issueAuthor}`);
console.log(`Added "community" label to issue by ${issueAuthor}`);
Loading