Skip to content

Commit

Permalink
Merge pull request #635 from tremble/github/issue_templates
Browse files Browse the repository at this point in the history
Add Issue Templates/Forms

SUMMARY
We've had a number of issues posted recently without the templates. This results in maintainers needing to guess to fill in the blanks. Use forms rather than the default template to make it harder to skip things like examples.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
.github
ADDITIONAL INFORMATION
Based on ansible-collections/amazon.aws#400 and ansible-collections/amazon.aws#401

Reviewed-by: Alina Buzachis <None>
  • Loading branch information
ansible-zuul[bot] authored Jul 13, 2021
2 parents 9ab9c77 + 6169cef commit 1355597
Show file tree
Hide file tree
Showing 5 changed files with 468 additions and 0 deletions.
161 changes: 161 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
---
name: Bug report
description: Create a report to help us improve

body:
- type: markdown
attributes:
value: |
Verify first that your issue is not [already reported on GitHub][issue search].
Where possible also test if the latest release and main branch are affected too.
*Complete **all** sections as described, this form is processed automatically.*
[issue search]: https://github.com/ansible-collections/community.aws/search?q=is%3Aissue&type=issues
- type: textarea
attributes:
label: Summary
description: |
Explain the problem briefly below.
placeholder: >-
When I try to do X with the collection from the main branch on GitHub, Y
breaks in a way Z under the env E. Here are all the details I know
about this problem...
validations:
required: true

- type: dropdown
attributes:
label: Issue Type
# FIXME: Once GitHub allows defining the default choice, update this
options:
- Bug Report
validations:
required: true

- type: textarea
attributes:
# For smaller collections we could use a multi-select and hardcode the list
# May generate this list via GitHub action and walking files under https://github.com/ansible-collections/community.general/tree/main/plugins
# Select from list, filter as you type (`mysql` would only show the 3 mysql components)
# OR freeform - doesn't seem to be supported in adaptivecards
label: Component Name
description: >-
Write the short name of the module or plugin below,
*use your best guess if unsure*.
placeholder: ec2_instance, ec2_security_group
validations:
required: true

- type: textarea
attributes:
label: Ansible Version
description: >-
Paste verbatim output from `ansible --version` between
tripple backticks.
value: |
```console (paste below)
$ ansible --version
```
validations:
required: true

- type: textarea
attributes:
label: Collection Versions
description: >-
Paste verbatim output from `ansible-galaxy collection list` between
tripple backticks.
value: |
```console (paste below)
$ ansible-galaxy collection list
```
validations:
required: true

- type: textarea
attributes:
label: AWS SDK versions
description: >-
The AWS modules depend heavily on the Amazon AWS SDKs which are regularly updated.
Paste verbatim output from `pip show boto boto3 botocore` between quotes
value: |
```console (paste below)
$ pip show boto boto3 botocore
```
validations:
required: true

- type: textarea
attributes:
label: Configuration
description: >-
If this issue has an example piece of YAML that can help to reproduce this problem, please provide it.
This can be a piece of YAML from, e.g., an automation, script, scene or configuration.
Paste verbatim output from `ansible-config dump --only-changed` between quotes
value: |
```console (paste below)
$ ansible-config dump --only-changed
```
- type: textarea
attributes:
label: OS / Environment
description: >-
Provide all relevant information below, e.g. target OS versions,
network device firmware, etc.
placeholder: RHEL 8, CentOS Stream etc.
validations:
required: false

- type: textarea
attributes:
label: Steps to Reproduce
description: |
Describe exactly how to reproduce the problem, using a minimal test-case. It would *really* help us understand your problem if you could also paste any playbooks, configs and commands you used.
**HINT:** You can paste https://gist.github.com links for larger files.
value: |
<!--- Paste example playbooks or commands between quotes below -->
```yaml (paste below)
```
validations:
required: true

- type: textarea
attributes:
label: Expected Results
description: >-
Describe what you expected to happen when running the steps above.
placeholder: >-
I expected X to happen because I assumed Y.
that it did not.
validations:
required: true

- type: textarea
attributes:
label: Actual Results
description: |
Describe what actually happened. If possible run with extra verbosity (`-vvvv`).
Paste verbatim command output between quotes.
value: |
```console (paste below)
```
- type: checkboxes
attributes:
label: Code of Conduct
description: |
Read the [Ansible Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--ansible-collections) first.
options:
- label: I agree to follow the Ansible Code of Conduct
required: true
...
76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/ci_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
name: CI Bug Report
description: Create a report to help us improve our CI

body:
- type: markdown
attributes:
value: |
Verify first that your issue is not [already reported on GitHub][issue search].
*Complete **all** sections as described, this form is processed automatically.*
[issue search]: https://github.com/ansible-collections/community.aws/search?q=is%3Aissue&type=issues
- type: textarea
attributes:
label: Summary
description: |
Describe the new issue briefly below.
placeholder: >-
I opened a Pull Request and CI failed to run. I believe this is due to a problem with the CI rather than my code.
validations:
required: true

- type: dropdown
attributes:
label: Issue Type
# FIXME: Once GitHub allows defining the default choice, update this
options:
- CI Bug Report
validations:
required: true

