Compare commits

...

1 Commits

Author SHA1 Message Date
Andrey Meshkov
d49d284d4a all: github action for potential dups and improved issue forms 2023-06-12 13:53:26 +03:00
3 changed files with 194 additions and 114 deletions

View File

@@ -1,109 +1,142 @@
'body': 'body':
- 'attributes': - 'attributes':
'description': > 'description': >
Please make sure that the issue is not a duplicate or a question. Please make sure that the issue is not a duplicate or a question.
If it's a duplicate, please react to the original issue with a If it's a duplicate, please react to the original issue with a
thumbs up. If it's a question, please post it to the GitHub thumbs up. If it's a question, please post it to the GitHub
Discussions page. Discussions page.
'label': 'Prerequisites' 'label': 'Prerequisites'
'options': 'options':
- 'label': > - 'label': >
I have checked the I have checked the
[Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and
[Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions)
and found no answer and found no answer
'required': true 'required': true
- 'label': > - 'label': >
I have searched other issues and found no duplicates I have searched other issues and found no duplicates
'required': true 'required': true
- 'label': > - 'label': >
I want to report a bug and not ask a question I want to report a bug and not ask a question
'required': true 'required': true
'id': 'prerequisites' 'id': 'prerequisites'
'type': 'checkboxes' 'type': 'checkboxes'
- 'attributes': - 'attributes':
'description': 'On which operating system type does the issue occur?' 'description': 'On which operating system type does the issue occur?'
'label': 'Operating system type' 'label': 'Operating system type'
'options': 'options':
- 'FreeBSD' - 'FreeBSD'
- 'Linux, OpenWrt' - 'Linux, OpenWrt'
- 'Linux, Other (please mention the version in the description)' - 'Linux, Other (please mention the version in the description)'
- 'macOS (aka Darwin)' - 'macOS (aka Darwin)'
- 'OpenBSD' - 'OpenBSD'
- 'Windows' - 'Windows'
- 'Other (please mention in the description)' - 'Other (please mention in the description)'
'id': 'os' 'id': 'os'
'type': 'dropdown' 'type': 'dropdown'
'validations': 'validations':
'required': true 'required': true
- 'attributes': - 'attributes':
'description': 'On which CPU architecture does the issue occur?' 'description': 'On which CPU architecture does the issue occur?'
'label': 'CPU architecture' 'label': 'CPU architecture'
'options': 'options':
- 'AMD64' - 'AMD64'
- 'x86' - 'x86'
- '64-bit ARM' - '64-bit ARM'
- 'ARMv5' - 'ARMv5'
- 'ARMv6' - 'ARMv6'
- 'ARMv7' - 'ARMv7'
- '64-bit MIPS' - '64-bit MIPS'
- '64-bit MIPS LE' - '64-bit MIPS LE'
- '32-bit MIPS' - '32-bit MIPS'
- '32-bit MIPS LE' - '32-bit MIPS LE'
- '64-bit PowerPC LE' - '64-bit PowerPC LE'
- 'Other (please mention in the description)' - 'Other (please mention in the description)'
'id': 'arch' 'id': 'arch'
'type': 'dropdown' 'type': 'dropdown'
'validations': 'validations':
'required': true 'required': true
- 'attributes': - 'attributes':
'description': 'How did you install AdGuard Home?' 'description': 'How did you install AdGuard Home?'
'label': 'Installation' 'label': 'Installation'
'options': 'options':
- 'GitHub releases or script from README' - 'GitHub releases or script from README'
- 'Docker' - 'Docker'
- 'Snapcraft' - 'Snapcraft'
- 'Custom port' - 'Custom port'
- 'Other (please mention in the description)' - 'Other (please mention in the description)'
'id': 'install' 'id': 'install'
'type': 'dropdown' 'type': 'dropdown'
'validations': 'validations':
'required': true 'required': true
- 'attributes': - 'attributes':
'description': 'How did you setup AdGuard Home?' 'description': 'How did you setup AdGuard Home?'
'label': 'Setup' 'label': 'Setup'
'options': 'options':
- 'On one machine' - 'On one machine'
- 'On a router, DHCP is handled by the router' - 'On a router, DHCP is handled by the router'
- 'On a router, DHCP is handled by AdGuard Home' - 'On a router, DHCP is handled by AdGuard Home'
- 'Other (please mention in the description)' - 'Other (please mention in the description)'
'id': 'setup' 'id': 'setup'
'type': 'dropdown' 'type': 'dropdown'
'validations': 'validations':
'required': true 'required': true
- 'attributes': - 'attributes':
'description': 'What version of AdGuard Home are you using?' 'description': 'What version of AdGuard Home are you using?'
'label': 'AdGuard Home version' 'label': 'AdGuard Home version'
'id': 'version' 'id': 'version'
'type': 'input' 'type': 'input'
'validations': 'validations':
'required': true 'required': true
- 'attributes': - 'attributes':
'description': 'Please describe the bug' 'description': 'Please provide a set of steps to reproduce the issue'
'label': 'Description' 'label': 'Issue Details'
'value': | 'placeholder':
#### What did you do? 'value': |
Steps to reproduce:
#### Expected result 1.
2.
#### Actual result 3.
'id': 'what-happened'
#### Screenshots (if applicable)
#### Additional information
'id': 'description'
'type': 'textarea' 'type': 'textarea'
'validations': 'validations':
'required': true 'required': true
'description': 'File a bug report' - 'attributes':
'name': 'Bug' 'label': 'Expected Behavior'
'description': 'Describe the expected behavior'
'placeholder': |
A clear and concise description of what you expected to happen.
'id': 'expected-behavior'
'type': 'textarea'
'validations':
'required': false
- 'attributes':
'label': 'Actual Behavior'
'description': 'Describe the actual behavior'
'placeholder': 'A clear description of what happened instead.'
'id': 'actual-behavior'
'type': 'textarea'
'validations':
'required': true
- 'attributes':
'label': 'Screenshots'
'description': |
If applicable add screenshots explaining your problem.
You can drag and drop images or paste them from clipboard.
Use `<details> </details>` tag to hide screenshots under the spoiler.
'placeholder': 'If applicable add screenshots explaining your problem.'
'value': |
<details><summary>Screenshot 1:</summary>
<!-- paste screenshot here -->
</details>
'id': 'screenshots'
'type': 'textarea'
'validations':
'required': false
'description': >
Open a bug report. Please do not open bug reports for questions. If you
want to ask a question, ask in in the Discussions section.
'name': 'Bug report'
'labels': [ 'bug' ]

View File

@@ -1,41 +1,54 @@
'body': 'body':
- 'attributes': - 'attributes':
'description': > 'description': >
Please make sure that the issue is not a duplicate or a question. Please make sure that the issue is not a duplicate or a question.
If it's a duplicate, please react to the original issue with a If it's a duplicate, please react to the original issue with a
thumbs up. If it's a question, please post it to the GitHub thumbs up. If it's a question, please post it to the GitHub
Discussions page. Discussions page.
'label': 'Prerequisites' 'label': 'Prerequisites'
'options': 'options':
- 'label': > - 'label': >
I have checked the I have checked the
[Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and
[Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions)
and found no answer and found no answer
'required': true 'required': true
- 'label': > - 'label': >
I have searched other issues and found no duplicates I have searched other issues and found no duplicates
'required': true 'required': true
- 'label': > - 'label': >
I want to request a feature or enhancement and not ask a I want to request a feature or enhancement and not ask a
question question
'required': true 'required': true
'id': 'prerequisites' 'id': 'prerequisites'
'type': 'checkboxes' 'type': 'checkboxes'
- 'attributes': - 'attributes':
'description': 'Please describe the request' 'description': 'What happened?'
'label': 'Description' 'placeholder': |
'value': | Is your feature request related to a problem? Please add a clear and
#### What problem are you trying to solve? concise description of what the problem is.
'label': 'Issue Details'
#### Proposed solution 'id': 'what-happened'
#### Alternatives considered
#### Additional information
'id': 'description'
'type': 'textarea' 'type': 'textarea'
'validations': 'validations':
'required': true 'required': true
- 'attributes':
'description': 'What do you propose to change in AdGuard Home?'
'placeholder': |
Describe the solution you'd like in a clear and concise manner.
'label': 'Proposed solution'
'id': 'proposed-solution'
'type': 'textarea'
'validations':
'required': true
- 'attributes':
'description': 'Are there any other ways to solve the problem?'
'placeholder': |
A clear and concise description of any alternative solutions or features
you've considered.
'label': 'Alternative solution'
'id': 'alternative-solution'
'type': 'textarea'
'description': 'Suggest a feature or an enhancement for AdGuard Home' 'description': 'Suggest a feature or an enhancement for AdGuard Home'
'name': 'Feature request or enhancement' 'name': 'Feature request or enhancement'
'labels': [ 'feature request' ]

View File

@@ -0,0 +1,34 @@
'name': 'potential-duplicates'
'on':
'issues':
'types': [ 'opened', 'edited' ]
'jobs':
'run':
'runs-on': 'ubuntu-latest'
'steps':
- 'uses': 'wow-actions/potential-duplicates@v1'
'with':
'GITHUB_TOKEN': ${{ secrets.GITHUB_TOKEN }}
# Issue title filter work with https://www.npmjs.com/package/anymatch.
# Any matched issue will stop detection immediately.
# You can specify multi filters in each line.
# 'filter': ''
# Exclude keywords in title before detecting.
# 'exclude': ''
# Label to set, when potential duplicates are detected.
'label': 'potential-duplicate'
# Get issues with state to compare. Supported state: 'all', 'closed',
# 'open'.
'state': 'all'
# If similarity is higher than this threshold([0,1]), issue will be
# marked as duplicate.
'threshold': 0.6
# Reactions to be add to comment when potential duplicates are
# detected. Available reactions: "-1", "+1", "confused", "laugh",
# "heart", "hooray", "rocket", "eyes".
# 'reactions': 'eyes, confused'
# Comment to post when potential duplicates are detected.
'comment': >
Potential duplicates: {{#issues}}
- [#{{ number }}] {{ title }} ({{ accuracy }}%)
{{/issues}}