Skip to content

Commit e4237aa

Browse files
Update labeler.yml (#3519)
1 parent 666c567 commit e4237aa

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/labeler.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,13 @@ jobs:
2121
repo: context.repo.repo,
2222
labels: ["agent-java"]
2323
})
24-
- name: Check team membership for user
25-
uses: elastic/[email protected]
26-
id: checkUserMember
24+
- id: is_elastic_member
25+
uses: elastic/apm-pipeline-library/.github/actions/is-member-elastic-org@current
2726
with:
28-
username: ${{ github.actor }}
29-
team: 'apm'
30-
usernamesToExclude: |
31-
apmmachine
32-
dependabot
33-
dependabot[bot]
34-
GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}
35-
- name: Show team membership
36-
run: |
37-
echo "::debug::isTeamMember: ${{ steps.checkUserMember.outputs.isTeamMember }}"
38-
echo "::debug::isExcluded: ${{ steps.checkUserMember.outputs.isExcluded }}"
27+
username: ${{ github.event.issue.user.login }}
28+
token: ${{ secrets.APM_TECH_USER_TOKEN }}
3929
- name: Add community and triage lables
40-
if: steps.checkUserMember.outputs.isTeamMember != 'true' && steps.checkUserMember.outputs.isExcluded != 'true'
30+
if: steps.is_elastic_member.outputs.result != true
4131
uses: actions/github-script@v7
4232
with:
4333
script: |
@@ -48,7 +38,7 @@ jobs:
4838
labels: ["community", "triage"]
4939
})
5040
- name: Add comment for community PR
51-
if: steps.checkUserMember.outputs.isTeamMember != 'true' && steps.checkUserMember.outputs.isExcluded != 'true'
41+
if: steps.is_elastic_member.outputs.result != true
5242
uses: wow-actions/auto-comment@v1
5343
with:
5444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -60,7 +50,7 @@ jobs:
6050
Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming [milestone](https://github.com/elastic/apm-agent-java/milestones). The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it.
6151
- name: Assign new internal pull requests to project
6252
uses: elastic/[email protected]
63-
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event.pull_request
53+
if: (steps.is_elastic_member.outputs.result == true) && github.event.pull_request
6454
with:
6555
project: 'https://github.com/orgs/elastic/projects/454'
6656
project_id: '5882982'

0 commit comments

Comments
 (0)