Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 49 additions & 67 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: Bug Report
description: Report issues with one of our products.
labels: [ 'Needs triage', '[Type] Bug' ]
labels: [ 'Needs triage', '[Type] Bug', 'User Report' ]
body:
- type: markdown
attributes:
value: |
Thanks for contributing to Jetpack!
Pick a clear title ("Sharing: Facebook button missing") and proceed.
### Thanks for contributing to Jetpack!

__Avoid using image hosting services such as Cloudup, Droplr, Imgur, etc., to link to media.__
Instead, attach screenshot(s) or recording(s) directly in any of the text areas below: click, then drag and drop.
Please write a clear title, then fill in the fields below and submit.

Please **do not** link to image hosting services such as Cloudup, Droplr, Imgur, etc…
Instead, directly embed screenshot(s) or recording(s) in any of the text areas below: click, then drag and drop.
- type: markdown
attributes:
value: |
---
## Core Information
- type: dropdown
id: plugin-type
attributes:
Expand All @@ -31,15 +37,19 @@ body:
multiple: true
validations:
required: true
- type: textarea
id: summary
attributes:
label: Quick summary
- type: textarea
id: steps
attributes:
label: Steps to Reproduce
label: Steps to reproduce
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
...
1. Start at `site-domain.com/blog`.
2. Click on any blog post.
3. Click on the 'Like' button.
4. ...
validations:
required: true
- type: textarea
Expand All @@ -54,67 +64,18 @@ body:
label: What actually happened
placeholder: |
eg. Clicking the button does nothing visibly.
- type: dropdown
id: browser
attributes:
label: Browser
description: (You may select more than one)
options:
- Google Chrome/Chromium
- Mozilla Firefox
- Microsoft Edge
- Apple Safari
- iOS Safari
- Android Chrome
multiple: true
- type: textarea
id: other
attributes:
label: Other information
placeholder: Screenshots, additional logs, notes, etc.
- type: markdown
attributes:
value: |
---
## Additional context

The following section is optional. If you're an Automattician, you should be able to fill it in. If not, please scroll to the bottom and submit the issue.
- type: dropdown
id: site-type
attributes:
label: Platform (Simple, Atomic, or both?)
description: (You may select more than one)
options:
- Simple
- Atomic
- Self-hosted
multiple: true
- type: markdown
attributes:
value: |
## Issue severity

Please provide details around how often the issue is reproducible & how many users are affected.
- type: dropdown
id: reproducibility
attributes:
label: Reproducibility
options:
- Consistent
- Intermittent
- Once
validations:
required: true
- type: dropdown
id: users-affected
attributes:
label: Severity
description: How many users are impacted? A guess is fine.
label: Impact
description: Approximately how many users are impacted?
options:
- One
- Some (< 50%)
- Most (> 50%)
- All
validations:
required: true
- type: dropdown
id: workarounds
attributes:
Expand All @@ -125,10 +86,31 @@ body:
- Yes, difficult to implement
- Yes, easy to implement
- There is no user impact
validations:
required: true
- type: markdown
attributes:
value: |
<br>

## Optional Information
The following section is optional.
- type: dropdown
id: site-type
attributes:
label: Platform (Simple and/or Atomic)
description: (You may select more than one)
options:
- Simple
- Atomic
- Self-hosted
multiple: true
- type: textarea
id: workarounds-detail
id: logs
attributes:
label: Workaround details
description: If you are aware of a workaround, please describe it below.
label: Logs or notes
placeholder: |
e.g. There is an alternative way to access this setting in the sidebar, but it's not readily apparent.
Add any information that may be relevant, such as:
- Browser/Platform
- Theme
- Logs/Errors
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update triage task to match new bug report template format.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function findPlugins( body ) {
* @returns {Array} Platforms impacted by issue.
*/
function findPlatforms( body ) {
const regex = /###\sPlatform\s\(Simple,\sAtomic,\sor\sboth\?\)\n\n([a-zA-Z ,-]*)\n\n/gm;
const regex = /###\sPlatform\s\(Simple\sand\/or Atomic\)\n\n([a-zA-Z ,-]*)\n\n/gm;

const match = regex.exec( body );
if ( match ) {
Expand All @@ -67,23 +67,23 @@ function findPlatforms( body ) {
*/
function findPriority( body ) {
// Look for priority indicators in body.
const priorityRegex = /###\sSeverity\n\n(?<severity>.*)\n\n###\sAvailable\sworkarounds\?\n\n(?<blocking>.*)\n/gm;
const priorityRegex = /###\sImpact\n\n(?<impact>.*)\n\n###\sAvailable\sworkarounds\?\n\n(?<blocking>.*)\n/gm;
let match;
while ( ( match = priorityRegex.exec( body ) ) ) {
const [ , severity = '', blocking = '' ] = match;
const [ , impact = '', blocking = '' ] = match;

debug(
`triage-new-issues: Reported priority indicators for issue: "${ severity }" / "${ blocking }"`
`triage-new-issues: Reported priority indicators for issue: "${ impact }" / "${ blocking }"`
);

if ( blocking === 'No and the platform is unusable' ) {
return severity === 'One' ? 'High' : 'BLOCKER';
return impact === 'One' ? 'High' : 'BLOCKER';
} else if ( blocking === 'No but the platform is still usable' ) {
return 'High';
} else if ( blocking === 'Yes, difficult to implement' ) {
return severity === 'All' ? 'High' : 'Normal';
return impact === 'All' ? 'High' : 'Normal';
} else if ( blocking !== '' && blocking !== '_No response_' ) {
return severity === 'All' || severity === 'Most (> 50%)' ? 'Normal' : 'Low';
return impact === 'All' || impact === 'Most (> 50%)' ? 'Normal' : 'Low';
}
return null;
}
Expand Down