diff --git a/.github/ISSUE_TEMPLATE/accessibility.yml b/.github/ISSUE_TEMPLATE/accessibility.yml index f64c8e4d9be..bab6d8127a7 100644 --- a/.github/ISSUE_TEMPLATE/accessibility.yml +++ b/.github/ISSUE_TEMPLATE/accessibility.yml @@ -78,6 +78,20 @@ body: description: Please provide the last working version if the issue is a regression. validations: required: false + - type: dropdown + id: priority-impact + validations: + required: true + attributes: + label: Priority impact + multiple: false + description: What is the impact to you, your team, or organization? Use discretion and only select "need" or "emergency" priorities for high user impact and quality issues. For instance, would someone notice, in a bad way, if this issue were present in the release? + options: + - p4 - not time sensitive + - p3 - want for upcoming milestone + - p2 - want for current milestone + - p1 - need for current milestone + - p0 - emergency - type: dropdown id: esri-team validations: diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index c41f08f3948..df81639f519 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -74,7 +74,8 @@ body: multiple: false description: What is the impact to you, your team, or organization? Use discretion and only select "need" or "emergency" priorities for high user impact and quality issues. For instance, would someone notice, in a bad way, if this issue were present in the release? options: - - p3 - not time sensitive + - p4 - not time sensitive + - p3 - want for upcoming milestone - p2 - want for current milestone - p1 - need for current milestone - p0 - emergency diff --git a/.github/ISSUE_TEMPLATE/enhancement.yml b/.github/ISSUE_TEMPLATE/enhancement.yml index 9de1b397eaf..1c55f3f9f23 100644 --- a/.github/ISSUE_TEMPLATE/enhancement.yml +++ b/.github/ISSUE_TEMPLATE/enhancement.yml @@ -41,6 +41,19 @@ body: description: Code snippet, link to a similar product, etc. validations: required: false + - type: dropdown + id: priority-impact + validations: + required: true + attributes: + label: Priority impact + multiple: false + description: What is the impact of the enhancement to you, your team, or organization? Use discretion and only select the "need" priority for high user impact and quality issues in the component(s). + options: + - p4 - not time sensitive + - p3 - want for upcoming milestone + - p2 - want for current milestone + - p1 - need for current milestone - type: dropdown id: esri-team validations: diff --git a/.github/ISSUE_TEMPLATE/new-component.yml b/.github/ISSUE_TEMPLATE/new-component.yml index 67a63ee36a6..55a57317372 100644 --- a/.github/ISSUE_TEMPLATE/new-component.yml +++ b/.github/ISSUE_TEMPLATE/new-component.yml @@ -42,6 +42,19 @@ body: description: Code snippet, link to a similar product, suggestions, etc. validations: required: false + - type: dropdown + id: priority-impact + validations: + required: true + attributes: + label: Priority impact + multiple: false + description: How important is the new component request to you, your team, or organization? Use discretion and only select the "need" priority for high user impact. + options: + - p4 - not time sensitive + - p3 - want for upcoming milestone + - p2 - want for current milestone + - p1 - need for current milestone - type: dropdown id: esri-team validations: diff --git a/.github/workflows/add-bug-priority-label.yml b/.github/workflows/add-priority-label.yml similarity index 71% rename from .github/workflows/add-bug-priority-label.yml rename to .github/workflows/add-priority-label.yml index 3b221275270..5a9378c8631 100644 --- a/.github/workflows/add-bug-priority-label.yml +++ b/.github/workflows/add-priority-label.yml @@ -1,4 +1,4 @@ -name: Add Bug Priority Label +name: Add Priority Label on: issues: types: [opened, edited] @@ -22,7 +22,7 @@ jobs: return; } - const bugPriorityRegex = new RegExp( + const addPriorityRegex = new RegExp( action === "edited" ? // the way GitHub parses the issue body into plaintext // requires this exact format for edits @@ -32,35 +32,35 @@ jobs: "m" ); - const bugPriorityRegexMatch = body.match(bugPriorityRegex); + const addPriorityRegexMatch = body.match(addPriorityRegex); - const bugPriority = ( - bugPriorityRegexMatch && bugPriorityRegexMatch[0] ? bugPriorityRegexMatch[0] : "" + const addPriorityLabel = ( + addPriorityRegexMatch && addPriorityRegexMatch[0] ? addPriorityRegexMatch[0] : "" ).trim(); - if (bugPriority && bugPriority !== "N/A") { + if (addPriorityLabel && addPriorityLabel !== "N/A") { /** Creates a label if it does not exist */ try { await github.rest.issues.getLabel({ owner, repo, - name: bugPriority, + name: addPriorityLabel, }); } catch (error) { await github.rest.issues.createLabel({ owner, repo, - name: bugPriority, + name: addPriorityLabel, color: "bb7fe0", - description: `User set priority status of ${bugPriority}`, + description: `User set priority status of ${addPriorityLabel}`, }); } - /** add new bug priority label */ + /** add new priority label */ await github.rest.issues.addLabels({ issue_number, owner, repo, - labels: [bugPriority], + labels: [addPriorityLabel], }); }