Skip to content

Commit

Permalink
add: github issue template
Browse files Browse the repository at this point in the history
  • Loading branch information
lightumcc committed Nov 3, 2023
1 parent 45f03d6 commit 62122b7
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: 问题报告
description: "如果你想反馈 Bug,请使用此模板。"
labels: ["漏洞"]
body:
- type: markdown
attributes:
value: |
发Issue前请先看看[Issue列表](https://github.com/iewnfod/CAIE-Code-Extension/issues)里有没有你的问题,包括已关闭的问题。如有,请关注相关Issue而不是重复发问。
如果你不确定你遇到的问题是本项目造成的还是你自己操作的失误,请先在[讨论·Discussions](https://github.com/iewnfod/CAIE-Code-Extension/discussions)提出。
请在标题栏中用最简练的语言清晰的描述你遇到的问题。
标题和内容不必加敬词,所有人都是平等的。
请在标题内用一句话描述你遇到的问题,勿增加如“帮帮我”、“急急急”、“大神”之类的无意义词汇。
- type: textarea
id: description
attributes:
label: 问题描述
description: 在下方的编辑框描述你的问题
placeholder: 请尽可能说明你遇到的问题
validations:
required: true
- type: textarea
id: recurrent
attributes:
label: 复现方法
description: 在下方的编辑框描述如何触发这个漏洞(最好直接是需要用到的代码)
placeholder: 能看到这个?说明你没有看描述,请自己加上“1. ”
value: "1. "
validations:
required: true
- type: dropdown
id: systype
attributes:
label: 操作系统类型
description: 操作系统类型
options:
- Windows
- macOS
- Linux
validations:
required: true
- type: input
id: sysversion
attributes:
label: 操作系统版本
description: 填写你正在使用的操作系统版本,例如 macOS 13.0
placeholder: 请自行搜索如何查看版本
validations:
required: true
- type: input
id: pythonversion
attributes:
label: Python版本
description: 填写你正在使用的Python版本,例如 Python 3.11.5 (main, Aug 24 2023, 15:09:45) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
placeholder: 终端输入`python3`显示的第一行
validations:
required: true
- type: input
id: cpcversion
attributes:
label: CPC版本
description: 填写你正在使用的CPC版本,例如 Version: 0.1.3
placeholder: 终端输入`cpc -v`显示的第一行
validations:
required: true
- type: input
id: myCpcConfigInterpreterPath
attributes:
label: CPC配置文件中的解释器路径
description: 填写你正在使用的CPC配置文件中的解释器路径,例如 /Users/jessiezhu/Documents/GitHub/CAIE_Code/bin/cpc
placeholder: cpc
validations:
required: true
- type: textarea
id: extra
attributes:
label: 额外说明
description: 还有什么要补充的吗?
placeholder: |
提示:
你还可以提供截图和文件
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_SUGGEST.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 功能建议
description: "如果你想建议一些新的功能,请使用此模板。"
labels: ["功能"]
body:
- type: markdown
attributes:
value: |
发Issue前请先看看Issue列表里有没有你的建议,包括已关闭的建议。如有,请关注相关Issue而不是重复建议。
如果你只有相关功能的构想而不清楚如何实际实现相关功能,请先在[讨论·Discussions](https://github.com/iewnfod/CAIE-Code-Extension/discussions)提出。
请在标题栏中用最简练的语言清晰的描述你的建议。
如果你具有相关能力,请开Pull Request而不是开Issue,这样能节约你我的时间。
- type: textarea
id: description
attributes:
label: 功能描述
description: 在下方的编辑框描述你想要的功能
placeholder: 请尽可能完整说明你的建议,包括相关功能应该如何正确工作、何时工作等。
validations:
required: true
- type: textarea
id: example
attributes:
label: 功能样例
description: 展示这样功能的例子,可以是某些语法,也可以是实现以后能够做到什么。
placeholder: 能看到这个?说明你没有看描述,请自己加上“1. ”
value: "1. "
validations:
required: true
- type: textarea
id: extra
attributes:
label: 额外说明
description: 还有什么要补充的吗?
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: false
contact_links:
- name: 社区讨论
url: https://github.com/iewnfod/CAIE-Code-Extension/discussions
about: 不确定你遇到了什么问题?请先在讨论区提出。
27 changes: 27 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '44 20 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'

0 comments on commit 62122b7

Please sign in to comment.