From acd50996ae1173ad40a7af75b1870b53df38393a Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Thu, 6 Feb 2025 18:27:23 +0900 Subject: [PATCH] chore: bug_report.md -> bug_report.yaml --- .github/ISSUE_TEMPLATE/bug-report.yaml | 47 +++++++++++++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 26 ------------ .github/ISSUE_TEMPLATE/config.yml | 2 + .github/ISSUE_TEMPLATE/feature-request.yaml | 19 +++++++++ .github/workflows/stale-issues.yml | 22 ++++++++++ 5 files changed, 90 insertions(+), 26 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug-report.yaml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature-request.yaml create mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml new file mode 100644 index 0000000..f1cdd5a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -0,0 +1,47 @@ +name: Bug report +description: Create a report to help us improve +labels: + - bug +body: + - type: textarea + attributes: + label: "Describe the bug" + description: "A clear and concise description of what the bug is." + placeholder: "Enter a detailed description of the bug" + validations: + required: true + - type: textarea + attributes: + label: "Reproducible Code" + description: "Provide code or steps needed to reproduce the bug." + placeholder: "Enter code snippet or reproduction steps" + validations: + required: true + - type: textarea + attributes: + label: "Environment" + description: "Provide details such as OS, version, etc." + placeholder: "OS: \nVersion: " + validations: + required: true + - type: textarea + attributes: + label: "Expected behavior" + description: "A clear and concise description of what you expected to happen." + placeholder: "Enter what you expected to happen" + validations: + required: false + - type: textarea + attributes: + label: "Screenshots" + description: "Add screenshots to help explain your problem." + placeholder: "Provide screenshot links or instructions to attach images" + validations: + required: false + - type: textarea + attributes: + label: "Additional context" + description: "Add any other context about the problem here." + placeholder: "Enter any additional context" + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index ba3d3fb..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**Reproducible Code** - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Environment** - - OS - - Version - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3163fd1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,2 @@ +# This file cannot use the extension `.yaml`. +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature-request.yaml b/.github/ISSUE_TEMPLATE/feature-request.yaml new file mode 100644 index 0000000..7c306d0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.yaml @@ -0,0 +1,19 @@ +name: Feature request +description: Suggest an idea for this project +labels: + - enhancement +body: + - type: textarea + attributes: + label: "Describe the feature" + description: "A clear and concise description of what the feature is." + placeholder: "Enter a detailed description of the feature" + validations: + required: true + - type: textarea + attributes: + label: "Additional context" + description: "Add any other context about the feature here." + placeholder: "Enter any additional context" + validations: + required: false diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 0000000..68b618d --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,22 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: "This issue is stale because it has been open for 60 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + stale-issue-label: "stale" + exempt-issue-labels: "bug" + days-before-issue-stale: 60 + days-before-issue-close: 14 + days-before-pr-stale: -1 + days-before-pr-close: -1