File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 77jobs :
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, ', ') }}
1310 steps :
1411 - name : Pull Request Details
1512 run : |
1613 echo "Pull Request: ${{ github.event.pull_request.number }}"
1714 echo "Author: ${{ github.event.pull_request.user.login }}"
1815
1916 - name : Google Chat Notification
17+ shell : bash
18+ env :
19+ TITLE : ${{ github.event.pull_request.title }}
20+ LABELS : ${{ join(github.event.pull_request.labels.*.name, ', ') }}
2021 run : |
2122 curl --location --request POST '${{ secrets.WEBHOOK_URL }}' \
2223 --header 'Content-Type: application/json' \
3940 {
4041 "keyValue": {
4142 "topLabel": "Title",
42- "content": "$TITLE"
43+ "content": "'" $TITLE"' "
4344 }
4445 },
4546 {
6970 {
7071 "keyValue": {
7172 "topLabel": "Labels",
72- "content": "- $LABELS"
73+ "content": "- '" $LABELS"' "
7374 }
7475 },
7576 {
Original file line number Diff line number Diff line change 2626 {
2727 "header": {
2828 "title": "Push to main branch",
29- "subtitle": "$COMMIT"
29+ "subtitle": "'" $COMMIT"' "
3030 },
3131 "sections": [
3232 {
You can’t perform that action at this time.
0 commit comments