Skip to content

Commit

Permalink
Change label to Status: Unassigned by Bot for previously prioritize…
Browse files Browse the repository at this point in the history
…d issues (#7933)

* Update check-complexity-eligibility.js

Change label `Ready for Prioritization` --> `Status: Unassigned by Bot`

* Update preliminary-update-comment.js

Change label `Ready for Prioritization` --> `Status: Unassigned by Bot`

* Update label-directory.json

Remove "NEW-" prepend from the "statusUnassignedByBot" key

* Update preliminary-update-comment.js

Edited the console.log() comment for clarity
  • Loading branch information
t-will-gillis authored Feb 25, 2025
1 parent c911037 commit 8c0623f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";



Expand Down Expand Up @@ -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 add label for re-prioritization');

// Update item's status to "New Issue Approval"
let statusValue = statusFieldIds('New_Issue_Approval');
Expand Down
4 changes: 2 additions & 2 deletions github-actions/utils/_data/label-directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,8 @@
"role: data scientist",
8056944058
],
"NEW-statusUnassignedByBot": [
"statusUnassignedByBot": [
"Status: Unassigned by Bot",
8096814358
]
}
}

0 comments on commit 8c0623f

Please sign in to comment.