Skip to content

Commit

Permalink
License
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG committed Jun 9, 2022
1 parent 6237115 commit 477fc16
Show file tree
Hide file tree
Showing 16 changed files with 470 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 提问一个问题或者寻求支持
url: https://github.com/CoPoKo/Space/discussions/new
about: Ask a question about volantis or get support
- name: 提问的智慧
url: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
about: How To Ask Questions The Smart Way
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/zh-cn-1-help.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: 问题:使用遇到问题(报错、样式与示例不一致等)
description: 此模板适用于解决使用搭建遇到的问题。
title: "【问题】:"
labels: help
body:
- type: markdown
attributes:
value: |
请务必认真填写,足够的信息能帮助我们快速定位问题并及时修复。
- type: checkboxes
id: checks
attributes:
label: 检查清单
description: 请认真检查以下清单中的每一项,并在相符的项前打勾。
options:
- label: 已经搜索过,没有发现类似 issue。
- label: 已经尝试使用过最新版,问题依旧存在。
- type: input
id: version
attributes:
label: 版本
description: 请输入版本号
placeholder: "如: 1.0.0-alpha.9 或 abde57b"
validations:
required: true
- type: input
id: bug-url
attributes:
label: 复现地址
description: 请输入可供复现的访问地址。
placeholder: "如: https://xxxxxx.com"
validations:
required: true
- type: textarea
id: description
attributes:
label: 问题描述
description: 请告诉我们发生了什么?
placeholder: 请详细描述您所遇到的情况:复现步骤、操作过程、安装方式、仓库地址、截图等内容。
validations:
required: true


29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/zh-cn-2-feature-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 建议:新增或优化某一项功能
description: 此模板适用于建议以及讨论是否新增功能或者对现有功能作出调整。
title: "【建议】:"
labels: feature-request
body:
- type: markdown
attributes:
value: |
请务必认真填写,足够的信息能帮助我们了解具体的需求。
- type: checkboxes
id: checks
attributes:
label: 检查清单
description: 请认真检查以下清单中的每一项,并在相符的项前打勾。
options:
- label: 已经搜索过,没有发现类似 issue。
- label: 已经阅读官方文档,未发现原生支持。
- type: textarea
id: description
attributes:
label: 需求描述
description: 请告诉我们您期望添加什么功能?
validations:
required: true
- type: textarea
id: link
attributes:
label: 参考链接
description: 请提供可供我们参考的链接。
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/zh-cn-3-bug-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 反馈:主题的代码错误
description: 此模板适用于您已经定位到了问题的具体所在,不需要协助定位问题。报告给开发者予以修复。
title: "【反馈】:"
labels: bug-report
body:
- type: markdown
attributes:
value: |
请务必认真填写,足够的信息能帮助我们更快的解决问题。
- type: checkboxes
id: checks
attributes:
label: 检查清单
description: 请认真检查以下清单中的每一项,并在相符的项前打勾。
options:
- label: 已经搜索过,没有发现类似 issue。
- label: 已经升级到最新版本。
- type: input
id: bug-url
attributes:
label: 复现地址
description: 请输入可供复现的访问地址。
- type: textarea
id: description
attributes:
label: 复现步骤
description: 请告诉我们发生了什么?
validations:
required: true
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/zh-cn-4-other-issue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: 其它:额外议题
description: 使用此模板意味着您不需要帮助,也不需要开发者优先关注此话题。
title: "【其它】:"
body:
- type: textarea
id: description
attributes:
label: 议题内容
validations:
required: true
28 changes: 28 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## PR Type

<!-- Change [ ] to [x] to select (将 [ ] 换成 [x] 来选择) -->
<!-- What kind of change does this PR introduce? -->
<!-- PR带来了什么样的变化? -->

- [ ] Bugfix.
- [ ] Feature.
- [ ] Code style update (formatting, local variables).
- [ ] Refactoring (no functional changes, no api changes).
- [ ] Build & CI related changes.
- [ ] Documentation.
- [ ] Translation.
- [ ] Other... Please describe:

## Description
<!-- Please describe the current behavior you are modifying, or link to a related question to describe the new behavior about this pr -->
<!-- 请描述您正在修改的当前行为,或链接到相关问题 ,描述关于这个PR的新行为-->


## Others

- Issue resolved:

- Screenshots with this changes:

- Link to demo site with this changes:

142 changes: 142 additions & 0 deletions .github/label-commenter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# .github/label-commenter-config.yml

labels:

