chore: better format for dingtalk notice (#47925)

This commit is contained in:
afc163 2024-03-17 15:28:28 +08:00 committed by GitHub
parent b315dc5e9e
commit ac18c99f92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 6 deletions

View File

@ -20,6 +20,9 @@ jobs:
${{ secrets.DINGDING_BOT_TOKEN }}
${{ secrets.DINGDING_BOT_COLLABORATOR_TOKEN }}
notify_title: '🔥 @${{ github.event.discussion.user.login }} 创建了讨论:${{ github.event.discussion.title }} ${{ github.event.discussion.html_url }}'
notify_body: '### 🔥 @${{ github.event.discussion.user.login }} 创建了讨论\n[${{ github.event.discussion.title }}](${{ github.event.discussion.html_url }}) <hr />'
notify_footer: '> 💬 欢迎前往 GitHub 进行讨论,社区可能需要你的帮助。'
notify_body: |
### 🔥 [@${{ github.event.discussion.user.login }}](https://github.com/${{ github.event.discussion.user.login }}) 开启了一个讨论:
[${{ github.event.discussion.title }}](${{ github.event.discussion.html_url }})
<hr />
notify_footer: '> 🫵🏻 欢迎前往 GitHub 进行讨论,社区需要你的帮助!'
at_all: false # whether to ding everybody

View File

@ -100,6 +100,9 @@ jobs:
${{ secrets.DINGDING_BOT_TOKEN }}
${{ secrets.DINGDING_BOT_COLLABORATOR_TOKEN }}
notify_title: '🔥 @${{ github.event.issue.user.login }} 创建了 issue${{ github.event.issue.title }} ${{ github.event.issue.html_url }}'
notify_body: '### 🔥 @${{ github.event.issue.user.login }} 创建了 issue\n[${{ github.event.issue.title }}](${{ github.event.issue.html_url }}) <hr />'
notify_footer: '> 💬 欢迎前往 GitHub 进行讨论,社区可能需要你的帮助。'
notify_body: |
### 🔥 [@${{ github.event.issue.user.login }}](https://github.com/${{ github.event.issue.user.login }}) 创建了 issue
[${{ github.event.issue.title }}](${{ github.event.issue.html_url }})
<hr />
notify_footer: '> 🫵🏻 欢迎前往 GitHub 进行讨论,社区需要你的帮助!'
at_all: false # whether to ding everybody

View File

@ -16,6 +16,9 @@ jobs:
with:
DING_TALK_TOKEN: ${{ secrets.DINGDING_BOT_COLLABORATOR_TOKEN }}
notify_title: '🔥 @${{ github.event.pull_request.user.login }} 创建了 PR${{ github.event.pull_request.title }} ${{ github.event.pull_request.html_url }}'
notify_body: '### 🔥 @${{ github.event.pull_request.user.login }} 创建了 PR\n[${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}) <hr />'
notify_footer: '> 💬 快来 CR 吧!'
notify_body: |
### 🔥 [@${{ github.event.pull_request.user.login }}](https://github.com/${{ github.event.pull_request.user.login }}) 创建了 PR
[${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
<hr />
notify_footer: '> 🫵🏻 快去 Review 吧,社区需要你的帮助!'
at_all: false # whether to ding everybody