Skip to content

Commit

Permalink
chore(CICD): update automation script (#8)
Browse files Browse the repository at this point in the history
* chore: 更新模板

* chore: 更新自动化脚本
  • Loading branch information
ArgoZhang authored Sep 19, 2024
1 parent 873d83e commit f9c4539
Show file tree
Hide file tree
Showing 22 changed files with 687 additions and 1 deletion.
72 changes: 72 additions & 0 deletions .gitee/ISSUE_TEMPLATE/10_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: 🐞 Bug 反馈
description: 当你在代码中发现了一个 Bug,导致应用崩溃或抛出异常,或者有一个组件存在问题,或者某些地方看起来不对劲。
title: "bug: "
labels: [bug]
assignees:
- Argo
body:
- type: checkboxes
attributes:
label: 这个问题是否已经存在?
description: 请在问题列表中搜索,可能有人已经上报这个问题 ([BootstrapBlazor/issues](https://gitee.com/LongbowEnterprise/BootstrapBlazor/issues)).
options:
- label: 我已经搜索过现在的问题
required: true
- type: textarea
attributes:
label: 如何操作复现这个问题
description: 请详细描述如何复现你遇到的问题
placeholder: |
1. 先点击什么
2. 再点击什么
3. 然后怎么样
validations:
required: true
- type: textarea
attributes:
label: 预期结果
description: 请描述你认为的正确结果是什么
validations:
required: false
- type: textarea
attributes:
label: 实际结果
description: 请描述实际结果是什么
validations:
required: false
- type: textarea
attributes:
label: 截图或者视频
description: 此问题相关截图或者视频,如果是截图请画框与箭头标注
placeholder: |
[在这里上传图片或视频]
[图片截图后此处直接粘贴即可]
validations:
required: false
- type: textarea
attributes:
label: 复现工程或者仓库地址
description: 最小代码示例
placeholder: |
1. 提供公开的仓库地址链接。
2. 以文件夹或者压缩包 (zip) 形式提交复现工程,请务必删除工程目录下的 bin 和 obj。
声明:请勿以其他任何方式提供复现工程,不符合要求的提交,一律视为无效问题,不予处理。
validations:
required: true
- type: textarea
id: version
attributes:
label: .NET Version
description: |
Run `dotnet --version`
placeholder: |
[这里粘贴执行结果]
validations:
required: false
- type: input
attributes:
label: Bootstrap Blazor Version
description: BootstrapBlazor 组件包版本号
validations:
required: false
51 changes: 51 additions & 0 deletions .gitee/ISSUE_TEMPLATE/20_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: 💡 功能建议
description: 对本项目提出一个功能建议
title: "[功能建议]: "
labels: ["enhancement"]
body:
- type: input
attributes:
label: 相关组件名称
placeholder: |
[现有组件填写组件名称,新组件请帮忙想一个组件名称。]
validations:
required: false
- type: textarea
id: related-problem
attributes:
label: 开发过程中我们现有组件或者组件功能无法实现的功能
description: 请清晰的描述现有组件或者新组件的使用场景,以及开发中遇到的难处。
placeholder: |
如果是现有组件,请先仔细阅读文档与示例,确定想要的功能无法实现后再提交。
validations:
required: false
- type: textarea
id: desired-solution
attributes:
label: 你希望看到什么解决方案?
description: 清晰并简洁地描述你希望发生的事情。
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: 你考虑过哪些替代方案?
description: 清晰并简洁地描述你考虑过的任何替代解决方案或功能。
validations:
required: false
- type: textarea
id: additional-context
attributes:
label: 你有其他上下文或截图吗?
description: 在此处添加有关功能请求的任何其他上下文或截图。
placeholder: |
[在这里上传图片或视频]
[图片截图后此处直接粘贴即可]
validations:
required: true
- type: checkboxes
attributes:
label: 意向参与贡献
options:
- label: 我有意向参与具体功能的开发实现,并且提交 PR 到仓库
required: false
9 changes: 9 additions & 0 deletions .gitee/ISSUE_TEMPLATE/60_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: true

contact_links:
- name: 🗨️ Discussions
url: https://github.com/dotnetcore/BootstrapBlazor/discussions
about: Please post any questions during use here
- name: 🚀 Quick start
url: https://github.com/dotnetcore/BootstrapBlazor/discussions/categories/quick-start
about: About BootstrapBlazor quick start please visit here
8 changes: 8 additions & 0 deletions .gitee/PULL_REQUEST_TEMPLATE.zh-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### 该 Pull Request 关联的 Issue



### 修改描述



88 changes: 88 additions & 0 deletions .github/ISSUE_TEMPLATE/10_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: 🐞 Bug Report
description: File a bug/issue
title: "bug(): title"
labels: [bug]
assignees:
- argozhang
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered ([BootstrapBlazor.Extensions/issues](https://github.com/BootstrapBlazor/BootstrapBlazor.Extensions/issues?q=is%3Aissue&wt.mc_id=DT-MVP-5004174)).
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: dropdown
attributes:
label: Interactive render mode
description: What render mode of our software are you running?
options:
- Static Server (Static server-side rendering (static SSR))
- Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)
- Interactive WebAssembly (Client-side rendering (CSR) using Blazor WebAssembly)
- Interactive Auto (Server, then client)
default: 1
validations:
required: true
- type: textarea
attributes:
label: Steps To Reproduce
description: |
We ❤ code! Point us to a [minimalistic project which reproduces this issue (repro)](https://github.com/BootstrapBlazor/BootstrapBlazor.Extensions/blob/main/docs/repro.md) hosted in a public GitHub repo.
We will close this issue if:
- The repro project you share with us is complex. We can't investigate custom projects, so don't point us to such, please.
- If we will not be able to repro the behavior you're reporting.
- If the repro project is attached as a `.zip` file.
- If the GitHub repro project is set to `Private`.
如果您选择此模板说明您是想提交一个组件的 `BUG` 而不是来描述一个您遇到的问题结果,所以必须提供复现步骤与复现工程。如果不提供我们将不予处理,机器人将于一段时间后自动关闭本 `Issue`
请在下方文本框内写清楚,运行后点击那个页面,或者点击那个按钮复现问题,文件上传拖动到下方文本框内即可。
**最小复现工程**
- 删除 `bin` `obj` 文件夹后打包成 `zip` 压缩包的文件
- 公开 `github` 仓库地址
- 私有 `github` 仓库地址(邀请 argo@live.ca)
placeholder: "drop file in here. (此处写复现步骤,最小工程压缩包可拖拽到这里)"
validations:
required: true
- type: textarea
attributes:
label: Exceptions (if any)
description: Include the exception you get when facing this issue.
validations:
required: false
- type: input
attributes:
label: .NET Version
description: |
Run `dotnet --version`
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
- ASP.NET Core version:
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version:
- Include the output of `dotnet --info`:
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/20_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 💡 Feature Request
description: Suggest an idea for this project
title: "feat(): title"
labels: [enhancement]
assignees:
- argozhang
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the feature you are requesting. (https://github.com/BootstrapBlazor/BootstrapBlazor.Extensions/issues?wt.mc_id=DT-MVP-5004174).
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe the problem.
description: A clear and concise description of what the problem is.
placeholder: I am trying to do [...] but [...]
validations:
required: false
- type: textarea
attributes:
label: Describe the solution you'd like
description: |
A clear and concise description of what you want to happen. Include any alternative solutions you've considered.
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: |
Add any other context or screenshots about the feature request here.
validations:
required: false
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/30_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 📖 Documentation
description: Add or update the project document or sample code
title: "doc(): title"
labels: [documentation]
assignees:
- argozhang
body:
- type: textarea
attributes:
label: Document describing which component
description: |
Detailed description of the document update or sample code that the submission code is about the function of that component
value: |
Add sample code for {Component}
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/40_unit_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 🧪 Test
description: Unit test for this project
title: "test(): title"
labels: [test]
assignees:
- argozhang
body:
- type: textarea
attributes:
label: Which class is this unit test associated with?
description: Add unit test for code coverage.
value: Improve code coverage
validations:
required: false
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/50_other.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 👩🏻‍💻 Other
description: I don't know how to classify
title: "chore(): title"
labels: [chore]
assignees:
- argozhang
body:
- type: textarea
attributes:
label: Which class is this unit test associated with?
description: Triage this issue later.
validations:
required: false
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/60_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
blank_issues_enabled: true

contact_links:
- name: 🗨️ Discussions
url: https://github.com/BootstrapBlazor/BootstrapBlazor.Extensions/discussions
about: Please post any questions during use here
- name: 🚀 Quick start
url: https://github.com/BootstrapBlazor/BootstrapBlazor.Extensions/discussions/categories/quick-start
about: About BootstrapBlazor quick start please visit here
1 change: 1 addition & 0 deletions .github/bb-auto-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_owner: ArgoZhang
39 changes: 39 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# {PR title}

Summary of the changes (Less than 80 chars)

## Description

{Detail}

Fixes #{bug number} (in this specific format)

## Customer Impact

{Justification}

## Regression?

- [ ] Yes
- [ ] No

[If yes, specify the version the behavior has regressed from]

## Risk

- [ ] High
- [ ] Medium
- [ ] Low

[Justify the selection above]

## Verification

- [ ] Manual (required)
- [ ] Automated

## Packaging changes reviewed?

- [ ] Yes
- [ ] No
- [ ] N/A
30 changes: 30 additions & 0 deletions .github/workflows/auto-pull-request-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Auto PR test(bot)

on:
pull_request:
branches:
- master
- main
- dev

jobs:
run_test:
name: run test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Test
run: |
dotnet test test/UniTestEditor --collect:"XPlat Code Coverage"
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Loading

0 comments on commit f9c4539

Please sign in to comment.