2024-02-02 14:00:25 +00:00
|
|
|
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 }}
|
2024-02-02 14:17:18 +00:00
|
|
|
slack-channel: ${{ secrets.TEAM_SOLARIS_ISSUE_ANALYSIS_CHANNEL }}
|
2024-02-02 14:00:25 +00:00
|
|
|
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
|