Skip to content

Duplicating Query Block can result in duplicate Query IDs and makes navigation not working as expected #331

Duplicating Query Block can result in duplicate Query IDs and makes navigation not working as expected

Duplicating Query Block can result in duplicate Query IDs and makes navigation not working as expected #331

name: 'Notify on High Priority Triaged Items'
on:
issues:
types: [labeled]
jobs:
notify-on-label:
runs-on: ubuntu-latest
if: >
github.event.label.name == 'Triaged' &&
contains(github.event.issue.labels.*.name, 'Triaged') &&
contains(github.event.issue.labels.*.name, '[Pri] Blocker')
steps:
- name: Set variables based on event type
id: set-vars
run: |
echo "::set-output name=item_type::Issue"
echo "::set-output name=item_url::https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}"
echo "::set-output name=item_title::${{ github.event.issue.title }}"
echo "::set-output name=item_number::${{ github.event.issue.number }}"
- name: Notify Slack
uses: slackapi/[email protected]
with:
channel-id: 'C02FMH4G8'
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "A high priority ${{ steps.set-vars.outputs.item_type }} has been triaged and needs attention:\n*<${{ steps.set-vars.outputs.item_url }}|${{ steps.set-vars.outputs.item_type }} #${{ steps.set-vars.outputs.item_number }}: ${{ steps.set-vars.outputs.item_title }}>*"
}
}
],
"text": "A high priority triaged item needs attention",
"unfurl_links": false,
"unfurl_media": false
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}