Skip to content

Commit

Permalink
#0: switched check to an org member
Browse files Browse the repository at this point in the history
  • Loading branch information
ayerofieiev-tt authored and TT-billteng committed Jun 28, 2024
1 parent 0a31b6d commit 4454734
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/on-community-issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Send Slack Notification
if: contains(github.event.issue.labels.*.name, 'community')
- name: Check if organization member
id: is_organization_member
if: github.event.action == 'opened'
uses: JamesSingleton/[email protected]
with:
organization: tenstorrent
username: ${{ github.event.issue.user.login }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Send Slack Notification
uses: slackapi/[email protected]
with:
payload: |
{
"text": "A new issue with the 'community' label has been created by `${{ github.event.sender.login }}`: ${{ github.event.issue.html_url }}",
"text": "A new issue has been created by a non-org member `${{ github.event.sender.login }}`: ${{ github.event.issue.html_url }}",
"channel": "C07AZJ5DLL8"
}
env:
Expand Down

0 comments on commit 4454734

Please sign in to comment.