Skip to content

Commit eb1ca4a

Browse files
authored
Update PR notification card (#211)
* Update PR notification card
1 parent cab4a1d commit eb1ca4a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/pr_notification.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ on:
77
jobs:
88
notify-pull-request:
99
runs-on: ubuntu-latest
10+
env:
11+
TITLE: ${{ github.event.pull_request.title }}
12+
LABELS: ${{ join(github.event.pull_request.labels.*.name, ', ') }}
1013
steps:
1114
- name: Pull Request Details
1215
run: |
13-
echo "Pull Request: ${{ github.event.pull_request.title }}"
16+
echo "Pull Request: ${{ github.event.pull_request.number }}"
1417
echo "Author: ${{ github.event.pull_request.user.login }}"
1518
1619
- name: Google Chat Notification
@@ -36,7 +39,7 @@ jobs:
3639
{
3740
"keyValue": {
3841
"topLabel": "Title",
39-
"content": "${{ github.event.pull_request.title }}"
42+
"content": "$TITLE"
4043
}
4144
},
4245
{
@@ -66,7 +69,7 @@ jobs:
6669
{
6770
"keyValue": {
6871
"topLabel": "Labels",
69-
"content": "- ${{ join(github.event.pull_request.labels.*.name, ', ') }}"
72+
"content": "- $LABELS"
7073
}
7174
},
7275
{

0 commit comments

Comments
 (0)