Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: 反馈 Bug
description: 通过 github 模板进行 Bug 反馈。
title: "[组件名称] 描述问题的标题"
body:
- type: markdown
attributes:
value: |
# 欢迎你的参与
tdesign 的 Issue 列表接受 bug 报告或是新功能请求。也可加入官方社区:<img width="80px" src="https://user-images.githubusercontent.com/15634204/157386871-bf84c2ea-a02f-4c1c-b6fd-577450cdbcf7.png" />

在发布一个 Issue 前,请确保:
- 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。

- type: input
id: version
attributes:
label: tdesign 版本
description: 请检查在最新项目版本中能否重现此 issue。
placeholder: 请填写
validations:
required: true

- type: input
id: reproduce
attributes:
label: 重现链接
description: 请提供尽可能精简的 CodePen、CodeSandbox 或 GitHub 仓库的链接。请不要填无关链接,否则你的 Issue 将被关闭。
placeholder: 请填写

- type: textarea
id: reproduceSteps
attributes:
label: 重现步骤
description: 请清晰的描述重现该 Issue 的步骤,这能帮助我们快速定位问题。没有清晰重现步骤将不会被修复,标有 'need reproduction' 的 Issue 在 7 天内不提供相关步骤,将被关闭。
placeholder: 请填写

- type: textarea
id: expect
attributes:
label: 期望结果
placeholder: 请填写

- type: textarea
id: actual
attributes:
label: 实际结果
placeholder: 请填写

- type: input
id: frameworkVersion
attributes:
label: 框架版本
placeholder: Vue(3.2.0)

- type: input
id: browsersVersion
attributes:
label: 浏览器版本
placeholder: Chrome(8.213.231.123)

- type: input
id: systemVersion
attributes:
label: 系统版本
placeholder: MacOS(11.2.3)

- type: input
id: nodeVersion
attributes:
label: Node版本
placeholder: 请填写

- type: textarea
id: remarks
attributes:
label: 补充说明
description: 可以是遇到这个 bug 的业务场景、上下文等信息。
placeholder: 请填写
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: 使用 issue-helper 新建
url: https://Tencent.github.io/tdesign/issue-helper/?lang=zh-CN&repo=Tencent/tdesign
about: 使用 https://Tencent.github.io/tdesign/issue-helper/ 创建 issue,其中包含 bug 和 feature,表单提交更加严格。
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-report.zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 反馈新功能
description: 通过 github 模板进行新功能反馈。
title: "[组件名称] 描述问题的标题"
body:
- type: markdown
attributes:
value: |
# 欢迎你的参与
tdesign 的 Issue 列表接受 bug 报告或是新功能请求。也可加入官方社区:<img width="80px" src="https://user-images.githubusercontent.com/15634204/157386871-bf84c2ea-a02f-4c1c-b6fd-577450cdbcf7.png" />

