woocommerce/.github/workflows/test-assistant-issue-review...

31 lines
1.1 KiB
YAML
Raw Normal View History

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
2024-02-02 14:17:42 +00:00
run: sleep 2m
2024-02-02 14:00:25 +00:00
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-10-18 15:23:20 +00:00
slack-channel: ${{ secrets.WOO_PR_TESTING_ISSUE_ANALYSIS_SLACK_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, ', ') }}
2024-10-18 15:23:20 +00:00
Please review this issue to check if it has been correctly assigned.
2024-02-02 14:00:25 +00:00
slack-optional-unfurl_links: false
slack-optional-unfurl_media: false