File tree Expand file tree Collapse file tree 2 files changed +75
-0
lines changed Expand file tree Collapse file tree 2 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Issue Notification
2
+
3
+ on :
4
+ issues :
5
+ types : ['opened', 'reopened', 'closed']
6
+
7
+ jobs :
8
+ sync :
9
+ name : Sync Issues
10
+ runs-on : ubuntu-latest
11
+ env :
12
+ NODE_VERSION : ' 18'
13
+ LARK_APP_ID : ${{ secrets.COZELOOP_LARK_APP_ID }}
14
+ LARK_APP_SECRET : ${{ secrets.COZELOOP_LARK_APP_SECRET }}
15
+ ISSUE_ACTION : ${{ github.event.action }}
16
+ ISSUE_NUMBER : ${{ github.event.issue.number }}
17
+ ISSUE_URL : ${{ github.event.issue.html_url }}
18
+ ISSUE_TITLE : ${{ github.event.issue.title }}
19
+ ISSUE_BODY : ${{ github.event.issue.body }}
20
+ REPO_NAME : ${{ github.repository }}
21
+
22
+ steps :
23
+ - name : Setup Node
24
+ uses : actions/setup-node@v3
25
+ with :
26
+ node-version : ${{ env.NODE_VERSION }}
27
+
28
+ - name : Install ci-tools
29
+ run : |
30
+ npm install -g @cozeloop/ci-tools@0.0.4
31
+
32
+ - name : Notify via lark
33
+ run : |
34
+ cozeloop-ci lark sync-issue \
35
+ --chat-id oc_cea183c7e979931fc5e2bee03a278a48
Original file line number Diff line number Diff line change
1
+ name : PR Notification
2
+
3
+ on :
4
+ pull_request :
5
+ types : ['opened', 'reopened', 'closed']
6
+
7
+ jobs :
8
+ sync :
9
+ name : Send Lark Message
10
+ runs-on : ubuntu-latest
11
+ env :
12
+ NODE_VERSION : ' 18'
13
+ LARK_APP_ID : ${{ secrets.COZELOOP_LARK_APP_ID }}
14
+ LARK_APP_SECRET : ${{ secrets.COZELOOP_LARK_APP_SECRET }}
15
+ REPO_NAME : ${{ github.repository }}
16
+ PR_ACTION : ${{ github.event.action }}
17
+ PR_URL : ${{ github.event.pull_request.html_url }}
18
+ PR_NUMBER : ${{ github.event.pull_request.number }}
19
+ PR_TITLE : ${{ github.event.pull_request.title }}
20
+ PR_SENDER : ${{ github.event.sender.login }}
21
+ PR_SOURCE_OWNER : ${{ github.event.pull_request.head.repo.owner.login }}
22
+ PR_SOURCE_REF : ${{ github.event.pull_request.head.ref }}
23
+ PR_TARGET_OWNER : ${{ github.event.pull_request.base.repo.owner.login }}
24
+ PR_TARGET_REF : ${{ github.event.pull_request.base.ref }}
25
+ PR_MERGED : ${{ github.event.pull_request.merged }}
26
+
27
+ steps :
28
+ - name : Setup Node
29
+ uses : actions/setup-node@v3
30
+ with :
31
+ node-version : ${{ env.NODE_VERSION }}
32
+
33
+ - name : Install ci-tools
34
+ run : |
35
+ npm install -g @cozeloop/ci-tools@0.0.4
36
+
37
+ - name : Notify via lark
38
+ run : |
39
+ cozeloop-ci lark sync-pr \
40
+ --chat-id oc_cea183c7e979931fc5e2bee03a278a48
You can’t perform that action at this time.
0 commit comments