- type: textarea
attributes:
label: CI Jobs
description: >-
Please provide a link to the failed CI tests.
placeholder: https://dashboard.zuul.ansible.com/t/ansible/buildset/be956faa49d84e43bc860d0cd3dc8503
validations:
required: false

- type: textarea
attributes:
label: Pull Request
description: >-
Please provide a link to the Pull Request where the tests are failing
placeholder: https://github.com/ansible-collections/community.aws/runs/3040421733
validations:
required: false

- type: textarea
attributes:
label: Additional Information
description: |
Please provide as much information as possible to help us understand the issue being reported.
Where possible, please include the specific errors that you're seeing.
**HINT:** You can paste https://gist.github.com links for larger files.
value: |
<!--- Paste example playbooks or commands between quotes below -->
```yaml (paste below)
```
validations:
required: false

- type: checkboxes
attributes:
label: Code of Conduct
description: |
Read the [Ansible Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--ansible-collections) first.
options:
- label: I agree to follow the Ansible Code of Conduct
required: true
...
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
blank_issues_enabled: false # default: true
contact_links:
- name: Security bug report
url: https://docs.ansible.com/ansible-core/devel/community/reporting_bugs_and_features.html?utm_medium=github&utm_source=issue_template_chooser_ansible_collections
about: |
Please learn how to report security vulnerabilities here.
For all security related bugs, email [email protected]
instead of using this issue tracker and you will receive
a prompt response.
For more information, see
https://docs.ansible.com/ansible/latest/community/reporting_bugs_and_features.html
- name: Ansible Code of Conduct
url: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_template_chooser_ansible_collections
about: Be nice to other members of the community.
- name: Talks to the community
url: https://docs.ansible.com/ansible/latest/community/communication.html?utm_medium=github&utm_source=issue_template_chooser#mailing-list-information
about: Please ask and answer usage questions here
- name: Working groups
url: https://github.com/ansible/community/wiki
about: Interested in improving a specific area? Become a part of a working group!
- name: For Enterprise
url: https://www.ansible.com/products/engine?utm_medium=github&utm_source=issue_template_chooser_ansible_collections
about: Red Hat offers support for the Ansible Automation Platform
130 changes: 130 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
---
name: Documentation Report
description: Ask us about docs
# NOTE: issue body is enabled to allow screenshots

body:
- type: markdown
attributes:
value: |
Verify first that your issue is not [already reported on GitHub][issue search].
Where possible also test if the latest release and main branch are affected too.
*Complete **all** sections as described, this form is processed automatically.*
[issue search]: https://github.com/ansible-collections/community.aws/search?q=is%3Aissue&type=issues
- type: textarea
attributes:
label: Summary
description: |
Explain the problem briefly below, add suggestions to wording or structure.
**HINT:** Did you know the documentation has an `Edit on GitHub` link on every page?
placeholder: >-
I was reading the Collection documentation of version X and I'm having
problems understanding Y. It would be very helpful if that got
rephrased as Z.
validations:
required: true

- type: dropdown
attributes:
label: Issue Type
# FIXME: Once GitHub allows defining the default choice, update this
options:
- Documentation Report
validations:
required: true

- type: textarea
attributes:
# For smaller collections we could use a multi-select and hardcode the list
# May generate this list via GitHub action and walking files under https://github.com/ansible-collections/community.general/tree/main/plugins
# Select from list, filter as you type (`mysql` would only show the 3 mysql components)
# OR freeform - doesn't seem to be supported in adaptivecards
label: Component Name
description: >-
Write the short name of the rst file, module, plugin or task below,
*use your best guess if unsure*.
placeholder: ec2_instance, ec2_security_group
validations:
required: true

- type: textarea
attributes:
label: Ansible Version
description: >-
Paste verbatim output from `ansible --version` between
tripple backticks.
value: |
```console (paste below)
$ ansible --version
```
validations:
required: false

- type: textarea
attributes:
label: Collection Versions
description: >-
Paste verbatim output from `ansible-galaxy collection list` between
tripple backticks.
value: |
```console (paste below)
$ ansible-galaxy collection list
```
validations:
required: false

- type: textarea
attributes:
label: Configuration
description: >-
If this issue has an example piece of YAML that can help to reproduce this problem, please provide it.
This can be a piece of YAML from, e.g., an automation, script, scene or configuration.
Paste verbatim output from `ansible-config dump --only-changed` between quotes
value: |
```console (paste below)
$ ansible-config dump --only-changed
```
validations:
required: false

- type: textarea
attributes:
label: OS / Environment
description: >-
Provide all relevant information below, e.g. OS version,
browser, etc.
placeholder: RHEL 8, Firefox etc.
validations:
required: false

- type: textarea
attributes:
label: Additional Information
description: |
Describe how this improves the documentation, e.g. before/after situation or screenshots.
**Tip:** It's not possible to upload the screenshot via this field directly but you can use the last textarea in this form to attach them.
**HINT:** You can paste https://gist.github.com links for larger files.
placeholder: >-
When the improvement is applied, it makes it more straightforward
to understand X.
validations:
required: false

- type: checkboxes
attributes:
label: Code of Conduct
description: |
Read the [Ansible Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--ansible-collections) first.
options:
- label: I agree to follow the Ansible Code of Conduct
required: true
...
Loading

0 comments on commit 1355597

Please sign in to comment.