在发布一个 Issue 前,请确保:
- 在 [常见问题](https://tdesign.tencent.com/about/faq)、[更新日志](https://tdesign.tencent.com/about/release) 和 [旧Issue列表](https://github.com/Tencent/tdesign/issues?q=is%3Aissue) 中搜索过你的问题。(你的问题可能已有人提出,也可能已在最新版本中被修正)
- 如果你发现一个已经关闭的旧 Issue 在最新版本中仍然存在,不要在旧 Issue 下面留言,请建一个新的 issue。

- type: textarea
id: functionContent
attributes:
label: 这个功能解决了什么问题
description: 请详尽说明这个需求的用例和场景。最重要的是:解释清楚是怎样的用户体验需求催生了这个功能上的需求。我们将考虑添加在现有 API 无法轻松实现的功能。新功能的用例也应当足够常见。
placeholder: 请填写
validations:
required: true

- type: textarea
id: functionalExpectations
attributes:
label: 你建议的方案是什么
placeholder: 请填写
validations:
required: true
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/new-component.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: 新组件
about: 新组件招募
title: ''
labels: ''
assignees: ''

---

<!--
参考样例:
issue label 需要设置为 help wanted,发起招募
-->
## 组件名称中英文


### 交互稿

<!--
需要给到 CoDesign 分享地址,不需要登录访问
-->
交互稿:

### 设计稿

设计稿:

已实现的技术栈:

- [ ] tdesign-vue
- [ ] tdesign-vue-next
- [ ] tdesign-react

### 参与贡献

如果你想要认领组件开发,请在本 issue 中评论认领并预估提交 PR 时间,例:

> “我认领这个组件 tdesign-vue 仓库的实现任务,预计 x 日后提交”

请尽量在预期时间内完成,超期后 PMC 同学可能会联系其他同学接手实现。

详细提交过程请参考:[如何贡献](https://tdesign.tencent.com/about/contributing)。

欢迎填写[《贡献者加入意向收集》](https://wj.qq.com/s2/9772260/7cbe/)问卷加入 TDesign 贡献者群,参与过程中遇到的各类问题可以得到实时解答和指引。

52 changes: 52 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!--
首先,感谢你的贡献!😄
请阅读并遵循 [TDesign 贡献指南](https://github.com/Tencent/tdesign/blob/main/docs/contributing.md),填写以下 pull request 的信息。
PR 在维护者审核通过后会合并,谢谢!
-->

### 🤔 这个 PR 的性质是?

- [ ] 日常 bug 修复
- [ ] 新特性提交
- [ ] 文档改进
- [ ] 演示代码改进
- [ ] 组件样式/交互改进
- [ ] CI/CD 改进
- [ ] 重构
- [ ] 代码风格优化
- [ ] 测试用例
- [ ] 分支合并
- [ ] 其他

### 🔗 相关 Issue

<!--
1. 描述相关需求的来源,如相关的 issue 讨论链接。
-->

### 💡 需求背景和解决方案

<!--
1. 要解决的具体问题。
2. 列出最终的 API 实现和用法。
3. 涉及UI/交互变动需要有截图或 GIF。
-->

### 📝 更新日志

<!--
从用户角度描述具体变化,以及可能的 breaking change 和其他风险。
-->

- fix(组件名称): 处理问题或特性描述 ...

- [ ] 本条 PR 不需要纳入 Changelog

### ☑️ 请求合并前的自查清单

⚠️ 请自检并全部**勾选全部选项**。⚠️

- [ ] 文档已补充或无须补充
- [ ] 代码演示已提供或无须提供
- [ ] TypeScript 定义已补充或无须补充
- [ ] Changelog 已提供或无须提供
17 changes: 17 additions & 0 deletions .github/workflows/demo/pr-compressed-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Compressed Size

on:
pull_request:
types: [opened, synchronize]

jobs:
compressed-size:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: 94dreamer/compressed-size-action@master
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "./dist/**/*.{js,css}"
16 changes: 16 additions & 0 deletions .github/workflows/demo/preview-publish.demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# 文件名建议统一为 preview-publish
# 应用 preview.yml 的 demo

# name: PREVIEW_PUBLISH

# on:
# workflow_run:
# workflows: ["MAIN_PULL_REQUEST"]
# types:
# - completed

# jobs:
# call-preview:
# uses: Tencent/tdesign/.github/workflows/preview.yml@main
# secrets:
# TDESIGN_SURGE_TOKEN: ${{ secrets.TDESIGN_SURGE_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/demo/pull-request.demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 文件名建议统一为 pull-request.yml
# 应用 test-build.yml 的 demo
# 要求 package.json 提供 lint test site:preview

# name: MAIN_PULL_REQUEST

# on:
# pull_request:
# branches: [develop, main]
# types: [opened, synchronize, reopened]

# jobs:
# call-test-build:
# uses: Tencent/tdesign/.github/workflows/test-build.yml@main
13 changes: 13 additions & 0 deletions .github/workflows/demo/tag-push.demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 文件名建议统一为 tag-push.yml
# 应用 publish.yml 的 demo

# name: TAG_PUSH

# on: create

# jobs:
# call-publish:
# uses: Tencent/tdesign/.github/workflows/publish.yml@main
# secrets:
# TDESIGN_SURGE_TOKEN: ${{ secrets.TDESIGN_SURGE_TOKEN }}
# TDESIGN_NPM_TOKEN: ${{ secrets.TDESIGN_NPM_TOKEN }}
72 changes: 72 additions & 0 deletions .github/workflows/file-copy-repos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Copy to Repos

on:
workflow_dispatch:

jobs:
call-preview-1:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-vue
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-2:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-vue-next
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-3:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-react
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-4:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-miniprogram
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-5:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-common
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-6:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-starter-cli
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-7:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-vue-starter
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-8:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-vue-next-starter
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-9:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-icons
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-10:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-react-starter
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
call-preview-11:
uses: Tencent/tdesign/.github/workflows/file-copy.yml@main
with:
repo: tdesign-mobile-vue
secrets:
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/file-copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Copy to One Repo
# wanted/duplicate/reply/close

on:
workflow_call:
inputs:
repo:
required: true
type: string
secrets:
PERSONAL_TOKEN:
required: true

jobs:
copy:
runs-on: ubuntu-latest
steps:
- name: Copycat
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
src_path: /.github/workflows
src_branch: main
dst_path: /.github/
dst_branch: develop
dst_owner: Tencent
dst_repo_name: ${{ inputs.repo }}
filter: '**/*.temp.yml'
username: 94dreamer
email: 503633021@qq.com
commit_message: 'ci: update files "/.github/workflows" from "Tencent/tdesign"'
Loading