Movatterモバイル変換


[0]ホーム

URL:


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

fix: TypeError when processing pull requests with ghost users#585

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
zkoppert merged 3 commits intomainfromcopilot/fix-584
Sep 3, 2025

Conversation

Copy link
Contributor

CopilotAI commentedSep 2, 2025
edited
Loading

  • Initial implementation to handle TypeError for ghost users in pull request processing
  • Added comprehensive test case for ghost user scenario
  • Fixed spacing in# type: ignore comments to be consistent with code style
  • All tests passing and linting checks clean

💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Clickhere to start the survey.

Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
CopilotAI changed the title[WIP] TypeError: 'NoneType' object is not subscriptableFix TypeError when processing pull requests with ghost usersSep 2, 2025
CopilotAI requested a review fromzkoppertSeptember 2, 2025 23:49
Copilot finished work on behalf ofzkoppertSeptember 2, 2025 23:49
@zkoppertzkoppert changed the titleFix TypeError when processing pull requests with ghost usersfix: TypeError when processing pull requests with ghost usersSep 3, 2025
@zkoppertzkoppert marked this pull request as ready for reviewSeptember 3, 2025 04:32
@zkoppertzkoppert requested a review froma team as acode ownerSeptember 3, 2025 04:32
CopilotAI review requested due to automatic review settingsSeptember 3, 2025 04:32
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a TypeError that occurs when processing pull requests containing ghost users (deleted GitHub accounts). The error happens when the github3 library attempts to access repository owner information that is None for deleted accounts.

  • Wraps the problematicpull_request() call in a try-catch block to handle TypeError exceptions
  • Adds comprehensive test coverage for the ghost user scenario
  • Follows the established error handling pattern used elsewhere in the codebase

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

FileDescription
issue_metrics.pyAdds try-catch error handling around pull_request() call to gracefully handle ghost user scenarios
test_issue_metrics.pyAdds comprehensive test case to verify proper handling of TypeError when processing pull requests with ghost users

@zkoppert
Copy link
Member

@copilot can you fix this issue

There's inconsistent spacing in the comment. The # type:ignore comment should have a space after the colon: # type: ignore.

Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
Copy link
ContributorAuthor

CopilotAI commentedSep 3, 2025

@copilot can you fix this issue

There's inconsistent spacing in the comment. The # type:ignore comment should have a space after the colon: # type: ignore.

Fixed the spacing in the# type: ignore comments to include the proper space after the colon. Updated in commitcbda2ec.

zkoppert reacted with hooray emoji

Copilot finished work on behalf ofzkoppertSeptember 3, 2025 04:47
@zkoppertzkoppert merged commit4e16ea9 intomainSep 3, 2025
40 checks passed
@zkoppertzkoppert deleted the copilot/fix-584 branchSeptember 3, 2025 17:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

+1 more reviewer

@zkoppertzkoppertzkoppert approved these changes

Reviewers whose approvals may not affect merge requirements

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@zkoppert

[8]ページ先頭

©2009-2025 Movatter.jp