# 等待完成自检
- name: waiting checklist
labeled:
issue:
body: |
:wave: Hello,
Please follow the steps in the issue template for self-check, and then tell us the result of your operation, which will help us to help you solve the problem.
:wave: 您好,
请按照模板中的操作步骤进行自检,然后告诉我们您的操作结果,这将有助于我们协助您解决问题。
# 需要更多信息
- name: need more info
labeled:
issue:
body: |
:wave: Hello,
We need more information to make suggestions. Please edit your issue again, complete the information requested in the template, and describe your issue in as much detail as possible.
:wave: 您好,
我们需要更多信息才能给出建议,请重新编辑您的 issue ,完善模板中要求提供的信息,并尽可能详细地描述您的问题。
# 请描述详细一点
- name: describe in detail
labeled:
issue:
body: |
:wave: Hello,
Please describe your problem in as much detail as possible. If you don’t know how to describe the problem in detail, this article can help you: [How To Ask Questions The Smart Way](http://www.catb.org/~esr/faqs/smart-questions.html).
:wave: 您好,
请尽可能详细地描述您的问题。如果不知道如何详细地描述问题,这份教程可以帮助到您:[提问的智慧](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md) 。
# 文档中有答案
- name: read docs
labeled:
issue:
body: |
:wave: Hello,
Your question is answered in the official documents, if you can’t find it, you can try to search.
:wave: 您好,
您的疑问在官方文档有答案,如果找不到可以尝试进行搜索。
# 采纳的建议
- name: todo
labeled:
issue:
body: |
:wave: Hello,
Your suggestion is great, we will add this feature in subsequent versions, thank you very much!
:wave: 您好,
您的建议很棒,我们将会在后续版本中加入这个功能,非常感谢!
# 迟迟没有回复
- name: waiting response
labeled:
issue:
body: |
:wave: Hello,
Are you still there? We are waiting for your response. If you do not reply, we will close this issue.
:wave: 您好,
还在吗?我们正等待您的回应,如果您迟迟没有回复,我们将会关闭这个 issue 。
################ 关闭 ################
# 重复的问题
- name: duplicate
labeled:
issue:
body: |
:wave: Hello,
This is a duplicate issue, but we still appreciate your feedback.
:wave: 您好,
这是一个重复的问题,但我们仍然感谢您的反馈。
action: close

# 不予修复
- name: wontfix
labeled:
issue:
body: |
:wave: Hello,
Due to the design or external issues, we will not deal with this, but we still appreciate your feedback.
:wave: 您好,
由于设计如此,或者是外界问题导致,我们不会对此进行处理,但仍然感谢您的反馈!
action: close

# 由于没有回复而被关闭
- name: losing contact
labeled:
issue:
body: |
:wave: Hello,
Due to your delay in replying, we closed this issue.
:wave: 您好,
由于您迟迟没有回复,我们关闭了这个 issue 。
action: close

# 问题得以解决
- name: resolved
labeled:
issue:
body: |
:wave: Hello,
This issue has been marked as resolved. If there are other issues, please contact us with a new issue.
:wave: 您好,
此 issue 已经被标记为已解决,如果还有其它问题,请提出新的 issue 联系我们。
action: close

# BUG得以修复
- name: fixed
labeled:
issue:
body: |
:wave: Hello,
This bug has been fixed, please update your volantis.
:wave: 您好,
此 BUG 已经被修复,请更新您的 Volantis 版本。
action: close

# Not following issue template
- name: 🙁 Not following issue template
labeled:
issue:
body: |
:wave: Hello,
This issue is being automatically closed because it does not follow the issue template.
:wave: 您好,
因为您没有按照模板中的操作步骤进行自检,这个issue将被自动关闭。
action: close
13 changes: 13 additions & 0 deletions .github/merge-conflicts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Merge conflicts
on:
push:

jobs:
triage:
if: github.repository == 'CoPoKo/Wormhole'
runs-on: ubuntu-latest
steps:
- uses: mschilde/auto-label-merge-conflicts@master
with:
CONFLICT_LABEL_NAME: "has conflicts"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/pr-updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PR update
on:
push:
workflow_dispatch:

jobs:
autoupdate:
if: github.repository == 'CoPoKo/Wormhole'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: update all prs
uses: maxkomarychev/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release-please
on:
push:
workflow_dispatch:

jobs:
release-please:
if: github.repository == 'CoPoKo/Hole'
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: "@copoko/wormhole"
npm-publish:
if: ${{ contains(github.event.head_commit.message, 'chore') && contains(github.event.head_commit.message, 'release') && github.repository == 'CoPoKo/Hole' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org
- name: Publish
run: |
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
23 changes: 23 additions & 0 deletions .github/workflows/label-commenter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Label Commenter

on:
issues:
types:
- labeled
- unlabeled
pull_request_target:
types:
- labeled
- unlabeled

jobs:
comment:
if: github.repository == 'CoPoKo/Wormhole'
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- name: Label Commenter
uses: peaceiris/actions-label-commenter@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/label-commenter-config.yml
Loading

0 comments on commit 477fc16

Please sign in to comment.