Skip to content

Commit

Permalink
ci: add pr notify (ant-design#47160)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc authored Jan 26, 2024
1 parent 984f855 commit 5e96d6b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr-open-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: PR Open Check

on:
pull_request_target:
types: [opened]

permissions:
contents: read

jobs:
send-to-dingtalk:
runs-on: ubuntu-latest
steps:
- name: send to dingtalk
uses: visiky/dingtalk-release-notify@main
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 }} 创建了 issue:[${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}) <hr />'
notify_footer: '> 💬 快来 CR 吧!'
at_all: false # whether to ding everybody

0 comments on commit 5e96d6b

Please sign in to comment.