Skip to content

test

test #3

Workflow file for this run

name: "IssueOps"
on:
issue_comment:
types: [created]
permissions:
pull-requests: write
issues: write
checks: read
jobs:
ping:
runs-on: ubuntu-latest
steps:
- uses: github/command@main
id: command
with:
command: ".ping_staff"
allowed_contexts: "pull_request,issue"
reaction: "eyes"
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "# Mentioned - Urgent Processing"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*User* \n ${{ github.event.comment.user }}"
},
{
"type": "mrkdwn",
"text": "*Issue/PR* \n ${{ github.event.comment.id }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Github Link:"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Click Me"
},
"value": "link",
"url": "${{ github.event.comment.issue_url }}",
"action_id": "button-action"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK