Skip to content

Commit 8af458b

Browse files
committed
Merge remote-tracking branch 'qiniu/develop'
# Conflicts: # client/README.md # client/package.json # client/src/api/index.ts # client/src/mock/api.ts # client/src/mock/services.ts # client/src/router/index.ts # client/src/stores/app.ts # client/src/views/ChangeLogView.vue # client/src/views/HomeView.vue
2 parents ad973f5 + ee48c71 commit 8af458b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+6925
-158
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 功能需求
2+
description: 产品功能需求
3+
projects:
4+
- qiniu/zeroops
5+
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: 需求文档
10+
validations:
11+
required: true
12+
13+
- type: markdown
14+
attributes:
15+
value: |
16+
⚠️ Issue 必须设置 Assignee, 如当前无合适人选,请先设置为自己!
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 日常任务
2+
description: 任务描述
3+
projects:
4+
- qiniu/zeroops
5+
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: 任务描述
10+
validations:
11+
required: true
12+
13+
- type: markdown
14+
attributes:
15+
value: |
16+
⚠️ Issue 必须设置 Assignee, 如当前无合适人选,请先设置为自己!
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 线上发布
2+
description: 线上发布,服务升级
3+
title: "deploy:"
4+
projects:
5+
- qiniu/zeroops
6+
7+
body:
8+
- type: textarea
9+
attributes:
10+
label: 发布内容
11+
value: |
12+
服务 | 变更内容 | 变更PR | 对外影响的功能或API
13+
-----|--------|--------|------------------
14+
| | |
15+
16+
gitlab:
17+
jenkins:
18+
19+
validations:
20+
required: true
21+
22+
- type: textarea
23+
attributes:
24+
label: 升级计划
25+
value: |
26+
时间 | 操作人员 | 操作步骤 | 如何验证 | 失败预案 | 备注
27+
-----|--------|---------|---------|--------|-------
28+
| | | | |
29+
validations:
30+
required: true
31+
32+
- type: markdown
33+
attributes:
34+
value: |
35+
⚠️ Issue 必须设置 Assignee, 如当前无合适人选,请先设置为自己!
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 问题与缺陷
2+
description: 代码缺陷或实际业务逻辑未按预期的方式进行。
3+
labels: ["bug"]
4+
projects:
5+
- qiniu/zeroops
6+
7+
body:
8+
- type: textarea
9+
attributes:
10+
label: 此 Issue 容易重现吗,如可以,请描述重现步骤。
11+
validations:
12+
required: true
13+
14+
- type: textarea
15+
attributes:
16+
label: 期望结果与实际结果
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
attributes:
22+
label: 其他信息(包含日志,截图,有助于帮助理解本 Issue)
23+
24+
- type: textarea
25+
attributes:
26+
label: 解决方案
27+
28+
- type: markdown
29+
attributes:
30+
value: |
31+
⚠️ Issue 必须设置 Assignee, 如当前无合适人选,请先设置为自己!
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 线上事故
2+
description: 线上事故,描述事故经过,事故影响面,事故分析,事故反思和后续处理
3+
labels: ["accident"]
4+
projects:
5+
- qiniu/zeroops
6+
7+
body:
8+
- type: textarea
9+
attributes:
10+
label: 事故经过/现象
11+
validations:
12+
required: true
13+
14+
- type: textarea
15+
attributes:
16+
label: 事故影响面
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
attributes:
22+
label: 事故分析
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
attributes:
28+
label: 事故反思和后续处理
29+
validations:
30+
required: true
31+
32+
- type: markdown
33+
attributes:
34+
value: |
35+
⚠️ Issue 必须设置 Assignee, 如当前无合适人选,请先设置为自己!

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## 变更背景和解决方案
2+
3+
关联issue: #
4+
5+
## 文档更新(架构文档、API文档、升级文档)
6+
7+
8+
## Checklist
9+
10+
- [ ] 确认是否有文档更新
11+
- [ ] 确认是否自测
12+
- [ ] 确认是否考虑兼容升级,不兼容升级需要有对应的解决方案
13+
- [ ] 确认是否考虑添加监控指标
14+
- [ ] API 设计是否符合 [API 设计规范](https://github.com/qbox/las/blob/develop/docs/api/README.md), 如果没有 API 变更,请忽略
15+
- [ ] 我已经添加了相关人员到 Reviewers 列表中
16+
- [ ] 我已经设置了 Development 关联的 Issue
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deploy Frontend to Vercel
2+
3+
on:
4+
pull_request_target:
5+
branches: [develop]
6+
paths: ['client/**']
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.event.pull_request.head.sha }}
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20'
25+
cache: 'yarn'
26+
cache-dependency-path: client/yarn.lock
27+
28+
- name: Install dependencies
29+
run: |
30+
cd client
31+
yarn install --frozen-lockfile
32+
33+
- name: Build project
34+
run: |
35+
cd client
36+
yarn build
37+
38+
- name: Deploy to Vercel
39+
id: vercel-deploy
40+
uses: amondnet/vercel-action@v25
41+
with:
42+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
43+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
44+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
45+
working-directory: ./client
46+
scope: ${{ secrets.VERCEL_ORG_ID }}
47+
48+
- name: Comment PR
49+
if: github.event_name == 'pull_request_target'
50+
uses: actions/github-script@v7
51+
with:
52+
script: |
53+
const deployUrl = '${{ steps.vercel-deploy.outputs.preview-url }}';
54+
github.rest.issues.createComment({
55+
issue_number: context.issue.number,
56+
owner: context.repo.owner,
57+
repo: context.repo.repo,
58+
body: `🚀 **Frontend deployed successfully!**\n\n📱 **Preview URL:** ${deployUrl || 'Deployment in progress...'}\n\n✅ Build completed successfully`
59+
});

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,4 @@ __debug_bin
313313
.dockerignore
314314

315315
CLAUDE.md
316+
.vercel

client/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ See [Vite Configuration Reference](https://vite.dev/config/).
1717
## Project Setup
1818

1919
```sh
20-
npm install
20+
yarn install
2121
```
2222

2323
### Compile and Hot-Reload for Development
2424

2525
```sh
26-
npm run dev
26+
yarn dev
2727
```
2828

2929
### Type-Check, Compile and Minify for Production
3030

3131
```sh
32-
npm run build
32+
yarn build
3333
```
3434

3535
### Lint with [ESLint](https://eslint.org/)
3636

3737
```sh
38-
npm run lint
38+
yarn lint
3939
```

0 commit comments

Comments
 (0)