Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated p-labels & messages to reflect new p-scale #40

Merged
merged 1 commit into from
Jul 1, 2024
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
20 changes: 10 additions & 10 deletions actions/label-actions/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9635,13 +9635,13 @@ function wrappy (fn, cb) {
/***/ ((module) => {

module.exports = {
TEAM_ISSUE_P0: `This issue has been labelled as P0, which means it needs an immediate fix and release. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,
TEAM_ISSUE_P1: `This issue has been labelled as P1, which means it needs an immediate fix and release. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,

TEAM_ISSUE_P1: `This issue has been labelled as P1, which means a fix and release should be prioritized during working hours. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,
TEAM_ISSUE_P2: `This issue has been labelled as P2, which means a fix and release should be prioritized during working hours. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,

TEAM_ISSUE_P2: `This issue has been labelled as P2, which means a fix should be done after current project work. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,
TEAM_ISSUE_P3: `This issue has been labelled as P3, which means a fix should be done after current project work. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,

TEAM_ISSUE_P3: `This issue has been labelled as P3, which means this is a low priority issue and may be moved to the OSS repo. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,
TEAM_ISSUE_P4: `This issue has been labelled as P4, which means this is a low priority issue and may be moved to the OSS repo. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,

TEAM_ISSUE_OSS: `This issue has been labelled as \`oss\`, which means it is a rare or low priority issue suitable for our contributors to work on. The triager will move it to the correct repo soon.`,

Expand Down Expand Up @@ -10567,18 +10567,18 @@ async function main() {

await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (helpers.isTeamRepo()) {
if (label.name === 'p0:critical') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P0);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'p1:priority') {
if (label.name === 'P1 - Urgent') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P1);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'p2') {
} else if (label.name === 'P2 - High') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P2);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'p3:minor') {
} else if (label.name === 'P3 - Medium') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P3);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'P4 - Low') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P4);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'oss') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_OSS);
await helpers.removeNeedsTriageLabelIfOlder(issue);
Expand Down
8 changes: 4 additions & 4 deletions actions/label-actions/src/comments.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
TEAM_ISSUE_P0: `This issue has been labelled as P0, which means it needs an immediate fix and release. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,
TEAM_ISSUE_P1: `This issue has been labelled as P1, which means it needs an immediate fix and release. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,

TEAM_ISSUE_P1: `This issue has been labelled as P1, which means a fix and release should be prioritized during working hours. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,
TEAM_ISSUE_P2: `This issue has been labelled as P2, which means a fix and release should be prioritized during working hours. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,

TEAM_ISSUE_P2: `This issue has been labelled as P2, which means a fix should be done after current project work. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,
TEAM_ISSUE_P3: `This issue has been labelled as P3, which means a fix should be done after current project work. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,

TEAM_ISSUE_P3: `This issue has been labelled as P3, which means this is a low priority issue and may be moved to the OSS repo. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,
TEAM_ISSUE_P4: `This issue has been labelled as P4, which means this is a low priority issue and may be moved to the OSS repo. See https://www.notion.so/ghost/Bug-Prioritization-bc64d4e9ebd3468ca31c9f8ac15cba0b for more info.`,

TEAM_ISSUE_OSS: `This issue has been labelled as \`oss\`, which means it is a rare or low priority issue suitable for our contributors to work on. The triager will move it to the correct repo soon.`,

Expand Down
12 changes: 6 additions & 6 deletions actions/label-actions/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,18 +248,18 @@ async function main() {

await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (helpers.isTeamRepo()) {
if (label.name === 'p0:critical') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P0);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'p1:priority') {
if (label.name === 'P1 - Urgent') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P1);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'p2') {
} else if (label.name === 'P2 - High') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P2);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'p3:minor') {
} else if (label.name === 'P3 - Medium') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P3);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'P4 - Low') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_P4);
await helpers.removeNeedsTriageLabelIfOlder(issue);
} else if (label.name === 'oss') {
await helpers.leaveComment(issue, comments.TEAM_ISSUE_OSS);
await helpers.removeNeedsTriageLabelIfOlder(issue);
Expand Down