Skip to content

Commit

Permalink
Revert "chore: allow users to create issues (#2522)"
Browse files Browse the repository at this point in the history
This reverts commit 268a85e.
  • Loading branch information
suzuki-shunsuke authored Nov 25, 2023
1 parent 268a85e commit 5bfd8d0
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 1 deletion.
89 changes: 89 additions & 0 deletions .github/DISCUSSION_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -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
48 changes: 48 additions & 0 deletions .github/DISCUSSION_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/close-issue.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5bfd8d0

Please sign in to comment.