DNS API not included #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Issue Creation Tracker | |
on: | |
issues: | |
types: [ opened, reopened ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Issue Details | |
run: | | |
echo "Issue creator: ${{ github.event.issue.user.login }}" | |
echo "Issue title: ${{ github.event.issue.title }}" | |
echo "Issue number: ${{ github.event.issue.number }}" | |
echo "Issue url: ${{ github.event.issue.html_url }}" | |
- name: Google Chat Notification | |
run: | | |
curl --location --request POST '${{ secrets.ISSUE_TRACKER_WEBHOOK }}' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"cards": [ | |
{ | |
"header": { | |
"title": "New Issue 🔨", | |
"subtitle": "Issue No: #${{ github.event.issue.number }}" | |
}, | |
"sections": [ | |
{ | |
"widgets": [ | |
{ | |
"keyValue": { | |
"topLabel": "Repository", | |
"content": "${{ github.repository }}" | |
}, | |
}, | |
{ | |
"keyValue": { | |
"topLabel": "Title", | |
"content": "${{ github.event.issue.title }}" | |
} | |
}, | |
{ | |
"keyValue": { | |
"topLabel": "Assigned Labels", | |
"content": "- ${{ join(github.event.issue.labels.*.name) }}" | |
} | |
}, | |
{ | |
"buttons": [ | |
{ | |
"textButton": { | |
"text": "OPEN ISSUE", | |
"onClick": { | |
"openLink": { | |
"url": "${{ github.event.issue.html_url }}" | |
} | |
} | |
} | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}' |