-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (40 loc) · 1.21 KB
/
zai-code-bot.yml
File metadata and controls
45 lines (40 loc) · 1.21 KB
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
45
name: Z.ai Code Bot
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- prod
issue_comment:
types:
- created
pull_request_review_comment:
types:
- created
permissions:
contents: read
pull-requests: write
issues: write
concurrency:
group: zai-bot-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
zai-bot:
if: |
(github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request) ||
(github.event_name == 'pull_request_review_comment' && github.event.pull_request.draft == false)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Run Z.ai Bot
uses: AndreiDrang/zai-code-bot@main
with:
ZAI_API_KEY: ${{ secrets.ZAI_API_KEY }}
ZAI_MODEL: ${{ vars.ZAI_MODEL || 'glm-5' }}
GITHUB_TOKEN: ${{ github.token }}