Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add GitHub account and Microsoft email binding checker utility #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
Copilot wants to merge 5 commits into master
base: master
Choose a base branch
Loading
from copilot/check-microsoft-account-github

Conversation

Copy link

Copilot AI commented Dec 13, 2025
edited
Loading

The issue requested functionality to check GitHub account bindings with Microsoft accounts.

Implementation

Added Python CLI tool in PythonDemo/account_info/ that queries GitHub API to:

  • Fetch public user information (no auth required)
  • Fetch authenticated user details including verified emails (requires Personal Access Token)
  • Detect Microsoft email bindings via exact domain suffix matching (@outlook.com, @hotmail.com, @live.com, @msn.com)

Usage

# Query public user info
python PythonDemo/account_info/check_github_account.py torvalds
# Query authenticated user with email details
python PythonDemo/account_info/check_github_account.py --token ghp_xxxxx

Technical details

  • Extracted is_microsoft_email() helper to avoid duplication
  • Uses exact suffix matching to prevent false positives (e.g., user@myoutlook.com correctly returns false)
  • Python 3 only, uses .format() for string interpolation
  • Chinese localization for error messages and output
  • Includes comprehensive documentation and examples in Chinese

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/users/torvalds
    • Triggering command: /usr/bin/python python check_github_account.py torvalds (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

查一下我和github和你绑定的微软账号是哪一个?


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits December 13, 2025 12:06
Co-authored-by: eninem123 <35692409+eninem123@users.noreply.github.com>
... extract constant
Co-authored-by: eninem123 <35692409+eninem123@users.noreply.github.com>
...ation
Co-authored-by: eninem123 <35692409+eninem123@users.noreply.github.com>
Co-authored-by: eninem123 <35692409+eninem123@users.noreply.github.com>
Copilot AI changed the title (削除) [WIP] Check linked Microsoft account with GitHub (削除ここまで) (追記) Add GitHub account and Microsoft email binding checker utility (追記ここまで) Dec 13, 2025
Copilot AI requested a review from eninem123 December 13, 2025 12:15
Copy link
Owner

@eninem123 eninem123 left a comment

Choose a reason for hiding this comment

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

ok

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

Reviewers

@eninem123 eninem123 eninem123 left review comments

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /