From 62b29d9af6f615e7e04cdb4f5bad5b1033278d50 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:17:41 -0800 Subject: [PATCH 1/4] Update check-complexity-eligibility.js Change label `Ready for Prioritization` --> `Status: Unassigned by Bot` --- .../add-preliminary-comment/check-complexity-eligibility.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-actions/trigger-issue/add-preliminary-comment/check-complexity-eligibility.js b/github-actions/trigger-issue/add-preliminary-comment/check-complexity-eligibility.js index 7f0c19b63e..326e950de0 100644 --- a/github-actions/trigger-issue/add-preliminary-comment/check-complexity-eligibility.js +++ b/github-actions/trigger-issue/add-preliminary-comment/check-complexity-eligibility.js @@ -348,12 +348,12 @@ async function handleIssueComplexityNotPermitted( assignees: [assigneeUsername], }); - // Add 'Ready for Prioritization' label + // Add 'Status: Unassigned by Bot' label await github.rest.issues.addLabels({ owner, repo, issue_number: currentIssueNum, - labels: ['Ready for Prioritization'], + labels: ['Status: Unassigned by Bot'], }); // Change issue's status to New Issue Approval From 3bbb747fc93da50e5263672cb56e1b689b66ffb0 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:22:39 -0800 Subject: [PATCH 2/4] Update preliminary-update-comment.js Change label `Ready for Prioritization` --> `Status: Unassigned by Bot` --- .../add-preliminary-comment/preliminary-update-comment.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js b/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js index 33aef4073b..1eacda4a7b 100644 --- a/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js +++ b/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js @@ -16,7 +16,7 @@ let assignee; const emergentRequests = 'Emergent Requests'; const newIssueApproval = 'New Issue Approval'; -const READY_FOR_PRIORITIZATION = "Ready for Prioritization"; +const STATUS_UNASSIGNED_BY_BOT = "Status: Unassigned by Bot"; @@ -76,8 +76,8 @@ async function main({ g, c }, { shouldPost, issueNum }) { console.log(' - add `multiple-issue-reminder.md` comment to issue'); await unAssignDev(); - await addLabel(READY_FOR_PRIORITIZATION); - console.log(' - remove developer and add `Ready for Prioritization` label'); + await addLabel(STATUS_UNASSIGNED_BY_BOT); + console.log(' - remove developer and label for re-prioritization'); // Update item's status to "New Issue Approval" let statusValue = statusFieldIds('New_Issue_Approval'); From 481e9b356f31fca3f42a9085c8379350aec85d48 Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:24:33 -0800 Subject: [PATCH 3/4] Update label-directory.json Remove "NEW-" prepend from the "statusUnassignedByBot" key --- github-actions/utils/_data/label-directory.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-actions/utils/_data/label-directory.json b/github-actions/utils/_data/label-directory.json index 73b68dd342..bed13ce221 100644 --- a/github-actions/utils/_data/label-directory.json +++ b/github-actions/utils/_data/label-directory.json @@ -827,8 +827,8 @@ "role: data scientist", 8056944058 ], - "NEW-statusUnassignedByBot": [ + "statusUnassignedByBot": [ "Status: Unassigned by Bot", 8096814358 ] -} \ No newline at end of file +} From 2490c2203a909cdfb4386f165bdcce6909f6ae8b Mon Sep 17 00:00:00 2001 From: Will Gillis <40799239+t-will-gillis@users.noreply.github.com> Date: Fri, 21 Feb 2025 13:38:12 -0800 Subject: [PATCH 4/4] Update preliminary-update-comment.js Edited the console.log() comment for clarity --- .../add-preliminary-comment/preliminary-update-comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js b/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js index 1eacda4a7b..c2be9df412 100644 --- a/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js +++ b/github-actions/trigger-issue/add-preliminary-comment/preliminary-update-comment.js @@ -77,7 +77,7 @@ async function main({ g, c }, { shouldPost, issueNum }) { await unAssignDev(); await addLabel(STATUS_UNASSIGNED_BY_BOT); - console.log(' - remove developer and label for re-prioritization'); + console.log(' - remove developer and add label for re-prioritization'); // Update item's status to "New Issue Approval" let statusValue = statusFieldIds('New_Issue_Approval');