Skip to content

Commit 57c7435

Browse files
authored
Add structured issue templates for bugs, enhancements, and documentation (#2571)
## Motivation for the change, related issues This pull request introduces a set of structured, YAML-based issue templates to improve the quality and consistency of issue reporting in the repository. By guiding contributors to provide specific and relevant information, these templates will help maintainers triage, understand, and resolve issues more efficiently. This new system replaces the free-form issue creation process with three dedicated workflows: 1. **Bug Report:** For reporting reproducible software defects. 2. **Enhancement Request:** For proposing new features or improvements to existing functionality. 3. **Documentation Improvement:** For suggesting corrections, updates, or additions to the project's documentation. ### **Changes Included** This PR adds the following three new files to the `.github/ISSUE_TEMPLATE/` directory: 1. **`1-bug-report.yml`** * Creates a detailed form for submitting bug reports. * Includes fields for prerequisites, a bug summary, expected vs. actual behavior, steps to reproduce, and problem isolation checklists. * Automatically applies the `[Type] Bug` label to new issues. 2. **`2-enhancement.yml`** * Provides a template for feature and enhancement requests. * Prompts the user to describe the desired solution, considered alternatives, and any additional context. * Automatically applies the `[Type] Enhancement` label to new issues. 3. **`3-documentation-improvement.yml`** * Offers a structured way to suggest documentation changes. * Includes fields for describing the request, the reason for it, links to relevant pages, and potential content. * Automatically applies the `[Type] Documentation` label and adds a `cc @fellyph` to the issue body for notification.
1 parent 0457b23 commit 57c7435

File tree

4 files changed

+165
-0
lines changed

4 files changed

+165
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: 🐞 Bug Report
2+
description: Report a bug if something isn't working as expected in WordPress Playground.
3+
labels: ['[Type] Bug']
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
### Thanks for contributing!
9+
10+
Please provide us with the information requested in this bug report.
11+
Without these details, we won't be able to fully evaluate this issue.
12+
Bug reports lacking detail, or for any other reason than to report a bug, may be closed without action.
13+
14+
While our goal is to address all the issues reported in this repository, GitHub should be treated as a place to report confirmed bugs only.
15+
16+
Make sure to look through the [existing `type: bug` issues](https://github.com/WordPress/wordpress-playground/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22%5BType%5D%20Bug%22) to see whether your bug has already been submitted.
17+
Feel free to contribute to any existing issues.
18+
Search tip: You can filter our issues using [our labels](https://github.com/WordPress/wordpress-playground/labels).
19+
Search tip: Make use of [GitHub's search syntax to refine your search](https://help.github.com/en/github/searching-for-information-on-github/searching-issues-and-pull-requests).
20+
- type: checkboxes
21+
id: prerequisites
22+
attributes:
23+
label: Prerequisites
24+
description: Please confirm these before submitting the issue.
25+
options:
26+
- label: I have carried out troubleshooting steps and I believe I have found a bug.
27+
- label: I have searched for similar bugs in both open and closed issues and cannot find a duplicate.
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: summary
32+
attributes:
33+
label: Describe the bug
34+
description: A clear and concise description of what the bug is.
35+
validations:
36+
required: true
37+
- type: textarea
38+
id: expected
39+
attributes:
40+
label: Expected behavior
41+
placeholder: |
42+
A clear and concise description of what you expected to happen.
43+
validations:
44+
required: true
45+
- type: textarea
46+
id: actual
47+
attributes:
48+
label: Actual behavior
49+
placeholder: |
50+
A clear and concise description of what actually happens. Please be as descriptive as possible;
51+
validations:
52+
required: true
53+
- type: textarea
54+
id: steps
55+
attributes:
56+
label: Steps to reproduce
57+
description: Attach screenshot(s) or recording(s) directly by dragging & dropping.
58+
placeholder: |
59+
1. Go to
60+
2. Click on
61+
3. Scroll down to
62+
4. See error
63+
validations:
64+
required: true
65+
- type: checkboxes
66+
id: isolating
67+
attributes:
68+
label: Isolating the problem
69+
description: |
70+
Please try testing your site for theme and plugin conflicts.
71+
To do that, deactivate all other plugins and switch to a default WordPress theme. Then test again.
72+
If the issue is resolved with the default theme and all other plugins deactivated, it means that one of your other plugins or the theme is causing the issue.
73+
You will then need to enable them one by one and test each time to figure out which plugin or theme is causing the issue.
74+
options:
75+
- label: I have deactivated other plugins and confirmed this bug occurs when only this plugin is active.
76+
- label: This bug happens with a default WordPress theme active.
77+
- label: I can reproduce this bug consistently using the steps above.
78+
validations:
79+
required: true
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ✨ Enhancement Request
2+
description: If you have an idea to improve existing functionality please let us know or submit a Pull Request!
3+
title: '[Enhancement]: '
4+
labels: ['[Type] Enhancement']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
### Thanks for contributing!
10+
11+
Please provide us with the information requested in this form.
12+
13+
Make sure to look through [existing `type: enhancement` issues](https://github.com/WordPress/wordpress-playground/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22%5BType%5D%20Enhancement%22) to see whether your idea is already being discussed.
14+
Feel free to contribute to any existing issues.
15+
Search tip: You can filter our issues using [our enhancement label](https://github.com/WordPress/wordpress-playground/issues?q=is%3Aissue+label%3A%22type%3A+enhancement%22+).
16+
Search tip: Make use of [GitHub's search syntax to refine your search](https://help.github.com/en/github/searching-for-information-on-github/searching-issues-and-pull-requests).
17+
- type: textarea
18+
id: summary
19+
attributes:
20+
label: Describe the solution you'd like
21+
description: A clear and concise description of what you want to happen.
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: alternative
26+
attributes:
27+
label: Describe alternatives you've considered
28+
description: A clear and concise description of any alternative solutions or features you've considered.
29+
- type: textarea
30+
id: context
31+
attributes:
32+
label: Additional context
33+
description: Add any other context or screenshots about the feature request here.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: 📝 Suggestion for Documentation Improvement/Correction
2+
description: Propose a specific improvement or correction for an existing document.
3+
title: '[Documentation]: '
4+
labels: ['[Type] Documentation']
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: Description of the Request
10+
description: |
11+
Clearly describe your request.
12+
13+
If suggesting an improvement or correction: Explain the changes you suggest to improve or correct the existing documentation. Be specific about any errors or areas of confusion you've identified.
14+
15+
If requesting new documentation: Provide a detailed description of the topic you'd like to see documented.
16+
placeholder: 'Describe your suggestion or request in detail.'
17+
18+
- type: textarea
19+
id: reason
20+
attributes:
21+
label: Reason for the Request
22+
description: Explain why this change or new document is important. Why do you believe it will make the documentation clearer, more accurate, or benefit the community?
23+
placeholder: 'Explain the importance of this request.'
24+
25+
- type: input
26+
id: page_link
27+
attributes:
28+
label: Link to the Page/Section (if applicable)
29+
description: Provide a link to the specific page or section that you're referring to, or indicate if this is a request for new documentation.
30+
placeholder: 'https://wordpress.github.io/wordpress-playground/...'
31+
32+
- type: textarea
33+
id: potential_content
34+
attributes:
35+
label: Potential Content
36+
description: If you have ideas about what the documentation should cover, list the points or sub-topics here.
37+
placeholder: 'List potential topics or points to cover.'
38+
39+
- type: textarea
40+
id: additional_context
41+
attributes:
42+
label: Additional Context
43+
description: Add any other context, references, or screenshots that support your suggestion or can help in the creation of new documentation.
44+
placeholder: 'Add any extra context or references here.'
45+
- type: markdown
46+
attributes:
47+
value: |
48+
cc @fellyph

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Playground Slack Channel
4+
url: https://wordpress.slack.com/archives/C04EWKGDJ0K
5+
about: If you have a question, please see our docs or use our Slack community!

0 commit comments

Comments
 (0)