commit d8fb3438d23efe1226a11c447a13580e4848ba31 Author: zhusir Date: Sun Dec 5 02:10:42 2021 +0800 Create Templates diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md new file mode 100644 index 0000000..ccc2f12 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Bug_report.md @@ -0,0 +1,35 @@ +--- +name: Bug上报 +about: 创建报告以帮助我们改进 +title: '' +labels: bug +assignees: '' + +--- + +## 描述bug(必填) + + +## 复现步骤(必填) + + + + + + +## 你想要实现的目的(必填) + + +## 日志信息(必填!) + + +## 截图 + + + +## 系统相关信息(必填) + + + +## 其他相关信息 + diff --git a/.github/ISSUE_TEMPLATE/Feature_request.md b/.github/ISSUE_TEMPLATE/Feature_request.md new file mode 100644 index 0000000..2c4e209 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Feature_request.md @@ -0,0 +1,20 @@ +--- +name: 功能请求 +about: 为这个项目提出一个新功能的想法 +title: '' +labels: enhancement +assignees: '' + +--- + +## 你的功能请求是否与问题有关? 请描述。(必填) + + +## 描述你想要的解决方案 (必填) + + +## 描述你考虑过的替代方案 + + +## 附加上下文 + diff --git a/.github/workflows/Auto_Close_Not_Following_Template_Issue.yml b/.github/workflows/Auto_Close_Not_Following_Template_Issue.yml new file mode 100644 index 0000000..4d43d4f --- /dev/null +++ b/.github/workflows/Auto_Close_Not_Following_Template_Issue.yml @@ -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 diff --git a/.github/workflows/Close stale issues and Prs.yml b/.github/workflows/Close stale issues and Prs.yml new file mode 100644 index 0000000..1d363d5 --- /dev/null +++ b/.github/workflows/Close stale issues and Prs.yml @@ -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