Create Templates

This commit is contained in:
zhusir
2021-12-05 02:10:42 +08:00
committed by xiaorouji
commit d8fb3438d2
4 changed files with 99 additions and 0 deletions

35
.github/ISSUE_TEMPLATE/Bug_report.md vendored Normal file
View File

@@ -0,0 +1,35 @@
---
name: Bug上报
about: 创建报告以帮助我们改进
title: ''
labels: bug
assignees: ''
---
## 描述bug(必填)
<!-- 对于bug的清晰简洁的描述. -->
## 复现步骤(必填)
<!-- 重现Bug步骤: -->
<!-- 1. 选择菜单'...' -->
<!-- 2. 点击按钮 '....' -->
<!-- 3. 等等操作 '....' -->
<!-- 4. 出现Bug -->
## 你想要实现的目的(必填)
<!--对你期望发生的事情的清晰简洁的描述。-->
## 日志信息(必填!)
<!--包括问题相关的所有系统日志信息(这个很重要)。-->
## 截图
<!--如果适用,请添加屏幕截图以帮助解释你的问题。-->
## 系统相关信息(必填)
<!-- - passwall版本-->
<!-- - 浏览器版本例如Chrome 96.0.4664.45(正式版本) 64 位)-->
## 其他相关信息
<!-- 在此处添加有关该Bug的任何其他信息。-->

View File

@@ -0,0 +1,20 @@
---
name: 功能请求
about: 为这个项目提出一个新功能的想法
title: ''
labels: enhancement
assignees: ''
---
## 你的功能请求是否与问题有关? 请描述。(必填)
<!-- 对问题所在的清晰简洁的描述。 例如。 当 [...] 时,我总是[....] -->
## 描述你想要的解决方案 (必填)
<!-- 对你想要的新功能的清晰简洁的描述。 -->
## 描述你考虑过的替代方案
<!--对你考虑过的任何替代解决方案或功能的清晰简明描述。-->
## 附加上下文
<!--在此处添加有关功能请求的任何其他信息或屏幕截图。-->

View File

@@ -0,0 +1,17 @@
name: "Auto Close Not Following Template Issue"
on:
issues:
types: [opened, edited]
jobs:
auto_close_issues:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Automatically close issues that don't follow the issue template
uses: lucasbento/auto-close-issues@v1.0.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: "@${issue.user.login}: hello! :wave:\n\nThis issue is being automatically closed because it does not follow the issue template." # optional property
closed-issues-label: "🙁 Not following issue template" # optional property

View File

@@ -0,0 +1,27 @@
name: "Close stale issues and PRs"
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-issue-message: "Stale Issue"
stale-pr-message: "Stale PR"
stale-issue-label: "no-issue-activity"
exempt-issue-labels: "awaiting-approval,work-in-progress"
stale-pr-label: "no-pr-activity"
exempt-pr-labels: "awaiting-approval,work-in-progress"
# only-labels: 'bug,enhancement'
days-before-issue-stale: 10
days-before-pr-stale: 10
days-before-issue-close: 5
days-before-pr-close: -1
- uses: GitRML/delete-workflow-runs@main
with:
retain_days: 1
keep_minimum_runs: 0