Skip to content

Commit a32accf

Browse files
author
sachen
committed
chore(workflow): Add GitHub Workflow
1 parent 7411c7d commit a32accf

27 files changed

+953
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: 反馈 Bug
2+
description: 通过 github 模板进行 Bug 反馈。
3+
title: "[组件名称] 描述问题的标题"
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
# 欢迎你的参与
9+
tdesign 的 Issue 列表接受 bug 报告或是新功能请求。也可加入官方社区:<img width="80px" src="https://user-images.githubusercontent.com/15634204/157386871-bf84c2ea-a02f-4c1c-b6fd-577450cdbcf7.png" />
10+
11+
在发布一个 Issue 前,请确保:
12+
- 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
13+
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。
14+
15+
- type: input
16+
id: version
17+
attributes:
18+
label: tdesign 版本
19+
description: 请检查在最新项目版本中能否重现此 issue。
20+
placeholder: 请填写
21+
validations:
22+
required: true
23+
24+
- type: input
25+
id: reproduce
26+
attributes:
27+
label: 重现链接
28+
description: 请提供尽可能精简的 CodePen、CodeSandbox 或 GitHub 仓库的链接。请不要填无关链接,否则你的 Issue 将被关闭。
29+
placeholder: 请填写
30+
31+
- type: textarea
32+
id: reproduceSteps
33+
attributes:
34+
label: 重现步骤
35+
description: 请清晰的描述重现该 Issue 的步骤,这能帮助我们快速定位问题。没有清晰重现步骤将不会被修复,标有 'need reproduction' 的 Issue 在 7 天内不提供相关步骤,将被关闭。
36+
placeholder: 请填写
37+
38+
- type: textarea
39+
id: expect
40+
attributes:
41+
label: 期望结果
42+
placeholder: 请填写
43+
44+
- type: textarea
45+
id: actual
46+
attributes:
47+
label: 实际结果
48+
placeholder: 请填写
49+
50+
- type: input
51+
id: frameworkVersion
52+
attributes:
53+
label: 框架版本
54+
placeholder: Vue(3.2.0)
55+
56+
- type: input
57+
id: browsersVersion
58+
attributes:
59+
label: 浏览器版本
60+
placeholder: Chrome(8.213.231.123)
61+
62+
- type: input
63+
id: systemVersion
64+
attributes:
65+
label: 系统版本
66+
placeholder: MacOS(11.2.3)
67+
68+
- type: input
69+
id: nodeVersion
70+
attributes:
71+
label: Node版本
72+
placeholder: 请填写
73+
74+
- type: textarea
75+
id: remarks
76+
attributes:
77+
label: 补充说明
78+
description: 可以是遇到这个 bug 的业务场景、上下文等信息。
79+
placeholder: 请填写

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: 使用 issue-helper 新建
4+
url: https://Tencent.github.io/tdesign/issue-helper/?lang=zh-CN&repo=Tencent/tdesign
5+
about: 使用 https://Tencent.github.io/tdesign/issue-helper/ 创建 issue,其中包含 bug 和 feature,表单提交更加严格。
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 反馈新功能
2+
description: 通过 github 模板进行新功能反馈。
3+
title: "[组件名称] 描述问题的标题"
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
# 欢迎你的参与
9+
tdesign 的 Issue 列表接受 bug 报告或是新功能请求。也可加入官方社区:<img width="80px" src="https://user-images.githubusercontent.com/15634204/157386871-bf84c2ea-a02f-4c1c-b6fd-577450cdbcf7.png" />
10+
11+
在发布一个 Issue 前,请确保:
12+
- 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
13+
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。
14+
15+
- type: textarea
16+
id: functionContent
17+
attributes:
18+
label: 这个功能解决了什么问题
19+
description: 请详尽说明这个需求的用例和场景。最重要的是:解释清楚是怎样的用户体验需求催生了这个功能上的需求。我们将考虑添加在现有 API 无法轻松实现的功能。新功能的用例也应当足够常见。
20+
placeholder: 请填写
21+
validations:
22+
required: true
23+
24+
- type: textarea
25+
id: functionalExpectations
26+
attributes:
27+
label: 你建议的方案是什么
28+
placeholder: 请填写
29+
validations:
30+
required: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: 新组件
3+
about: 新组件招募
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
参考样例:
12+
issue label 需要设置为 help wanted,发起招募
13+
-->
14+
## 组件名称中英文
15+
16+
17+
### 交互稿
18+
19+
<!--
20+
需要给到 CoDesign 分享地址,不需要登录访问
21+
-->
22+
交互稿:
23+
24+
### 设计稿
25+
26+
设计稿:
27+
28+
已实现的技术栈:
29+
30+
- [ ] tdesign-vue
31+
- [ ] tdesign-vue-next
32+
- [ ] tdesign-react
33+
34+
### 参与贡献
35+
36+
如果你想要认领组件开发,请在本 issue 中评论认领并预估提交 PR 时间,例:
37+
38+
> “我认领这个组件 tdesign-vue 仓库的实现任务,预计 x 日后提交”
39+
40+
请尽量在预期时间内完成,超期后 PMC 同学可能会联系其他同学接手实现。
41+
42+
详细提交过程请参考:[如何贡献](https://tdesign.tencent.com/about/contributing)
43+
44+
欢迎填写[《贡献者加入意向收集》](https://wj.qq.com/s2/9772260/7cbe/)问卷加入 TDesign 贡献者群,参与过程中遇到的各类问题可以得到实时解答和指引。
45+

.github/PULL_REQUEST_TEMPLATE.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!--
2+
首先,感谢你的贡献!😄
3+
请阅读并遵循 [TDesign 贡献指南](https://github.com/Tencent/tdesign/blob/main/docs/contributing.md),填写以下 pull request 的信息。
4+
PR 在维护者审核通过后会合并,谢谢!
5+
-->
6+
7+
### 🤔 这个 PR 的性质是?
8+
9+
- [ ] 日常 bug 修复
10+
- [ ] 新特性提交
11+
- [ ] 文档改进
12+
- [ ] 演示代码改进
13+
- [ ] 组件样式/交互改进
14+
- [ ] CI/CD 改进
15+
- [ ] 重构
16+
- [ ] 代码风格优化
17+
- [ ] 测试用例
18+
- [ ] 分支合并
19+
- [ ] 其他
20+
21+
### 🔗 相关 Issue
22+
23+
<!--
24+
1. 描述相关需求的来源,如相关的 issue 讨论链接。
25+
-->
26+
27+
### 💡 需求背景和解决方案
28+
29+
<!--
30+
1. 要解决的具体问题。
31+
2. 列出最终的 API 实现和用法。
32+
3. 涉及UI/交互变动需要有截图或 GIF。
33+
-->
34+
35+
### 📝 更新日志
36+
37+
<!--
38+
从用户角度描述具体变化,以及可能的 breaking change 和其他风险。
39+
-->
40+
41+
- fix(组件名称): 处理问题或特性描述 ...
42+
43+
- [ ] 本条 PR 不需要纳入 Changelog
44+
45+
### ☑️ 请求合并前的自查清单
46+
47+
⚠️ 请自检并全部**勾选全部选项**。⚠️
48+
49+
- [ ] 文档已补充或无须补充
50+
- [ ] 代码演示已提供或无须提供
51+
- [ ] TypeScript 定义已补充或无须补充
52+
- [ ] Changelog 已提供或无须提供
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Compressed Size
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
compressed-size:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
submodules: recursive
14+
- uses: 94dreamer/compressed-size-action@master
15+
with:
16+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
17+
pattern: "./dist/**/*.{js,css}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# 文件名建议统一为 preview-publish
2+
# 应用 preview.yml 的 demo
3+
4+
# name: PREVIEW_PUBLISH
5+
6+
# on:
7+
# workflow_run:
8+
# workflows: ["MAIN_PULL_REQUEST"]
9+
# types:
10+
# - completed
11+
12+
# jobs:
13+
# call-preview:
14+
# uses: Tencent/tdesign/.github/workflows/preview.yml@main
15+
# secrets:
16+
# TDESIGN_SURGE_TOKEN: ${{ secrets.TDESIGN_SURGE_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# 文件名建议统一为 pull-request.yml
2+
# 应用 test-build.yml 的 demo
3+
# 要求 package.json 提供 lint test site:preview
4+
5+
# name: MAIN_PULL_REQUEST
6+
7+
# on:
8+
# pull_request:
9+
# branches: [develop, main]
10+
# types: [opened, synchronize, reopened]
11+
12+
# jobs:
13+
# call-test-build:
14+
# uses: Tencent/tdesign/.github/workflows/test-build.yml@main
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 文件名建议统一为 tag-push.yml
2+
# 应用 publish.yml 的 demo
3+
4+
# name: TAG_PUSH
5+
6+
# on: create
7+
8+
# jobs:
9+
# call-publish:
10+
# uses: Tencent/tdesign/.github/workflows/publish.yml@main
11+
# secrets:
12+
# TDESIGN_SURGE_TOKEN: ${{ secrets.TDESIGN_SURGE_TOKEN }}
13+
# TDESIGN_NPM_TOKEN: ${{ secrets.TDESIGN_NPM_TOKEN }}

.github/workflows/file-copy-repos.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Copy to Repos
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
call-preview-1:
8+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
9+
with:
10+
repo: tdesign-vue
11+
secrets:
12+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
13+
call-preview-2:
14+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
15+
with:
16+
repo: tdesign-vue-next
17+
secrets:
18+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
19+
call-preview-3:
20+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
21+
with:
22+
repo: tdesign-react
23+
secrets:
24+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
25+
call-preview-4:
26+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
27+
with:
28+
repo: tdesign-miniprogram
29+
secrets:
30+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
31+
call-preview-5:
32+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
33+
with:
34+
repo: tdesign-common
35+
secrets:
36+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
37+
call-preview-6:
38+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
39+
with:
40+
repo: tdesign-starter-cli
41+
secrets:
42+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
43+
call-preview-7:
44+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
45+
with:
46+
repo: tdesign-vue-starter
47+
secrets:
48+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
49+
call-preview-8:
50+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
51+
with:
52+
repo: tdesign-vue-next-starter
53+
secrets:
54+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
55+
call-preview-9:
56+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
57+
with:
58+
repo: tdesign-icons
59+
secrets:
60+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
61+
call-preview-10:
62+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
63+
with:
64+
repo: tdesign-react-starter
65+
secrets:
66+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
67+
call-preview-11:
68+
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
69+
with:
70+
repo: tdesign-mobile-vue
71+
secrets:
72+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}

.github/workflows/file-copy.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Copy to One Repo
2+
# wanted/duplicate/reply/close
3+
4+
on:
5+
workflow_call:
6+
inputs:
7+
repo:
8+
required: true
9+
type: string
10+
secrets:
11+
PERSONAL_TOKEN:
12+
required: true
13+
14+
jobs:
15+
copy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Copycat
19+
uses: andstor/copycat-action@v3
20+
with:
21+
personal_token: ${{ secrets.PERSONAL_TOKEN }}
22+
src_path: /.github/workflows
23+
src_branch: main
24+
dst_path: /.github/
25+
dst_branch: develop
26+
dst_owner: Tencent
27+
dst_repo_name: ${{ inputs.repo }}
28+
filter: '**/*.temp.yml'
29+
username: 94dreamer
30+
email: 503633021@qq.com
31+
commit_message: 'ci: update files "/.github/workflows" from "Tencent/tdesign"'

0 commit comments

Comments
 (0)