Skip to content

Conversation

@saidsef
Copy link
Owner

@saidsef saidsef commented Nov 17, 2025

This pull request adds a new method to the github_integration.py module that enables flexible querying of user activity using GitHub's GraphQL API. The method supports multiple query modes, provides extensive documentation, and includes robust error handling and performance tips to guide usage.

New user activity query functionality:

  • Added user_activity_query method to src/mcp_github/github_integration.py to perform organization-specific, cross-organization, and user-filtered activity queries via GitHub's GraphQL API. The method supports different query modes, variable combinations, and includes example GraphQL queries for each scenario.

Documentation and usage guidance:

  • Included detailed docstring in user_activity_query explaining query modes, variable requirements, example queries, performance tips, error handling, required token scopes, and expected return formats.

Error handling and logging improvements:

  • Implemented structured error handling for invalid inputs, GraphQL errors, network issues, and unexpected exceptions. Enhanced logging to provide informative messages for debugging and usage optimization.

Performance optimization:

  • Added recommendations for pagination, field selection, and query splitting to improve performance and reduce response size for large or complex queries.

Copilot AI review requested due to automatic review settings November 17, 2025 14:17
@saidsef saidsef added the enhancement New feature or request label Nov 17, 2025
@saidsef saidsef self-assigned this Nov 17, 2025
Copilot finished reviewing on behalf of saidsef November 17, 2025 14:20

This comment was marked as outdated.

@github-actions
Copy link

github-actions bot commented Nov 17, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

github-actions[bot]
github-actions bot previously approved these changes Nov 17, 2025
Copy link
Contributor

Copilot AI 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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

github-actions[bot]
github-actions bot previously approved these changes Nov 17, 2025
github-actions[bot]
github-actions bot previously approved these changes Nov 17, 2025
github-actions[bot]
github-actions bot previously approved these changes Nov 17, 2025
github-actions[bot]
github-actions bot previously approved these changes Nov 17, 2025
github-actions[bot]
github-actions bot previously approved these changes Nov 17, 2025
github-actions[bot]
github-actions bot previously approved these changes Nov 17, 2025
saidsef

This comment was marked as outdated.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Implement user activity query capability via GitHub GraphQL API

2 participants