FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow verified GitHub emails when none are private by kabel · Pull Request #6921 · microsoft/vscode-pull-request-github · GitHub

Allow verified GitHub emails when none are private - #6921

Merged
Alex Ross (alexr00) merged 2 commits into
microsoft:mainfrom
kabel:bugfix/6916-email-visibility
May 8, 2025
Merged

Allow verified GitHub emails when none are private#6921
Alex Ross (alexr00) merged 2 commits into
microsoft:mainfrom
kabel:bugfix/6916-email-visibility

Conversation

Copy link
Copy Markdown
Contributor

See #6916.

If users haven't opted-in to use private email, still allow all secondary email addresses to be used. The REST response shows these email records with "visibility": null.

See  microsoft#6916.

If users haven't opted-in to use private email, still allow all secondary email addresses to be used. The REST response shows these email records with `"visibility": null`.

Kevin Abel (kabel) left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The noreply address suffix may not work as expected on GitHub Enterprise Server. I no longer have access to a enterprise server to verify what the noreply address is there (if it's customized for the on-premise instance).

Alex Ross (alexr00) left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Kevin Abel (@kabel), thanks for this PR. I'm likely going to have to release with bug #6916, today, but I'll make a recovery release with this fix tomorrow.

// sort the primary email to the first index
return data.filter(email => email.visibility === 'public' || email.email.toLowerCase().endsWith('@users.noreply.github.com')).sort((a, b) => +b.primary - +a.primary).map(email => email.email);
const hasPrivate = data.some(email => email.visibility === 'private');
return data.filter(email => hasPrivate ? email.email.endsWith('@users.noreply.github.com') : email.verified)

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The GitHub API is unclear, but I think this fix makes sense.

vs-code-engineering Bot added this to the May 2025 milestone May 8, 2025
Alex Ross (alexr00) enabled auto-merge (squash) May 8, 2025 09:09
auto-merge was automatically disabled May 8, 2025 10:19

Pull request was closed

Copy link
Copy Markdown
Member

/azp run

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

Alex Ross (alexr00) enabled auto-merge (squash) May 8, 2025 10:21
Alex Ross (alexr00) enabled auto-merge (squash) May 8, 2025 10:23
Alex Ross (alexr00) merged commit a7ad1a2 into microsoft:main May 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL