Create test-assistant-issue-review.yml

This commit is contained in:
nigeljamesstevenson 2024-02-02 14:00:25 +00:00 committed by GitHub
parent eaa791f7da
commit 7c466218aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
name: Send a Slack notification when an Issue contains an assignment to Solaris
on:
issues:
types: [labeled]
permissions: {}
jobs:
send-slack-notification-when-issue-contains-team-solaris-label:
if: "${{ github.event.label.name == 'team: Solaris' }}"
runs-on: ubuntu-20.04
steps:
- name: Wait 2 minutes for other labelling jobs to finish
run: sleep 1m
shell: bash
# Notify Slack Step
- name: Notify Slack
uses: archive/github-actions-slack@d9dae40827adf93bddf939db6552d1e392259d7d
id: notify
with:
slack-bot-user-oauth-access-token: ${{ secrets.TEST_ASSISTANCE_BOT_TOKEN }}
slack-channel: ${{ secrets.TEST_SLACK_CHANNEL }}
slack-text: |
<${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>
*Labels:* ${{ join(github.event.issue.labels.*.name, ', ') }}
Please review this issue to check if it has been correctly assigned to Solaris.
slack-optional-unfurl_links: false
slack-optional-unfurl_media: false