Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ const parseMember = (memberData: GithubPrepareMemberOutput): IMemberData => {

if (orgs && company.length > 0) {
const organizationPayload = {
displayName: orgs.name,
names: [orgs.name],
displayName: orgs.name || '',
names: [orgs.name || ''],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Empty displayName causes org merge collision

High Severity

When GitHub returns no organization name, displayName and names are set to ''. findOrCreateOrganization then falls back to findOrganizationsByName, which treats all trimmed-empty display names as equal, so unrelated GitHub orgs can be merged and members linked to the wrong organization.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ade4e78. Configure here.

identities: [
{
platform: PlatformType.GITHUB,
Expand Down
Loading