Skip to content

Commit

Permalink
Updated GitHub issues notification (#2355)
Browse files Browse the repository at this point in the history
* Create issue-notification.yml

* Update issue-notification.yml

* Update issue-notification.yml

* Update issue-notification.yml
  • Loading branch information
sinto-aot authored Nov 19, 2024
1 parent 16a57d8 commit ffb17bd
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/issue-notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Issue Creation Tracker
on:
issues:
types: [opened, closed]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Git Issue Details
run: |
echo "Issue creator: ${{ github.event.issue.user.login }}"
echo "Issue number: ${{ github.event.issue.number }}"
echo "Issue url: ${{ github.event.issue.html_url }}"
echo "Assigned labels: " ${{ join(github.event.issue.labels.*.name) }}
- name: Google Chat Notification
run: |
curl --location --request POST '${{ secrets.NOTIFY_GITHUB_ISSUES }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"cards": [
{
"header": {
"title": "Issue Tracker",
"subtitle": "Issue No: #${{ github.event.issue.number }}"
},
"sections": [
{
"widgets": [
{
"keyValue": {
"topLabel": "Creator",
"content": "${{ github.event.issue.user.login }}"
},
},
{
"keyValue": {
"topLabel": "Assigned Lables",
"content": "- ${{ join(github.event.issue.labels.*.name) }}"
}
},
{
"buttons": [
{
"textButton": {
"text": "OPEN ISSUE",
"onClick": {
"openLink": {
"url": "${{ github.event.issue.html_url }}"
}
}
}
}
]
}
]
}
]
}
]
}'

0 comments on commit ffb17bd

Please sign in to comment.