From a2d01365de6c1da6d1da4110651f84f389f4ff23 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 12 Feb 2023 00:27:06 +0800 Subject: [PATCH] chore(github): simplify the creation steps of issue/pr --- .github/ISSUE_TEMPLATE/bug_report.md | 12 ++++-------- .github/ISSUE_TEMPLATE/feature_request.md | 13 ++++-------- .github/ISSUE_TEMPLATE/help_wanted.md | 24 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/question.md | 13 ------------ .github/PULL_REQUEST_TEMPLATE.md | 8 -------- .github/workflows/issue-interceptor.yml | 18 ----------------- 6 files changed, 32 insertions(+), 56 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/help_wanted.md delete mode 100644 .github/workflows/issue-interceptor.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 7c79a52..e5bd773 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -3,15 +3,11 @@ name: Bug Report about: Create a report to help us improve --- - +We sincerely recommend that you first complete the following checklist: -## Checklist - - - -- [ ] I have read the [tutorials](https://cotes2020.github.io/chirpy-demo/categories/tutorial/) and know the correct effect of the functional design. -- [ ] There are no similar reports on [existing issues](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue) (including closed ones). -- [ ] I found the bug on the latest code of the `master` branch. +- Read the [tutorials](https://cotes2020.github.io/chirpy-demo/categories/tutorial/) and know the correct effect of the functional design. +- No similar [issue](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue)(including closed ones) exists +- Found the bug on the latest code of the `master` branch. ## Describe the bug diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 7d866cf..dc52b35 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,16 +4,11 @@ about: Suggest an idea for this project labels: enhancement --- - - -## Checklist - - -- [ ] I have read the [contributing guidelines](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/CONTRIBUTING.md). -- [ ] There is no similar request on [existing issues](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue) (including closed ones). -- [ ] I have read the [project progress](https://github.com/cotes2020/jekyll-theme-chirpy/projects) and know the current progress of the project. -- [ ] I was in the `master` branch of the latest code. +We sincerely recommend that you first complete the following checklist: +- Read the [tutorials](https://cotes2020.github.io/chirpy-demo/categories/tutorial/) and know the correct effect of the functional design. +- No similar [issue](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue)(including closed ones) exists +- This PR is built on top of the latest code in the `master` branch. ## Is your feature request related to a problem? Please describe diff --git a/.github/ISSUE_TEMPLATE/help_wanted.md b/.github/ISSUE_TEMPLATE/help_wanted.md new file mode 100644 index 0000000..debe1f5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/help_wanted.md @@ -0,0 +1,24 @@ +--- +name: Help Wanted +about: Need help +labels: 'help wanted' +--- + +We sincerely recommend that you first complete the following checklist: + +- Read the [tutorials](https://cotes2020.github.io/chirpy-demo/categories/tutorial/) and know the correct effect of the functional design. +- No similar [issue](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue)(including closed ones) exists +- Try to find the answer on [Jekyll Forum](https://talk.jekyllrb.com/) and [StackOverflow](https://stackoverflow.com/questions/tagged/jekyll). +- The ask is based on the latest code of the `master` branch. + +## Description + + + +## What you have tried + + diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index c38a93a..42f5747 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -4,17 +4,4 @@ about: Ask whatever you want labels: question --- - - -## Checklist - - - -- [ ] I have read the [newlest tutorials](https://cotes2020.github.io/chirpy-demo/categories/tutorial/) and know the correct effect of the functional design. -- [ ] There is no similar question on [existing issues](https://github.com/cotes2020/jekyll-theme-chirpy/issues?q=is%3Aissue) (including closed ones). -- [ ] I have tried to find the answer on [Jekyll Forum](https://talk.jekyllrb.com/) and [StackOverflow](https://stackoverflow.com/questions/tagged/jekyll). -- [ ] My question is based on the latest code of the `master` branch. - -## Description - diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d26834f..8e41f4f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -32,11 +32,3 @@ Please describe the tests that you ran to verify your changes. Provide instructi - Ruby version: - Bundler version: - Jekyll version: - -### Checklist - - -- [ ] I have performed a self-review of my code -- [ ] I have commented on my code, particularly in hard-to-understand areas -- [ ] I have made corresponding changes to the documentation -- [ ] My changes generate no new warnings diff --git a/.github/workflows/issue-interceptor.yml b/.github/workflows/issue-interceptor.yml deleted file mode 100644 index 22bafdc..0000000 --- a/.github/workflows/issue-interceptor.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Intercept bad issues - -on: - issues: - types: [opened, edited] - -jobs: - auto_close_issues: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v1 - - name: Auto close issues that did not follow template - uses: lucasbento/auto-close-issues@v1.0.2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template. Please DO NOT open another similar issue, try to edit the current issue according to the template, then it will be reopened automatically." - closed-issues-label: "🙁 Not following issue template"