Skip to content

Issue Type & Label Group by#8587

Open
epjonnadula wants to merge 2 commits into
microsoft:mainfrom
epjonnadula:issuetype_label_groupby
Open

Issue Type & Label Group by#8587
epjonnadula wants to merge 2 commits into
microsoft:mainfrom
epjonnadula:issuetype_label_groupby

Conversation

@epjonnadula

Copy link
Copy Markdown

No description provided.

@epjonnadula

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Comment thread src/github/interface.ts
commentCount: number;
reactionCount: number;
reactions: Reaction[];
issueType?: string;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore this comment

Comment thread src/issues/issuesView.ts
Comment on lines +271 to +281
} else {
const groupsTemp = groupBy(issues, issue => {
if (groupByValue === 'repository') {
return `${issue.remote.owner}/${issue.remote.repositoryName}`;
} else if (groupByValue === 'milestone') {
return issue.milestone?.title ?? 'No Milestone';
}
return 'Other';
});
Object.assign(groups, groupsTemp);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency and readability, we should have all the groupByValues checked in the same if, not have the last 2 checked in an else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants