-
Notifications
You must be signed in to change notification settings - Fork 40
44 lines (35 loc) · 1.21 KB
/
pr-open-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: PR Check & Notifier
on:
pull_request:
branches: [main]
types: [opened, edited, reopened, synchronize]
jobs:
add-assigness:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run lint
- name: Work Weixin Notifier
uses: jerray/[email protected]
with:
key: ${{ secrets.weixin_bot_key }}
content: |
# 【NodeSDK】 <font color="warning">PR</font> [ <font color="info">${{github.event.pull_request.state}}</font> ]
> 标题: ${{ github.event.pull_request.title }}
> 发起人: ${{ github.event.pull_request.user.login }}
> 详情: [${{github.event.pull_request.html_url}}](${{github.event.pull_request.html_url}})
> 请关注: <@nillwang> <@jackqqxu>
type: markdown
status: ${{ job.status }}