From 5bfd8d00dde37372001fed65a433aefb6b117c10 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Sat, 25 Nov 2023 09:34:19 +0900 Subject: [PATCH] Revert "chore: allow users to create issues (#2522)" This reverts commit 268a85e54ec35f470a4d6d78f67710925a3b51b4. --- .github/DISCUSSION_TEMPLATE/bug-report.yml | 89 +++++++++++++++++++ .../DISCUSSION_TEMPLATE/feature-request.yml | 48 ++++++++++ .github/ISSUE_TEMPLATE/bug-report.yml | 10 +++ .github/ISSUE_TEMPLATE/feature-request.yml | 10 +++ .github/ISSUE_TEMPLATE/general.yml | 3 +- .github/workflows/close-issue.yaml | 26 ++++++ 6 files changed, 185 insertions(+), 1 deletion(-) create mode 100644 .github/DISCUSSION_TEMPLATE/bug-report.yml create mode 100644 .github/DISCUSSION_TEMPLATE/feature-request.yml create mode 100644 .github/workflows/close-issue.yaml diff --git a/.github/DISCUSSION_TEMPLATE/bug-report.yml b/.github/DISCUSSION_TEMPLATE/bug-report.yml new file mode 100644 index 000000000..4a81d89f4 --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/bug-report.yml @@ -0,0 +1,89 @@ +title: Bug Report +body: + - type: textarea + id: aqua-info + attributes: + label: aqua info + description: | + Please use the latest version. + Please run `aqua info` command and paste the result. + `aqua info` requires `aqua >= v2.10.0`. + If you use `aqua < v2.10.0`, please run `aqua -v` and write OS and CPU architecture instead. + If you checked multiple versions, please write the result too. + e.g. This issue occurs with aqua v2.5.0 too, but doesn't occur with aqua v2.4.0. + value: | + ```console + $ aqua info + + ``` + + validations: + required: true + + - type: textarea + id: overview + attributes: + label: Overview + value: + validations: + required: true + - type: textarea + id: how-to-reproduce + attributes: + label: How to reproduce + description: | + Please see [the guide](https://github.com/suzuki-shunsuke/oss-contribution-guide#write-good-how-to-reproduce) too. + aqua.yaml should be not partial but complete configuration. + Please remove unneeded configuration to reproduce the issue. + value: | + aqua.yaml + + ```yaml + + ``` + + Other related code such as local Registry + + ``` + + ``` + + Executed command and output + + ```console + $ + ``` + validations: + required: true + - type: textarea + id: debug-output + attributes: + label: Debug output + description: Please set the environment variable `AQUA_LOG_LEVEL=debug` and run aqua and tell us the debug output. + value: | + ```console + $ + ``` + validations: + required: false + - type: textarea + id: expected-behaviour + attributes: + label: Expected behaviour + value: + validations: + required: true + - type: textarea + id: actual-behaviour + attributes: + label: Actual behaviour + value: + validations: + required: true + - type: textarea + id: note + attributes: + label: Note + value: + validations: + required: false diff --git a/.github/DISCUSSION_TEMPLATE/feature-request.yml b/.github/DISCUSSION_TEMPLATE/feature-request.yml new file mode 100644 index 000000000..2c803b9c8 --- /dev/null +++ b/.github/DISCUSSION_TEMPLATE/feature-request.yml @@ -0,0 +1,48 @@ +title: Feature Request +body: + - type: textarea + id: feature-overview + attributes: + label: Feature Overview + value: + validations: + required: true + - type: textarea + id: why + attributes: + label: Why is the feature needed? + description: Please explain the problem you want to solve. + validations: + required: true + + - type: textarea + id: workaround + attributes: + label: Workaround + description: | + If you have any workaround, please explain it and why the workaround isn't enough. + + - type: textarea + id: example-code + attributes: + label: Example Code + description: | + Please explain the feature with code. For example, if you want a new subcommand, please explain the usage of the subcommand. + value: | + ```console + $ + ``` + + Configuration + + ```yaml + + ``` + validations: + required: false + - type: textarea + id: note + attributes: + label: Note + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 1328979dd..b583b323e 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -3,6 +3,16 @@ description: If something isn't working as expected. labels: - bug body: + - type: markdown + attributes: + value: | + ## :warning: Please create a GitHub Discussion instead of GitHub Issue + + https://github.com/orgs/aquaproj/discussions + + Only maintainers can create new Issues. If needed, a maintainer will create an Issue after your Discussion been triaged and confirmed. + This way we keep Issues actionable, and free of duplicates or wrong bug reports. + - type: textarea id: aqua-info attributes: diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index 069c303ac..88fb985a8 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -3,6 +3,16 @@ description: If you want to add a feature. labels: - enhancement body: + - type: markdown + attributes: + value: | + ## :warning: Please create a GitHub Discussion instead of GitHub Issue + + https://github.com/orgs/aquaproj/discussions + + Only maintainers can create new Issues. If needed, a maintainer will create an Issue after your Discussion been triaged and confirmed. + This way we keep Issues actionable, and free of duplicates or wrong bug reports. + - type: textarea id: feature-overview attributes: diff --git a/.github/ISSUE_TEMPLATE/general.yml b/.github/ISSUE_TEMPLATE/general.yml index dc6208e1c..82f770a82 100644 --- a/.github/ISSUE_TEMPLATE/general.yml +++ b/.github/ISSUE_TEMPLATE/general.yml @@ -8,7 +8,8 @@ body: https://github.com/orgs/aquaproj/discussions - Only maintainers can use this template. + Only maintainers can create new Issues. If needed, a maintainer will create an Issue after your Discussion been triaged and confirmed. + This way we keep Issues actionable, and free of duplicates or wrong bug reports. - type: textarea id: free-text diff --git a/.github/workflows/close-issue.yaml b/.github/workflows/close-issue.yaml new file mode 100644 index 000000000..2f572860b --- /dev/null +++ b/.github/workflows/close-issue.yaml @@ -0,0 +1,26 @@ +name: Close issue + +on: + issues: + types: [opened] + +jobs: + close-issue: + runs-on: ubuntu-latest + if: github.triggering_actor != 'suzuki-shunsuke' + permissions: + issues: write + steps: + - uses: suzuki-shunsuke/issue-close-lock-action@231aefd9a92cddfd2eb51e60965e9468f3d592bd # v0.1.0 + with: + issue_number: ${{github.event.issue.number}} + message: | + # Please create a GitHub Discussion instead of this issue + + https://github.com/orgs/aquaproj/discussions + + Only maintainers can create new Issues. If needed, a maintainer will create an Issue after your Discussion been triaged and confirmed. + + This Issue will now be closed and locked. This way we keep Issues actionable, and free of duplicates or wrong bug reports. + + Thanks