Skip to content

Commit

Permalink
Don't ask for triage of issues from @DataDog/dd-trace-go-guild (#2489)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller authored Jan 9, 2024
1 parent a784a5f commit 95ab163
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/needs-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,20 @@ jobs:
--color='#0E8A16' \
--description='New issues that have not yet been triaged' \
--force
- name: Is author a guild member?
id: is-author-guild-member
run: |-
members=$(gh api /orgs/DataDog/teams/dd-trace-go-guild/members --jq='.[].id')
result='false'
for member in ${members}; do
if [ "${member}" = "${{ github.event.issue.user.id }}" ]; then
result='true'
break
fi
done
echo "result=${result}" >> "${GITHUB_OUTPUT}"
- name: Add needs-triage label
if: steps.is-author-guild-member.outputs.result == 'false'
run: |-
gh issue edit ${{ github.event.issue.number }} \
--repo='${{ github.repository }}' \
Expand Down

0 comments on commit 95ab163

Please sign in to comment.