Skip to content

Commit

Permalink
Update preliminary-update-comment.js
Browse files Browse the repository at this point in the history
  • Loading branch information
t-will-gillis authored Jul 20, 2024
1 parent eb373fc commit d3969d2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async function assignedToAnotherIssue() {
})).data;

const otherIssues = [];

let issueNum = context.payload.issue.number;
for(const issue of issues) {
// Check if assignee's other issue is an "Agenda" issue
const isAgendaIssue = issue.labels.some(label => label.name === "feature: agenda");
Expand All @@ -137,10 +137,10 @@ async function assignedToAnotherIssue() {
const isPreWork = issue.labels.some(label => label.name === "Complexity: Prework");

// ...or has "Emergent Request" Status
const inEmergentRequestStatus = (await queryIssueInfo(issue.number, github, context)).statusName === Emergent_Requests;
const inEmergentRequestStatus = (await queryIssueInfo(issueNum, github, context)).statusName === Emergent_Requests;

// ...or has "New Issue Approval" Status
const inNewIssueApprovalStatus = (await queryIssueInfo(issue.number, github, context)).statusName === New_Issue_Approval;
const inNewIssueApprovalStatus = (await queryIssueInfo(issueNum, github, context)).statusName === New_Issue_Approval;

// Include the assignee's other issue only if none of the conditions are met
if(!(isAgendaIssue || isPreWork || inEmergentRequestStatus || inNewIssueApprovalStatus))
Expand Down

0 comments on commit d3969d2

Please sign in to comment.